getCampaignNegativeCriteria does not return IDs

9 views
Skip to first unread message

BugMind

unread,
Mar 22, 2008, 11:16:23 PM3/22/08
to AdWords API Forum
Hi -

I am using getCampaignNegativeCriteria to get a list of negative
keywords associated with my campaigns. I get a list of all the
negative keywords, but the id is 0 for all of them. I am using version
v11.

ANY HELP IS GREATLY APPRECIATED.

Thanks,

Oliver

Albert

unread,
Mar 23, 2008, 5:28:01 AM3/23/08
to AdWords API Forum
You'd better provide a soap trace for such a case

Sander Agricola @ Traffic4u

unread,
Apr 10, 2008, 5:16:30 AM4/10/08
to AdWords API Forum
I have the same problem in Java! The SOAP requests:

<default header information (which is alright because everything
works)>
<getCampaignNegativeCriteria xmlns="https://adwords.google.com/api/
adwords/v12">
<campaignId>17562608</campaignId>
</getCampaignNegativeCriteria></soapenv:Body></soapenv:Envelope>

Result:

<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<getCampaignNegativeCriteriaResponse xmlns="https://
adwords.google.com/api/adwords/v12">
<getCampaignNegativeCriteriaReturn xsi:type="ns1:Keyword"
xmlns:ns1="https://adwords.google.com/api/adwords/v12">
<ns1:adGroupId>0</ns1:adGroupId>
<ns1:criterionType>Keyword</ns1:criterionType>
<ns1:id>0</ns1:id>
<ns1:language></ns1:language>
<ns1:negative>true</ns1:negative>
<ns1:minCpc>0</ns1:minCpc>
<ns1:text>tickets</ns1:text>
<ns1:type>Broad</ns1:type>
</getCampaignNegativeCriteriaReturn>
<getCampaignNegativeCriteriaReturn xsi:type="ns2:Keyword"
xmlns:ns2="https://adwords.google.com/api/adwords/v12">
etc. etc.

As you can see, the adGroupId is 0 and the id is 0. So i still don't
know which keywords in my campaign are negative (i run a structure
report to retrieve my accountstructure, and
getCampaignNegativeCriteria is the only way to find out which of the
keywords are negative)

AdWords API Advisor

unread,
Apr 16, 2008, 1:16:46 PM4/16/08
to AdWords API Forum
Hello,

I believe that this is the expected behavior--campaign negative
criteria are, strictly speaking, a bit different from criteria
associated with a given ad group (even negative criteria). They do not
posses the same type of ids, and they obviously need to be managed
separately via the [gs]etCampaignNegativeCriteria() methods.

It's also worth noting that getCampaignNegativeCriteria() won't
return information about negative criteria within ad groups--it is
solely for information about campaign-level negative criteria. If you
want to get all the criteria within an ad group, including negative
criteria, you can use the getAllCriteria() method.

Cheers,
-Jeff Posnick, AdWords API Team


On Apr 10, 5:16 am, "Sander Agricola @ Traffic4u"
Reply all
Reply to author
Forward
0 new messages