How to get association for AdExtension

145 views
Skip to first unread message

Frank We

unread,
Jan 10, 2020, 3:47:18 PM1/10/20
to AdWords API and Google Ads API Forum
Hello,

I've been trying to get all the adgroup and campaign associated while getting AdExtension through report in extension_feed_item.
but I can't seem to find a way to get this adgroup or campaign in report. 

I've tried using extension_feed_item.targeted_ad_group and extension_feed_item.targeted_campaign but they were all null.
Tried getting association using feed_item_target, feed_mapping, campaignExtensionSetting and other resource but it didn't give much information.

Is it possible get association at all in report?

Help!

btw I'm using GoogleAdsAPI V2

Google Ads API Forum Advisor Prod

unread,
Jan 13, 2020, 1:56:52 PM1/13/20
to fran...@viagogo.com, adwor...@googlegroups.com

Hello Frank,

Thank you for reaching out. If you want to see the association between a feed item and campaigns or ad groups, you could use the ad_group_extension_setting and campaign_extension_setting resources instead. If the issue persists, could you please share the complete report query along with the client customer id for further investigation?

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team



ref:_00D1U1174p._5001USwA2s:ref

Matt

unread,
Dec 10, 2020, 11:52:54 AM12/10/20
to AdWords API and Google Ads API Forum
Hi Frank - were you ever able to solve your problem using targeted_ad_group and targeted_campaign with extension_feed_item? If not, what approach did you settle on? I'm trying to solve for the same but the targeted_ad_group and targeted_campaign fields are always null (I've tried in Google Ads API v6 and v5).

Google Ads API Forum Advisor Prod

unread,
Dec 11, 2020, 10:39:46 AM12/11/20
to kraftmat...@gmail.com, adwor...@googlegroups.com
Hi Matt,

Can you confirm if you were able to implement Nikisha's suggest to use the ad_group_extension_setting and campaign_extension_setting resources?

Regards,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5001USwA2s:ref

Matt

unread,
Dec 11, 2020, 12:02:48 PM12/11/20
to AdWords API and Google Ads API Forum
Hi Matt,

I have tried to use campaign_extension_setting without luck. See example:

SELECT campaign_extension_setting.extension_feed_items, campaign_extension_setting.extension_type, campaign_extension_setting.campaign, campaign_extension_setting.resource_name, campaign.id FROM campaign_extension_setting

That query does return results, but it never includes campaign_extension_setting.extension_feed_items (which I would expect to be returned so I could then make a second query to feed item IDs using extension_feed_item).

Do you have a different example query that demonstrates the results I'm expecting?

Thanks,
Matt

Google Ads API Forum Advisor Prod

unread,
Dec 13, 2020, 9:51:34 PM12/13/20
to kraftmat...@gmail.com, adwor...@googlegroups.com
Hi Matt,

Thank you for your follow up.

The targeted_ad_group and targeted_campaign fields would need to be explicitly specified for a feed item.You can also check out this example (also available in other languages) on how the targeted_campaign field is set.

Once this has been set during creation, it should then be retrievable via the service you used to create it or via the reports. You can use the extension_feed_item report to retrieve information such as the extension_feed_item.targeted_ad_group and extension_feed_item.targeted_campaign fields.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5001USwA2s:ref

Matt

unread,
Dec 13, 2020, 9:54:52 PM12/13/20
to AdWords API and Google Ads API Forum
Hi Peter,

If an extension is created via the Google Ads UI and shows that an extension has the "Level" of "Campaign" or the "Level" of "Ad Group", is that equivalent to setting the targeted_campaign field in your example?

Thanks,
Matt

Google Ads API Forum Advisor Prod

unread,
Dec 15, 2020, 2:35:32 AM12/15/20
to kraftmat...@gmail.com, adwor...@googlegroups.com
Hi Matt,

Adding extensions in the UI and directly associating them to a certain level (account, campaign or ad group) should correspond to creating them in the API via the extension setting services.

For example, created extensions that were assigned at the campaign level can be retrieved using the CampaignExtensionSettingService. The steps on how to create an ExtensionFeedItem and then assigning them to a campaign can be found here. Generally, extension feed items can also be retrieved via the extension_feed_item report.

As for the targeted_ad_group and targeted_campaign fields, these can or will need to be set when creating an ExtensionFeedItem using the ExtensionFeedItemService. You can refer to this example for more information on targeting using extensions.
Reply all
Reply to author
Forward
0 new messages