“ReferenceError: ShoppingContent is not defined” – How to fix?

“ReferenceError: ShoppingContent is not defined” 

Here’s a common situation:
You’ve copy-pasted a script that automates a task that is related to Google Shopping ads.

The error log shows a message like
“ReferenceError: ShoppingContent is not defined at main (Code64:27) ”

How to fix?

Easy, the only thing you need to do is enable the Content API for Shopping.

To use the API :

1. Open your script code in the script editor
2. Go to the top right corner of the script, there is a button ‘Advanced API’s’. Click on that button and enable the Shopping Content API.

That’s all!

 

Interested in running more scripts?
Join thousands of PPC geeks who already have access:

If the button above isn’t working for you, you can sign up here to get access.