AdGroupFeedError.CANNOT_OPERATE_ON_DELETED_ADGROUP_FEED

41 views
Skip to first unread message

dhmitc...@gmail.com

unread,
Apr 25, 2019, 2:25:17 PM4/25/19
to AdWords API and Google Ads API Forum
What exactly does this mean?
  1. the feed is deleted
  2. the feed item is deleted
  3. the ad group is deleted
  4. there was an AdGroupFeedItem mapping from some specific feed item and ad group which I deleted and am now trying to delete again or create again?
If the latter, is it not possible to map the same ad group to the same item after removing that mapping?

I'm getting this on AdGroupFeedService with a DELETE, FeedItemService with an ADD, and AdGroupFeedService with an ADD

googleadsapi...@google.com

unread,
Apr 26, 2019, 3:30:44 AM4/26/19
to AdWords API and Google Ads API Forum
Hi,

Thank you for reaching out. Could you confirm whether you are using Google Ads API or AdWords API? To further investigate this, could you provide the complete request and response logs when you encountered the error? If you haven't enabled logging yet, kindly provide me the client library you are using so I could assist you on how to do so.

Regards,
Dave Paurillo
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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/b1b65620-6ac2-4303-85b6-4022e732ce1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dhmitc...@gmail.com

unread,
Apr 26, 2019, 10:59:19 AM4/26/19
to AdWords API and Google Ads API Forum
AdWords api. Of course, after occurring 422 times, it stopped. 3 distinct occurrences from our logger (which only captures payload as json and result wo headers)

{ "account": 26, "service": "AdGroupFeedService", "operations": [ { "operator": "SET", "operand": { "feed_id": 94339153, "placeholder_types": [ 1 ], "matching_function": { "operator": "IN", "lhs_operand": [ { "xsi_type": "RequestContextOperand", "context_type": "FEED_ITEM_ID" } ], "rhs_operand": [ { "xsi_type": "ConstantOperand", "type": "LONG", "long_value": 69527069466 }, { "xsi_type": "ConstantOperand", "type": "LONG", "long_value": 69527069469 } ] }, "ad_group_id": 76366138224 } } ], "result": { "list_return_value_type": "AdGroupFeedReturnValue", "value": [ "" ], "partial_failure_errors": [ { "field_path": "operations[0].operand", "field_path_elements": [ { "field": "operations", "index": 0 }, { "field": "operand" } ], "trigger": "", "error_string": "AdGroupFeedError.CANNOT_OPERATE_ON_DELETED_ADGROUP_FEED", "api_error_type": "AdGroupFeedError", "reason": "CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED", "xsi_type": "AdGroupFeedError" } ] } }
{ "account": 26, "service": "AdGroupFeedService", "operations": [ { "operator": "REMOVE", "operand": { "feed_id": 94309469, "placeholder_types": [ 1 ], "matching_function": { "operator": "IN", "lhs_operand": [ { "xsi_type": "RequestContextOperand", "context_type": "FEED_ITEM_ID" } ], "rhs_operand": [ { "xsi_type": "ConstantOperand", "type": "LONG", "long_value": 69531460043 } ] }, "ad_group_id": 72244505991 } } ], "result": { "list_return_value_type": "AdGroupFeedReturnValue", "value": [ "" ], "partial_failure_errors": [ { "field_path": "operations[0].operand", "field_path_elements": [ { "field": "operations", "index": 0 }, { "field": "operand" } ], "trigger": "", "error_string": "AdGroupFeedError.CANNOT_OPERATE_ON_DELETED_ADGROUP_FEED", "api_error_type": "AdGroupFeedError", "reason": "CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED", "xsi_type": "AdGroupFeedError" } ] } }
{ "account": 26, "service": "FeedItemService", "operations": [ { "operator": "REMOVE", "operand": { "feed_id": 94309469, "feed_item_id": 69531460043 } } ], "result": { "list_return_value_type": "FeedItemReturnValue", "value": [ "" ], "partial_failure_errors": [ { "field_path": "operations[0].operand.feedItemId", "field_path_elements": [ { "field": "operations", "index": 0 }, { "field": "operand" }, { "field": "feedItemId" } ], "trigger": "", "error_string": "FeedItemError.CANNOT_OPERATE_ON_DELETED_FEED_ITEM", "api_error_type": "FeedItemError", "reason": "CANNOT_OPERATE_ON_REMOVED_FEED_ITEM", "xsi_type": "FeedItemError" } ] } }

googleadsapi...@google.com

unread,
Apr 29, 2019, 2:03:35 AM4/29/19
to AdWords API and Google Ads API Forum
Hi,

The error CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED occurs when you try to use a removed adGroup feed in an operation. In this case, to ensure that the adGroup feed is not removed, could you try to use the GetAdGroupFeed() method from the AdGroupFeedService and confirm that the adGroup feed you are using in this request is enabled? If this isn't enabled, it means that you are using an invalid(or removed) adGroup feed. If this is enabled and you are encountering the error, kindly confirm to me so I could further investigate this with the team.

The same goes for the error CANNOT_OPERATE_ON_REMOVED_FEED_ITEM, but instead of using AdGroupFeedService, you would need to use the GetFeedItem() method from FeedItemService.

Regards,
Dave Paurillo
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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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/

Don Mitchell

unread,
Apr 30, 2019, 9:17:36 AM4/30/19
to googleadsapi...@google.com, AdWords API and Google Ads API Forum
afaik, there's no such thing as an ad group feed. There's a feed which is defined at the account. The feed has items (also account wide addressable). You can map and unmap ad groups, campaigns, and accounts to feed items in feeds (many:many) to designate which items should show with which adgroups, campaigns, and accounts. (Actually, this raises a question, if I map feed items f_i..f_j to account a, f_k..f_l to campaign c in a, and f_m..f_n to ad_group g in campaign c, will google only show f_m..f_n when it displays ads for g or might it also show f_k..f_l and f_i..f_j?)

If I interpret your statement as literally as possible, you're claiming that the *mapping* of ad group to feed item is removed. No problem, I'm trying to recreate it. That is, the first example request in the email was a request to map an ad group to a feed item. That should succeed, imho, regardless of whether or not such a mapping was previously removed. The request isn't trying to manipulate any old deleted mappings and doesn't identify any existing mappings just the ad group, feed, and feed item. I'm not sure what it should do if the mapping already exists, but it shouldn't reject adding it if it doesn't exist regardless of the past as long as the feed, feed item, and ad group exist.

It's also odd that the error is intermittent (this came from an integration test which we run 20-40x/day on the same test account with newly created campaigns and ad groups for each test run).

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

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 a topic in the Google Groups "AdWords API and Google Ads API Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-api/5CCIBgloHp0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-api...@googlegroups.com.

googleadsapi...@google.com

unread,
Apr 30, 2019, 4:05:46 PM4/30/19
to Don Mitchell, AdWords API and Google Ads API Forum
Hello Don, 

Following up on this thread as Dave is out of office today. Apologize for the confusion. If the Feed is removed, the status will be changed to removed, however, the FeedMapping and the FeedItems are still active. To remove the FeedMapping and the FeedItems you will need to manually remove them using the FeedItemService.mutate() and FeedMappingService.mutate(). This will removing the individual mapping associated with the Feed

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. Additionally, since you are deleting the Feed and the FeedItem, you will not be able to associate the new AdGroup to the same Feed and FeedItem. 

If your concern is different, could you please elaborate on the operations you're performing.

Thanks,
Bharani, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Reply all
Reply to author
Forward
0 new messages