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.



Τη Δευτέρα, 20 Μαΐου 2019 - 6:46:50 π.μ. UTC+3, ο χρήστης 
adsapiforumadvisor έγραψε:
>
> Hi,
>
> Thank you for reaching out. Can you confirm if you are using the Google 
> Ads API <https://developers.google.com/google-ads/api/docs/start> or the 
> AdWords 
> API <https://developers.google.com/adwords/api/docs/guides/start>? You 
> can use the CampaignCriterionService 
> <https://developers.google.com/adwords/api/docs/reference/v201809/CampaignCriterionService>
>  
> or the AdGroupCriterionService 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService>
>  
> to set negative criterion on the campaign level or ad group level 
> respectively. You can use the Placement 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.Placement#top_of_page>
>  
> criterion in setting your filters for the url 
> <https://developers.google.com/adwords/api/docs/reference/v201809/AdGroupCriterionService.Placement#url>
> .
>
> Let me know if you have further clarifications.
>
> Regards,
> Dannison
> Google Ads API Team
>
> ref:_00D1U1174p._5001UAq60E:ref

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/8cf65038-31b8-4bd6-bb8f-4111726bbc92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to