Hi, I have also tried: def remove_feeds2(client): feed_service = client.GetFeedService(version='v201309') selector = {"fields":["Id", "FeedStatus"] } response = feed_service.get(selector)[0] print response operations = [] for feed in response['entries']: operations += [{ 'operator': 'REMOVE', 'operand': { 'xsi_type': "Feed", 'id': feed['id'] } }] import adspygoogle try: res = feed_service.mutate(operations)[0]
except adspygoogle.adwords.AdWordsErrors.AdWordsRequestError as e: raise adspygoogle.adwords.AdWordsErrors.AdWordsRequestError(e) which unfortunately returns the following error message: FeedError.FEED_ORIGIN_IS_NOT_USER On Thursday, March 6, 2014 10:01:22 AM UTC+1, Luca Fiaschi wrote: > > Hi, > I have added a bunch of feeds to a test account and created corresponding > sitelinks following the API example. > > https://github.com/googleads/googleads-python-lib/blob/master/examples/adspygoogle/adwords/v201309/advanced_operations/add_site_links.py > > While continuing experimenting, I removed all sitelinks. However, the > feeds are still there and fill up the feed budget (20 max per account). > > I am trying to remove them from the API: > > def remove_feeds(client): > feed_service = client.GetFeedService(version='v201309') > selector = {"fields":["Id","FeedStatus"] } > response = feed_service.get(selector)[0] > print response > operations = [] > for feed in response['entries']: > operations += [{ > 'operator': 'SET', > 'operand': { 'xsi_type': "Feed", > 'id': feed['id'], > 'status': 'DELETED' > } > }] > import adspygoogle > res = feed_service.mutate(operations)[0] > > However I get the error message NotEmptyError.EMPTY_LIST. > > Note that all previously added feeds are correctly retrieved and marked as > ACTIVE feeds. > > Could you tell me what is going wrong? Is the request malformed? > Is there any way to remove feeds from the UI? > > Thanks for your support and best regards > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@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 Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.