Re: Internal API error while Mutating BiddingStrategy

2015-03-17 Thread João Aparício
Alright thanks :-)

On Monday, March 16, 2015 at 9:06:41 PM UTC, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Sorry, I forgot you're already targeting by ad group. In that case, 
> there's no need to worry about campaign-level batching since an ad group 
> only exists in one campaign.
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, March 16, 2015 at 2:05:05 PM UTC-4, João Aparício wrote:
>>
>> Hi again Josh,
>>
>> Are you saying that even though those operations target a certain 
>> AdGroupId, grouping together adgroups that belong to the same campaign is 
>> faster?
>>
>>
>>
>> On Monday, March 16, 2015 at 5:23:52 PM UTC, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi,
>>>
>>> Glad to hear that reducing the # of operations helped. You may also want 
>>> to consider grouping operations as specified in the best practices guide 
>>> ,
>>>  
>>> if you are not already doing so.
>>>
>>> Thanks,
>>> Josh, AdWords API Team
>>>
>>> On Monday, March 16, 2015 at 11:31:11 AM UTC-4, João Aparício wrote:

 Hi Josh,

 No, that doesn't work. The unexpected_internal_api_error happens 
 repeatedly (even though, like I said, some times the bidding strategy IS 
 changed even though an error is thrown), and retrying doesn't help.

 What did help was lowering the number of operations in the mutate chunk 
 from 500 to 100. Now it seems to be going on without errors.

 Thanks for your help.



 On Sunday, March 15, 2015 at 11:54:09 PM UTC, Josh Radcliff (AdWords 
 API Team) wrote:
>
> 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 
> ,
>  
> 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.(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

Re: Internal API error while Mutating BiddingStrategy

2015-03-16 Thread Josh Radcliff (AdWords API Team)
Hi,

Sorry, I forgot you're already targeting by ad group. In that case, there's 
no need to worry about campaign-level batching since an ad group only 
exists in one campaign.

Thanks,
Josh, AdWords API Team

On Monday, March 16, 2015 at 2:05:05 PM UTC-4, João Aparício wrote:
>
> Hi again Josh,
>
> Are you saying that even though those operations target a certain 
> AdGroupId, grouping together adgroups that belong to the same campaign is 
> faster?
>
>
>
> On Monday, March 16, 2015 at 5:23:52 PM UTC, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> Hi,
>>
>> Glad to hear that reducing the # of operations helped. You may also want 
>> to consider grouping operations as specified in the best practices guide 
>> ,
>>  
>> if you are not already doing so.
>>
>> Thanks,
>> Josh, AdWords API Team
>>
>> On Monday, March 16, 2015 at 11:31:11 AM UTC-4, João Aparício wrote:
>>>
>>> Hi Josh,
>>>
>>> No, that doesn't work. The unexpected_internal_api_error happens 
>>> repeatedly (even though, like I said, some times the bidding strategy IS 
>>> changed even though an error is thrown), and retrying doesn't help.
>>>
>>> What did help was lowering the number of operations in the mutate chunk 
>>> from 500 to 100. Now it seems to be going on without errors.
>>>
>>> Thanks for your help.
>>>
>>>
>>>
>>> On Sunday, March 15, 2015 at 11:54:09 PM UTC, Josh Radcliff (AdWords API 
>>> Team) wrote:

 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 
 ,
  
 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.(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/f36e4957-0a36-4cac-927e-f2cb496e96a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Internal API error while Mutating BiddingStrategy

2015-03-16 Thread João Aparício
Hi again Josh,

Are you saying that even though those operations target a certain 
AdGroupId, grouping together adgroups that belong to the same campaign is 
faster?



On Monday, March 16, 2015 at 5:23:52 PM UTC, Josh Radcliff (AdWords API 
Team) wrote:
>
> Hi,
>
> Glad to hear that reducing the # of operations helped. You may also want 
> to consider grouping operations as specified in the best practices guide 
> ,
>  
> if you are not already doing so.
>
> Thanks,
> Josh, AdWords API Team
>
> On Monday, March 16, 2015 at 11:31:11 AM UTC-4, João Aparício wrote:
>>
>> Hi Josh,
>>
>> No, that doesn't work. The unexpected_internal_api_error happens 
>> repeatedly (even though, like I said, some times the bidding strategy IS 
>> changed even though an error is thrown), and retrying doesn't help.
>>
>> What did help was lowering the number of operations in the mutate chunk 
>> from 500 to 100. Now it seems to be going on without errors.
>>
>> Thanks for your help.
>>
>>
>>
>> On Sunday, March 15, 2015 at 11:54:09 PM UTC, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> 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 
>>> ,
>>>  
>>> 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.(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/5328d799-43ae-4331-b345-2a37300e3c9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Internal API error while Mutating BiddingStrategy

2015-03-16 Thread Josh Radcliff (AdWords API Team)
Hi,

Glad to hear that reducing the # of operations helped. You may also want to 
consider grouping operations as specified in the best practices guide 
,
 
if you are not already doing so.

Thanks,
Josh, AdWords API Team

On Monday, March 16, 2015 at 11:31:11 AM UTC-4, João Aparício wrote:
>
> Hi Josh,
>
> No, that doesn't work. The unexpected_internal_api_error happens 
> repeatedly (even though, like I said, some times the bidding strategy IS 
> changed even though an error is thrown), and retrying doesn't help.
>
> What did help was lowering the number of operations in the mutate chunk 
> from 500 to 100. Now it seems to be going on without errors.
>
> Thanks for your help.
>
>
>
> On Sunday, March 15, 2015 at 11:54:09 PM UTC, Josh Radcliff (AdWords API 
> Team) wrote:
>>
>> 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 
>> ,
>>  
>> 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.(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/a40591ac-30dd-445e-9992-1f905be93c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Internal API error while Mutating BiddingStrategy

2015-03-16 Thread João Aparício
Hi Josh,

No, that doesn't work. The unexpected_internal_api_error happens repeatedly 
(even though, like I said, some times the bidding strategy IS changed even 
though an error is thrown), and retrying doesn't help.

What did help was lowering the number of operations in the mutate chunk 
from 500 to 100. Now it seems to be going on without errors.

Thanks for your help.



On Sunday, March 15, 2015 at 11:54:09 PM UTC, Josh Radcliff (AdWords API 
Team) wrote:
>
> 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 
> ,
>  
> 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.(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/0540cbac-6320-4dec-b021-efaa5acb3d3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Internal API error while Mutating BiddingStrategy

2015-03-15 Thread Josh Radcliff (AdWords API Team)
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 
,
 
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.(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.