How to remove AdGroupFeed objects that reference a removed ad group

96 views
Skip to first unread message

t.k...@social-mining.com

unread,
Jan 15, 2015, 8:23:39 AM1/15/15
to adwor...@googlegroups.com
I'm trying to remove some AdGroupFeed objects that reference Ad Groups that where removed earlier. But the API is returning: OperationAccessDenied.OPERATION_NOT_PERMITTED_FOR_REMOVED_ENTITY. According to the API documentation it is impossible to mutate AdGroupFeed objects that reference removed entities. Is there any way to get rid of the objects? They are making querying the AdGroupFeedService extremely slow.

Josh Radcliff (AdWords API Team)

unread,
Jan 15, 2015, 5:08:06 PM1/15/15
to adwor...@googlegroups.com
Hi,

Unfortunately, you cannot delete an AdGroupFeed via the API once its associated AdGroup has been deleted. To filter out AdGroupFeeds for your deleted AdGroups, you could periodically poll AdGroupService (or use AD_GROUP_PERFORMANCE_REPORT) and collect the IDs of REMOVED ad groups, then exclude those IDs using a predicate on AdGroupId when making your AdGroupFeedService.get requests.

Thanks,
Josh, AdWords API Team

t.k...@social-mining.com

unread,
Jan 23, 2015, 8:47:43 AM1/23/15
to adwor...@googlegroups.com
Hi,

This is not working. I have some accounts that have a large number of removed ad groups, while others have a large number of enabled ad groups. When I try to filter AdGroupFeed objects based on the Ad Group IDs, either way I get SelectorError.TOO_MANY_PREDICATE_VALUE.

Unfortunately the AdGroupFeed's Status attribute is read only, otherwise the problem could be largely avoided by simply removing AdGroupFeed objects prior to removing the Ad Group they link to.

Josh Radcliff (AdWords API Team)

unread,
Jan 23, 2015, 4:24:49 PM1/23/15
to adwor...@googlegroups.com
Hi,

I'm following up with the feeds team to see if there's a way to get around this issue via the API. I'll post back when I hear back from them.

In the meantime, you could try collecting all ENABLED AdGroup IDs via AdGroupService or reports, and then split up your AdGroupFeedService request into multiple requests, each one using an IN list on a subset of the ENABLED IDs.

Thanks,
Josh, AdWords API Team

Josh Radcliff (AdWords API Team)

unread,
Feb 18, 2015, 4:30:32 PM2/18/15
to adwor...@googlegroups.com
Hi,

I've got good news: you can now delete CampaignFeeds and AdGroupFeeds even when their associated campaigns or ad groups have already been deleted. Please give it a try and let me know if you encounter any issues.

Thanks,
Josh, AdWords API Team

t.k...@social-mining.com

unread,
Feb 20, 2015, 8:46:30 AM2/20/15
to adwor...@googlegroups.com
Seems to work, thanks!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages