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

‘ReferenceError: “AdsApp” is not defined.’

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

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

The script was created for single accounts and you try to run it at the MCC level.

Solution: double-check the account level in which you are implementing the script (should not be on MCC level). Make sure that the script runs on the single 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 an MCC level version of the script available to you.  If so, you can use the MCC account equivalent of this script which can be found here. Look for Manager 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()).

 

"Damn, your blog is full of great info. I like your compilation of scripts, very handy!"

E.C., PPC geek at Reddit

Nils Rooijmans
2020-08-16T10:58:27+00:00

E.C., PPC geek at Reddit

"Damn, your blog is full of great info. I like your compilation of scripts, very handy!"
0
0
Nils Rooijmans

Would you like to 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.