is this bug? Negative keyword at campaign level return as a Keyword Object but expected result is com.google.api.ads.adwords.axis.v201509.express.NegativeKeyword?

26 views
Skip to first unread message

serkan remzi kucukbay

unread,
Feb 10, 2016, 3:44:22 PM2/10/16
to AdWords API Forum
Hi All,

I have faced a problem while querying campaign criterion.
I created negative keyword at campaign level, then i got mentioned criterion by id.
In this case , Expected Criterion type is com.google.api.ads.adwords.axis.v201509.express.NegativeKeyword, but AdWords return com.google.api.ads.adwords.axis.v201509.cm.Keyword instance.

I have attached SOAP logs, can anyone take look ?

Thanks.
sample.xml

Umesh Dengale

unread,
Feb 10, 2016, 6:46:24 PM2/10/16
to AdWords API Forum
Hello,

Thanks for attaching the SOAP XML logs. The CampaignCriterionService get operation returns the CampaignCriterionPage.entries which contains the NegativeCampaignCriterion for the negative keywords. The NegativeCampaignCriterion.criteria will be keyword type(in your case and it will not return com.google.api.ads.adwords.axis.v201509.express.NegativeKeyword type). The NegativeCampaignCriterion.isNegative field will represent it is negative or not (return true for a negative keyword). The response you received is as expected. Please check the CampaignCriterionService document for more details. 

Regards,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages