Negative AdGroup Data pull

9 views
Skip to first unread message

Senthil Palaniswami

unread,
Nov 4, 2015, 6:51:27 AM11/4/15
to AdWords API Forum
Team,

I am trying to get the "Negative AdGroup Data" like Negative keywords below. Is it possible on the Group Level or Only on the Campaign Level ? Thanks


Keyword keyword = (Keyword) adGroupCriterion.criterion;
string keywordType = isNegative ? "Negative keyword" : "Keyword";


Thanks
Senthil

Anthony Madrigal

unread,
Nov 4, 2015, 4:25:29 PM11/4/15
to AdWords API Forum
Hi,

You should be able to add/get negative keywords for both AdGroups and Campaigns. For AdGroups, you will need to use the AdGroupCriterionService and add a NegativeAdGroupCriterion. For Campaigns, you will need to use the CampaignCriterionService and add a NegativeCampaignCriterion.

Cheers,
Anthony
AdWords API Team
Reply all
Reply to author
Forward
0 new messages