Changing Target's Location Options of Campaign by Scripts

70 views
Skip to first unread message

Семен Якушов

unread,
Aug 8, 2022, 9:37:29 AM8/8/22
to Google Ads Scripts Forum
Hello.
I need change this parameter using scripts:
Settings -> Campaign settings -> Выбрать Вашу Campaign -> Locations -> Location options -> Target
(
I need to set the second point:
Presence: People in or regularly in your targeted locations
)
I treid use campaign.targeting().setTargetingSetting(), but I dont know what parameteres of setTargetingSetting I need.
I used:
but it doesn't help.
How I can do it? Pls help! Thanks!

Google Ads Scripts Forum Advisor

unread,
Aug 8, 2022, 2:43:13 PM8/8/22
to adwords...@googlegroups.com
Hi Семен,

Thank you for reaching out to us. Let me do the best I can to assist you in this.

With regard to your concern, the the setTargetingSetting accepts two parameter which is criterionTypeGroup and targetingSetting with the following value definitions: Regards,
Google Logo
Teejay Wennie
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2dIUVV:ref

Семен Якушов

unread,
Aug 9, 2022, 9:55:27 AM8/9/22
to Google Ads Scripts Forum
Thank you for your reply!
Unfortunately, from what you suggested (https://developers.google.com/adwords/api/docs/reference/v201809/CampaignService.CriterionTypeGroup), setTargetingSetting only works with USER_INTEREST_AND_LIST what is also written here: https://developers.google.com/google-ads/scripts/docs/reference/adsapp/adsapp_campaigntargeting . And it doesn't help me with my problem.
Tell me, is there any other method or a comprehensive solution that allowed me to change the setting I need? (Settings -> Campaign settings -> Выбрать Вашу Campaign -> Locations -> Location options -> Target)
the_setting.png

Google Ads Scripts Forum Advisor

unread,
Aug 10, 2022, 3:52:13 AM8/10/22
to adwords...@googlegroups.com
Hi,

This is Ciara from the Google Ads Scripts team as well.

Thank you for providing the requested information. As per checking, I'm afraid that there's indeed no equivalent criteriatype to fit your use case as seen on your screenshot. I could submit this as a feature request. Before I can proceed, could you please share a business use case (or benefit) to the said feature/functionality?

You may send this privately via the reply to author option. If this option is not available on your end, you may send it through our email (googleadsscr...@google.com) instead, for private purposes.
 
Looking forward to your response.


Regards,
Google Logo
Ciara
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2dIUVV:ref

Ben Donaldson

unread,
Aug 10, 2022, 9:30:48 AM8/10/22
to Google Ads Scripts Forum on behalf of adsscripts
Hi, 

Thanks, that would be great. We'd use the script to automatically pull product IDs achieving above a certain ROAS into a supplemental feed, where they would be added to a best sellers campaign.

Kind regards

Ben

--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/Vb89o000000000000000000000000000000000000000000000RGE36S00KhFVZTLcR52Wu_xD-zm1Ww%40sfdc.net.

Google Ads Scripts Forum Advisor

unread,
Aug 11, 2022, 2:55:10 AM8/11/22
to adwords...@googlegroups.com

Hi Ben,

 

Yasmin here, I work alongside Ciara in the Google Ads Scripts team.

 

Thank you for providing the information my colleague requested. I already raised this as a feature request to our internal team, however, please note that I am unable to guarantee that this request will be approved and supported anytime soon. In the meantime, you may follow our blog for future updates and announcements.

 

Regards,

 

Google Logo
Yasmin Gabrielle
Google Ads Scripts Team
 


ref:_00D1U1174p._5004Q2dIUVV:ref
Reply all
Reply to author
Forward
0 new messages