Not receiving all Campaign - Extensions association (missing promotions) - AdWords API

31 views
Skip to first unread message

Zorion

unread,
Apr 24, 2020, 10:25:03 AM4/24/20
to AdWords API and Google Ads API Forum
Hi Team!

I try to get all the campaign-extensions associations to a given campaign.

In the Web I can see 3 promotions, 2 sitelinks and 1 structured snippet.

From Python's AdWords API I receive 2 sitelinks and 1 structured snippet, but I don't receive the promotions.

We wonder if it because we have TWO feeds flagged as Promotion Extensions in the Business Data.
Even in this case, we should be able to get the associations from the API, aren't we?


I can provide the campaign, account and the actual xml sent and received.
See below the redacted xml sent and received.

Request:

<?xml version='1.0' encoding='utf-8'?>
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<ns0:RequestHeader xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:clientCustomerId>...redacted...></ns0:clientCustomerId>
<ns0:developerToken>...redacted...</ns0:developerToken>
<ns0:userAgent>...redacted... (AwApi-Python, googleads/14.1.0, Python/3.7.7, zeep)</ns0:userAgent>
<ns0:validateOnly>false</ns0:validateOnly>
<ns0:partialFailure>false</ns0:partialFailure>
</ns0:RequestHeader>
</soap-env:Header>
<soap-env:Body>
<ns0:get xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201809">
<ns0:selector>
<ns0:fields>CampaignId</ns0:fields><ns0:fields>Extensions</ns0:fields><ns0:fields>ExtensionType</ns0:fields><ns0:fields>PlatformRestrictions</ns0:fields>
<ns0:predicates><ns0:field>CampaignId</ns0:field><ns0:operator>EQUALS</ns0:operator><ns0:values>...redacted...</ns0:values></ns0:predicates>
<ns0:paging><ns0:startIndex>0</ns0:startIndex>
<ns0:numberResults>10000</ns0:numberResults></ns0:paging>
</ns0:selector>
</ns0:get>
</soap-env:Body>
</soap-env:Envelope>



Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<requestId>...redacted...</requestId>
<serviceName>CampaignExtensionSettingService</serviceName>
<methodName>get</methodName>
<operations>0</operations><responseTime>103</responseTime>
</ResponseHeader></soap:Header>
<soap:Body><getResponse xmlns="https://adwords.google.com/api/adwords/cm/v201809">
<rval><totalNumEntries>3</totalNumEntries><Page.Type>CampaignExtensionSettingPage</Page.Type>
<entries><campaignId>..redacted..</campaignId><extensionType>NONE</extensionType><extensionSetting><platformRestrictions>NONE</platformRestrictions></extensionSetting></entries>
<entries><campaignId>..redacted..</campaignId><extensionType>SITELINK</extensionType><extensionSetting>
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>..redacted..</feedId><feedItemId>..redacted..</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType>..redacted</extensions>
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SitelinkFeedItem"><feedId>..redacted..</feedId><feedItemId>..redacted..</feedItemId><status>ENABLED</status><feedType>SITELINK</feedType>..redacted..</extensions><platformRestrictions>NONE</platformRestrictions></extensionSetting>
</entries>
<entries><campaignId>..redacted..</campaignId><extensionType>STRUCTURED_SNIPPET</extensionType><extensionSetting>
<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="StructuredSnippetFeedItem"><feedId>..redacted..</feedId><feedItemId>..redacted..</feedItemId><status>ENABLED</status><feedType>STRUCTURED_SNIPPET</feedType>..redacted..</extensions><platformRestrictions>NONE</platformRestrictions></extensionSetting>
</entries>
</rval></getResponse></soap:Body></soap:Envelope>


We can see that there is an item with NONE data and it may be the three promotion extensions assigned to this campaign, but this is useless as it is coming.

Please, could you give me some hint on how to retrieve these campaign-promotion extension assignations?

Thanks!
Zorion

Google Ads API Forum Advisor Prod

unread,
Apr 24, 2020, 5:09:01 PM4/24/20
to zarriz...@g-n.com, adwor...@googlegroups.com
Hi Zorion,

Thank you for reaching out. Can you please share the un-masked request and response logs via Reply privately to author so I can further investigate the issue?

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UaSBS8:ref

Zorion

unread,
Apr 29, 2020, 6:51:23 AM4/29/20
to AdWords API and Google Ads API Forum
Thanks for the support!

In case someone had the same issue:
The reason was having two different feeds for Promotions so we can only get the associations from the default feed (Josh specified privately which one was the default).

Josh also shared the migration guide in case we want to avoid the multi-feeds and using the extension settings only: https://developers.google.com/adwords/api/docs/guides/extension-settings#migration_steps

Best regards,
Zorion

Google Ads API Forum Advisor Prod

unread,
Apr 29, 2020, 2:06:23 PM4/29/20
to zarriz...@g-n.com, adwor...@googlegroups.com
Thanks, Zorion, for taking the time to share the solution with others in the group!

Best regards,
Josh, Google Ads API Team

ref:_00D1U1174p._5001UaSBS8:ref
Reply all
Reply to author
Forward
0 new messages