Retrieving Adwords Ads Extension Data using API

130 views
Skip to first unread message

Asad Khan

unread,
Jan 24, 2018, 11:24:39 AM1/24/18
to AdWords API Forum
Hi,
I am trying to download via API, the exact same data that you have in the UI as "Extensions".
In the UI, it is listed as "Ads & Extensions" > tab "Extensions" - see screenshot attached.

Which API should i use Placeholder Feed Item Report or Placeholder Report, Additionally I want to know, which field would give me Extension Name and Extension Type Name

UI_Adwordsadextension_edited.png

Bharani Cherukuri (AdWords API Team)

unread,
Jan 24, 2018, 3:20:13 PM1/24/18
to AdWords API Forum
Hi Asad, 

The Ad Extensions tab metrics in the UI can be retrieved using the Placeholder Feed Item Report and Placeholder Report in the API. You could use the PlaceholderType and ExtensionPlaceholderType fields which can be filtered by the Placeholder Type ID to get the extension type as in the UI. It is currently not possible to retrieve the Extension name through the API using these report types. You could use the FeedService.get() to get the Extension name using the API services. Let me know if you have any other questions. 

Regards,
Bharani, AdWords API Team

Asad Khan

unread,
Feb 28, 2018, 9:01:48 AM2/28/18
to AdWords API Forum
Let me know how to fetch data of "Extensions" Column using FeedService to get the extension name, what parameter from "Placeholder Feed Item Report" will be required in FeedService in order to get extension name.

Thanks,
Regards,
Asad

Bharani Cherukuri (AdWords API Team)

unread,
Feb 28, 2018, 3:29:29 PM2/28/18
to AdWords API Forum
Hello Asad, 

It is currently not possible to get the Extension name using the Placeholder Feed Item Report. You will be able to get all other data using this report type. You could use the FeedId from this report and then do a FeedService.get(), by filtering based on the FeedId to get the Feed name.

If you're using the FeedService alone to retrieve the Extension name, you could query for the name field and use FeedService.get(). Let me know if you have any other questions.

Asad Khan

unread,
Mar 1, 2018, 2:35:33 AM3/1/18
to AdWords API Forum
Hi!  FeedService returns feed type text i-e "Main phone number feed", "Main callout feed" and "Main Structured snippet  feed" not the name of extension, please look into this issue

Regards,
Asad

Bharani Cherukuri (AdWords API Team)

unread,
Mar 1, 2018, 3:23:39 PM3/1/18
to AdWords API Forum
Hello Asad, 

If you're looking to get the placeholder type you could either use CampaignExtensionSetting by querying for the extensionType attribute or use the FeedMappingService and query for the placeHolderType attribute. 

If your concern is different, could you please enable logging and share us the complete SOAP request and response logs along with the client Customer Id, so I can take a look? You can reply back via Reply privately to author option. 

Thanks,
Bharani, AdWords API Team

Asad Khan

unread,
Mar 2, 2018, 1:29:32 AM3/2/18
to AdWords API Forum
As i have already mentioned i want to get extension name not the placeholder, please look into a highlighted column in an attachment. Please provide me solution to my problem.

Regards,
Asad
extensionName.png

Bharani Cherukuri (AdWords API Team)

unread,
Mar 2, 2018, 3:20:08 PM3/2/18
to AdWords API Forum
Hello Asad, 

Thank you for sharing the screenshot. It is currently not possible to retrieve the Extension name pointed in the screenshot through the AdWords API. 

Let me know if you have any other questions.

Regards,
Bharani, AdWords API Team

Asad Khan

unread,
Mar 3, 2018, 2:31:07 AM3/3/18
to AdWords API Forum
Hi! what would be the solution then? is it planned in future? if yes, when should i expect?

Regards,
Asad

Bharani Cherukuri (AdWords API Team)

unread,
Mar 5, 2018, 3:50:04 PM3/5/18
to AdWords API Forum
Hi Asad, 

There is no direct way to achieve this. As a workaround, you will be able to get the Extension name which is concatenation of the Structured Snippet Header followed by the Structured Snippet feedItem values. You could perform the CampaignExtensionSettingService.get() and then modify the results locally to build the extension name. 

Asad Khan

unread,
Mar 8, 2018, 3:21:26 AM3/8/18
to AdWords API Forum
Hi!
Thanks for responding, and where to get the data for 'Extension Type" and "Level" columns from?

Regards,
Asad
extension-level.png

Vincent Racaza (AdWords API Team)

unread,
Mar 8, 2018, 6:45:19 AM3/8/18
to AdWords API Forum
Hi Asad,

I am a teammate of Bharani and I will provide support to you as she is OOO.

For your concern, you can still use the CampaignExtensionSettingService.get() and include the extensionType in your selector fields for the "Extension Type". For the "Level", this is not explicitly available as field in the API. If you'll use the CampaignExtensionSettingService and  your extensions are retrieved, then the level of these extensions is on campaign level. If you will be using AdGroupExtensionSettingService on retrieving your extensions and they are retrieved, then their level is on ad group level.

Let me know if you have further clarifications.

Thanks,
Vincent
AdWords API Team

Asad Khan

unread,
Mar 8, 2018, 7:04:13 AM3/8/18
to AdWords API Forum
Any other service which can give me  "Level" field based on FeedId or FeedItemId ?

Vincent Racaza (AdWords API Team)

unread,
Mar 8, 2018, 9:57:21 PM3/8/18
to AdWords API Forum
Hi Asad,

There are no other API services that would get the actual value of the "Level" field based on your screenshot. In the Placeholder Report also, there is no "Level" field. For the CampaignId and AdGroupId fields in this report type, these will return the values of both the CampaignId and AdGroupId fields even though your extension is on campaign level only.
Reply all
Reply to author
Forward
0 new messages