Hi Joao, An *UNEXPECTED_INTERNAL_API_ERROR* is, as you suspected, often due to a timeout occurring while we process your request.
As a general rule, you should implement error handling and retry logic as specified in our best practices guide <https://developers.google.com/adwords/api/docs/guides/bestpractices#error_handling>, since timeouts of this sort are bound to happen eventually on a small percentage of requests. Usually retrying such a request after waiting a few seconds will result in a successful request. Thanks, Josh, AdWords API Team On Sunday, March 15, 2015 at 12:37:51 PM UTC-4, João Aparício wrote: > > Hi there, > > This is happening some times: > > Server raised fault: > 'InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ > com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro' > > The python code is > > adgroup_service = client.GetService('AdGroupService', > version='v201409') > adgroup_operations = [{ > 'operator':'SET', > 'operand': { > 'xsi_type':'AdGroup', > 'id':adgroupid, > 'biddingStrategyConfiguration': { > 'biddingStrategyId': strategy_id > } > } > } for text_sorted,acc_id,adgroupid,kw_id in chunk] > logger.info('%s %s mutating bidstrategy %s operations' % > (n,acc_id,len(adgroup_operations)) ) > r = adgroup_service.mutate(adgroup_operations) > > The things that is strange here is the following: > > A) Whether this code throws an error or not depends on the account. For > some accounts it always throws an error, for other accounts it never throws > an error. > B) For the accounts where an error is thrown, most of the times the > adgroup biddingstrategies ARE mutated! My issue here is that mutates where > an error is thrown are really slow (I assume due to some sort of internal > timeout?) > > Some guidance would be very useful. > > Best, > Joao > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/1946b41e-f49e-404e-85f6-71a140a73024%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.