Topic exclusions via API

36 views
Skip to first unread message

Tim Tsai

unread,
Apr 4, 2017, 2:56:11 PM4/4/17
to AdWords API Forum
Hi there,

I am looking at the "Exclude Pages about a Specific Topic" support page and I was wondering if we could get, mutate, or query the topic exclusions of a particular campaign via the API. 

I know you are able to do this via the API with other exclusions, such as Sensitive Content and Digital Content (API ref here), but I am having a hard time finding the Topic ones in the API.


Thanks all!
-tim

-------------------------------------
Google+ • Facebook • Twitter • YouTube

Shwetha Vastrad (AdWords API Team)

unread,
Apr 4, 2017, 3:52:10 PM4/4/17
to AdWords API Forum
Hi Tim, 

You need to use CampaignCriterionService to add negative Vertical criteria using the set of category IDs listed here to exclude a particular topic. You can also use this service to retrieve the topic exclusions at the campaign level. You can refer the GetCampaignTargetingCriteria Java example which shows how to retrieve campaign criteria. You need to modify the predicate to get VERTICAL criteria. The AddCampaignTargetingCriteria Java example shows how to add different targeting criteria to a campaign. Example code in other languages is provided here.

Regards,
Shwetha, AdWords API Team.

Tim Tsai

unread,
Apr 5, 2017, 2:40:17 PM4/5/17
to AdWords API Forum
Yep I've found it. Thanks!
Reply all
Reply to author
Forward
0 new messages