Add Negative Dynamic Targets

35 views
Skip to first unread message

vaios_pa...@hotmail.com

unread,
May 19, 2019, 3:53:29 PM5/19/19
to AdWords API and Google Ads API Forum
Hi,

I need to create a script that would add several negative dynamic targets (e.g. "url contains = blog" , "url contains = faq", etc) to my Campaigns.

I am using the php library.

Is there any example i could use?

Thanks in advance.

Google Ads API Forum Advisor Prod

unread,
May 19, 2019, 11:46:50 PM5/19/19
to adwor...@googlegroups.com
Hi,

Thank you for reaching out. Can you confirm if you are using the Google Ads API or the AdWords API? You can use the CampaignCriterionService or the AdGroupCriterionService to set negative criterion on the campaign level or ad group level respectively. You can use the Placement criterion in setting your filters for the url.

Let me know if you have further clarifications.

Regards,
Dannison
Google Ads API Team

ref:_00D1U1174p._5001UAq60E:ref

vaios_pa...@hotmail.com

unread,
May 20, 2019, 7:23:17 PM5/20/19
to AdWords API and Google Ads API Forum
Hi,

thanks for the response.

I am using AdWords API v201809, and CampaignCriterionService,but i am not sure how the Placement criterion you suggested should be used so i can set a negative dynamic target like e.g. "url contains = blog", as i would do through GUI.

I checked, and it seems that Placement is used along with "setUrl" (e.g. $placement->setUrl('SOME_URL_HERE');), but i am not sure this is what i need here, or in case it is, how it should be used in my case.

I understand that after setting the Placement (if Placement is what i need here), i have to create the new NegativeCampaignCriterion...

But how i can make it exclude e.g. urls containing "blog"?


Any help would be much appreciated.

Thanks in advance.

Google Ads API Forum Advisor Prod

unread,
May 21, 2019, 2:41:15 AM5/21/19
to adwor...@googlegroups.com
Hi,

The Placement criterion accepts a more specific input as criterion. Instead of using the Placement criterion, could you check the Webpage criterion as this would allow you to put parameter conditions (such as 'CONTAINS') in the URL? Let me know if this helps.
Reply all
Reply to author
Forward
0 new messages