feed status from feed service is 'removed' but from ad group feed service it's 'enabled'

46 views
Skip to first unread message

Don Mitchell

unread,
Feb 20, 2019, 1:44:22 PM2/20/19
to AdWords API and Google Ads API Forum
FeedService returns status REMOVED for 26652541 but AdGroupFeedService returns ENABLED which is causing my code to think there's an active feed it doesn't know about. 
  1. does my feed deletion need to also delete it at the ad group level even tho it's the same object?
  2. is there any way to restrict AdGroupFeedService from returning these removed feeds (the request already has
     {field: 'Status', operator: 'EQUALS', values: ['ENABLED']}

FeedService result
{:total_num_entries=>4, :page_type=>"FeedPage",
:entries=>[
 
{:id=>26652541, :name=>"CA-Scion Sitelink Feed", :attributes=>[{:id=>1, :name=>"Link Text", :type=>"STRING", :is_part_of_key=>false}, {:id=>2, :name=>"Final URL", :type=>"URL_LIST", :is_part_of_key=>false}, {:id=>3, :name=>"Line 1 Description", :type=>"STRING", :is_part_of_key=>false}, {:id=>4, :name=>"Line 2 Description", :type=>"STRING", :is_part_of_key=>false}, {:id=>5, :name=>"SitelinkFinalMobileUrls", :type=>"URL_LIST", :is_part_of_key=>false}, {:id=>6, :name=>"SitelinkTrackingUrl", :type=>"URL", :is_part_of_key=>false}], :status=>"REMOVED"},
 
{:id=>51878331, :name=>"CA-Scion-English-SitelinkFeed", :attributes=>..elided.., :status=>"ENABLED"}, 
  ..]}

AdGroupFeedService request

{"fields":["FeedId","MatchingFunction","PlaceholderTypes","Status"],"predicates":[{"field":"AdGroupId","operator":"EQUALS","values":[17202048796]},{"field":"Status","operator":"EQUALS","values":["ENABLED"]}]}

result:
{"total_num_entries":1,"page_type":"AdGroupFeedPage","entries":[{"feed_id":26652541,"ad_group_id":17202048796,"matching_function":{"operator":"IN","lhs_operand":[{"function_argument_operand_type":"RequestContextOperand","context_type":"FEED_ITEM_ID","xsi_type":"RequestContextOperand"}],"rhs_operand":[{"function_argument_operand_type":"ConstantOperand","type":"LONG","unit":"NONE","long_value":5904801232,"xsi_type":"ConstantOperand"},{"function_argument_operand_type":"ConstantOperand","type":"LONG","unit":"NONE","long_value":5904801235,"xsi_type":"ConstantOperand"},{"function_argument_operand_type":"ConstantOperand","type":"LONG","unit":"NONE","long_value":5904801238,"xsi_type":"ConstantOperand"},{"function_argument_operand_type":"ConstantOperand","type":"LONG","unit":"NONE","long_value":5904801241,"xsi_type":"ConstantOperand"}],"function_string":"IN(FEED_ITEM_ID,{5904801232,5904801235,5904801238,5904801241})"},"placeholder_types":[1],"status":"ENABLED"}]}


googleadsapi...@google.com

unread,
Feb 22, 2019, 9:56:33 AM2/22/19
to AdWords API and Google Ads API Forum
Hello Don, 

Regret the delay. I was checking this internally with the team. The Feeds created through AdGroupFeedService and FeedServices are two different entities. If you delete a Feed using the FeedService.mutate() operation, then its status becomes REMOVED, the AdGroupFeed/CampaignFeed remains unchanged. As a result, the FeedItems from this feed will no longer serve as the original Feed is deleted. To remove a Feed and its associations completely, you will have to perform the AdGroupFeedService.mutate() operation along with the FeedService.mutate(). To avoid this confusion, you could use Extension setting services to add / manage and delete the extensions associated with Campaign/ad group or customer.

Let me know if you have any other questions.

Regards,
Bharani, AdWords API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

Reply all
Reply to author
Forward
0 new messages