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

‘ReferenceError: “AdwordsApp” 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. There’s a typo in your call to AdWordsApp
    I cannot tell you many times I’ve been staring at the screen overlooking this one: ‘AdwordsApp’ versus ‘AdWordsApp’.  Can you spot the difference?
    Solution: double-check the spelling and capitalize the ‘W’ in ‘Words’.
  3. You’re running the code in Google Sheets instead of Adwords/Google Ads
    You might be trying to run code from a Spreadsheet in google sheets to extract data from Google AdWords to google sheets.
    You can’t use Google Sheets to pull data directly from AdWords 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.