Getting zero impression results for extension_feed_item with Ads API

68 views
Skip to first unread message

Tim

unread,
Apr 16, 2019, 6:44:42 AM4/16/19
to AdWords API and Google Ads API Forum
I'm trying a simple query in the Google Ads API to get sitelinks along with their campaign id and ad group id.

SELECT
extension_feed_item.sitelink_feed_item.line1
FROM
extension_feed_item
LIMIT
100

This doesn't appear to return results for sitelinks with zero impressions (similar to the old AdWords API). It does included them if I exclude the ad_group.id.

Is there any way to run the above query, or constructor a similar query, and include sitelinks with zero impressions?

googleadsapi...@google.com

unread,
Apr 16, 2019, 2:29:23 PM4/16/19
to th...@post.com, AdWords API and Google Ads API Forum
Hi Tim,

Thanks for posting this question. It looks like our documentation is missing a key point:

If a resource is in the segments list for the FROM resource, then including that resource in your query will automatically exclude zero impression rows.

For this case, you can see the list of segments for extension_feed_item by going to this page and expanding the Segments in the first section. You'll see there that ad_group and campaign are listed.

I'll make a note that we need to clarify this in our docs.

If you want to see the association between a feed item and campaigns or ad groups, you can use the campaign_extension_setting or ad_group_extension_setting resources instead.

Cheers,
Josh, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/8f71dded-d422-4fec-aced-f7fcca40f384%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages