Retrieving Ad Extensions

49 views
Skip to first unread message

Joe Stedman

unread,
May 8, 2018, 9:32:36 AM5/8/18
to AdWords API and Google Ads API Forum
Hi, 

I'm trying to get a list of all the ad extensions in an account at account level, campaign level and ad group level.

I've used the CustomerExtensionSettingService and the CampaignExtensionSettingService with a selector applied containing the fields: 'ExtensionType' and 'Extensions'.
This all seems to work fine, and I can see a list of entries.
When I try and use the AdGroupExtensionSettingService to retrieve the extensions however, it does not work. Weirdly, I can see the entries exist as the 'totalNumEntries' property on the page is populated. However the 'entries' property is null.

(see screenshot above of my AdGroupExtensionSettingPage object).


Any help would be most appreciated.


Joe



Dhanya Sundararaju (AdWords API Team)

unread,
May 8, 2018, 12:47:02 PM5/8/18
to AdWords API and Google Ads API Forum
Hi Joe,

Thank you for the details. You can use the AdGroupExtensionSettingService to retrieve extensions for AdGroups just like CustomerExtensionSettingService and CampaignExtensionSettingService. The selector fields should be able to get you the values corresponding to the AdGroups extensions. In order to troubleshoot further, could you please run your code and reply back with complete SOAP logs as well as your client customer id? You may reply privately to author while sharing the details. 

Regards,
Dhanya, AdWords API Team

Joe Stedman

unread,
May 10, 2018, 10:53:28 AM5/10/18
to AdWords API and Google Ads API Forum
Thanks, your private reply fixed the issue for me. 

For future people that may stumble upon this: I was using the same selector for all three calls to the API. Between calls i forgot to reset the page index to 0.

Joe

Dhanya Sundararaju (AdWords API Team)

unread,
May 11, 2018, 2:16:49 PM5/11/18
to AdWords API and Google Ads API Forum
Glad that it worked, Joe. 

Adding further to Joe's update, there is an offset which needs to be set to appropriate value in order to retrieve the values for Page.entries. Please refer this line of code sample for better clarity.
Reply all
Reply to author
Forward
0 new messages