Get "enabled" feed items associated to an ad group/campaign/account

29 views
Skip to first unread message

Pallav Gupta

unread,
Dec 10, 2019, 5:22:31 PM12/10/19
to AdWords API and Google Ads API Forum
Hello, 
I have some feed items n that I associated to an ad group using the `AdGroupFeedService`. 
Out of those n feed items, some are `enabled`, and a few are `removed` from the `AdGroupFeed` and not from the overall Feed in the account.

Now, I need to get the `enabled` feed items associated to the ad group. When I use the "AdGroupFeedService", I add a selector "MatchingFunction" to my query. This returns all the feed item ids in that account and not just the `enabled` ones. 
The documentation suggests that there is no way I could filter on status of the feed item.

I tried using AdGroupExtensionSettingService but it doesn't return anything. I am assuming that is because the feed items were added using a different service (AdGroupFeedService)

How do I get just the "enabled" feed items associated to the ad group?

Google Ads API Forum Advisor Prod

unread,
Dec 11, 2019, 11:56:28 AM12/11/19
to palla...@gmail.com, adwor...@googlegroups.com
Hi Pallav,

Thank you for reaching out. You can filter on the AdGroupFeed status by specifying a Status EQUALS enabled predicate in your selector.

Regards,
Mitchell
Google Ads API Team

ref:_00D1U1174p._5001UOEGvG:ref

Pallav Gupta

unread,
Dec 11, 2019, 12:11:54 PM12/11/19
to AdWords API and Google Ads API Forum
Filtering on the AdGroupFeed status filters on the status of the AdGroupFeed and not the underlying feed items in that ad group feed.
For instance:
1) Account1 has a Sitelink feed F1 with feed items FI1, FI2, FI3
2) Out of these I associate FI1, FI2 to AdGroup1 using AdGroupFeedService
3) Now I unmap FI2 from AdGroup1 using AdGroupFeedService with delete operator and matching function FEED_ITEM_ID EQUALS [FI2].
4) As it stands, AdGroupFeed of AdGroup1 has one feed item that is enabled and another that is removed. 
5) When I retrieve the feed items associated to the AdGroup1 using AdGroupFeedService with STATUS EQUALS [ENABLED] (like you said) and matching function, it returns just the ids of [FI1, FI2] in the matching function, with no information about the status of FI1 and FI2 in the AdGroupFeed of AdGroup1. What I want is the feed items which are enabled for AdGroup1. 

Let me know if it doesn't make sense or if you need any more information. Any help would be greatly appreciated.

Google Ads API Forum Advisor Prod

unread,
Dec 11, 2019, 2:19:57 PM12/11/19
to palla...@gmail.com, adwor...@googlegroups.com
Hi Pallov,

Can you please share the complete detailed request and response logs for both the call you're making to remove the feed and retrieve the feeds via reply privately to author? You can find information on enabling logging in the ReadMe of your client library.

Additionally, please see this forum post for additional information on what might be causing your issue.
Reply all
Reply to author
Forward
0 new messages