Hi Christopher,
Thank you for reaching out to us.
With regard to your concern on adding/excluding campaign locations, you can check on these available campaign methods ( addLocation, excludeLocation ). With regard to adding campaign zip codes, I'm afraid that this is currently not possible with the Google Ads scripts; however, you can make use of location ranges by creating proximity targets as an alternative.
In addition, you can check the sample scripts found here (under Targeting) for your reference.
Regards,
|
||||||
Hi Christopher,
Thanks for coming back. I am Harry, teammate of Mark on the Google Ads Scripts Team. If the GEO IDs you are referring to are Criteria IDs for Geotargets, then yes. You can add/create and exclude locations for Campaign Targeting using this. Kindly refer to this link for further information on creating location targets. Let me know if you have other questions.
Thanks,
|
||||||
Hi Chris,
Thanks for coming back regarding this. Can you kindly provide your CID where you have created the script and the script's name so that I can take a look at this on our end? You may send them here or privately via the reply to author option. If this option is not available at your end, you may send the requested information through our email (googleadsscr...@google.com) instead.
Hi Chris,
Thanks for providing the requested information. Upon checking, (in line 70) you are calling the applyTargets method and passing the included variable as the third argument instead of the excluded variable that it set to true. As for the error you are encountering, "Targeting is not allowed." this is mostly likely caused by an invalid Geotarget Criterion ID (location). Kindly refer to this list of available geotargets.
Kindly update accordingly, then let me know how it goes.
Thank you very much - I'll make the updates and report back.
Hi Chris,
Would you be able to provide a shareable link or a copy of the spreadsheet you are using so that I can take a look closer at your script? You may send it via the options I have mentioned previously.