Any Java code example for retrieving negative placements?

7 views
Skip to first unread message

Oliver

unread,
Jan 30, 2019, 7:16:05 AM1/30/19
to AdWords API and Google Ads API Forum
We'd like to use AdGroupCriterionService.get() to retrieve the negative placements (exclusions) at the adgroup level for the whole account.  

Is there any Java code example? If not, can someone please be kind enough to show how the selector for the get() method should look like in this case?

We're aware we can perhaps use reports as well but we want to use AdGroupCriterionService class because it gives the app names and video names (whereas reports don't).

Thanks

Oliver

googleadsapi...@google.com

unread,
Jan 30, 2019, 3:39:18 PM1/30/19
to AdWords API and Google Ads API Forum
Hello,

To get the negative placement, you will need set the criterionuse selector as NEGATIVE. You can refer to this sample Java code. Let me know if you have any further questions. 

Thanks,
Milind, AdWords API Team
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages