ReferenceError: “AdsManagerApp” is not defined. How to fix?

‘ReferenceError: “AdsManagerApp” is not defined.’

If you get this error then most probably one of the following issues occurred:

(1) You are running an MCC level script on the single account level. 

The script was created for the MCC account level execution. If you try to run it at the single accounts level you will get this message.

Solution: double-check the account level in which you are implementing the script (should be on MCC level). Make sure that the script runs on the MCC account level. 
Also, if you are trying to run a script created by our friends from Google, there is a big chance they will have a single account level version of the script available to you.  If so, you can use the single account equivalent of this script which can be found here. Look for Single Account scripts.

(2) You’re running the code in Google Sheets instead of Google Ads

You might be trying to run code from a Spreadsheet in Google Sheets to extract data from Google Ads to Google Sheets.

You can’t use Google Sheets to pull data directly from Google Ads data directly; the service is not supported in Apps Scripts.

Solution: You can create a Google Ads script in Google Ads which pulls data (see reports and the AdWords query language) and adds it to Google Sheets (see setValues()).

 

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.