Re: ConversionTrackerService fails mutate operations RequestError.UNKNOWN after a big batch

2018-05-30 Thread Nikolay Grishchenko
Experimentally it seems that the limit is ~1,000 of enabled Conversion 
Actions. If I remove several to the number below 1,000, I can add new ones 
after waiting some time, but only to the level of 1,000.


   - *It there a way to increase this limit?*



   - It would also be nice to describe this limit in the documentation.
   - It would also be nice to change the error from UNKNOWN to 
   EXCEEDED_LIMIT or smth like that.
   

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/00c46235-5553-406c-a501-d1dd0f30461d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


ConversionTrackerService fails mutate operations RequestError.UNKNOWN after a big batch

2018-05-30 Thread Nikolay Grishchenko
I create new Conversion Actions periodically with a Python script. There 
are usually some small batches (1-5 objects per day). 
Unfortunately, after running 2 days ago a big import and successfully 
creating ~360 new Conversion Actions the API doesn't accept more and throws 
RequestError.UNKNOWN

I could not find any limits for number of Conversion Actions described in 
the doc, and the error is usually more descriptive when hitting limits, but 
I have a feeling it has something to do with the number of elements.

Some notes:

   - I tried both v201802 and v201710
   - I tried different xsi_type (AdWordsConversionTracker and 
   UploadConversion)
   - I use Manager Account for Conversion Actions (to simplify 
   cross-account conversions)
   - I have 1,069 enabled actions and 9 removed ones.
   - I tried to create a duplicate one (for testing) and received the 
   expected *Duplicate* error (not the *Unknown* one).
   - >36 hours have passed since my last successful creation of Conversion 
   Action (I hope any throttling should have expired by now)

The script I run:
import googleads
client = googleads.adwords.AdWordsClient.LoadFromStorage()

client.SetClientCustomerId('841-135-3369')

service = client.GetService('ConversionTrackerService')

operations = [

{'operand': {
'alwaysUseDefaultRevenueValue': False,
'attributionModelType': 'LAST_CLICK',
'category': 'DEFAULT',
'countingType': 'MANY_PER_CLICK',
'ctcLookbackWindow': 90,
'defaultRevenueCurrencyCode': 'USD',
'defaultRevenueValue': 0.0,
'excludeFromBidding': True,
'name': 'Foo Website Conversion',
'status': 'ENABLED',
'trackingCodeType': 'WEBPAGE',
'viewthroughLookbackWindow': 30,
'xsi_type': 'AdWordsConversionTracker'
},
  'operator': 'ADD'}
]
service.mutate(operations)


Response I receive:

http://schemas.xmlsoap.org/soap/envelope/";>
   
  https://adwords.google.com/api/adwords/cm/v201710";>
 00056d549ed9bad80a620b522f0faee9
 ConversionTrackerService
 mutate
 1
 401
  
   
   
  
 soap:Client
 [RequestError.UNKNOWN @ operations[0]]
 
https://adwords.google.com/api/adwords/cm/v201710";>
   [RequestError.UNKNOWN @ operations[0]]
   ApiException

   http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="RequestError">
  operations[0]
  
 operations
 0
  
  
  RequestError.UNKNOWN
  RequestError
  UNKNOWN
   

 
  
   



-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5a35ab94-37f7-4cb4-ab47-db0bc95fe349%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Conversion action ADD via API causes RequestError.UNKNOWN

2018-05-29 Thread Nikolay Grishchenko
I use custom Conversion actions for conversions of different Partners.
The new actions are periodically created automatically when I have a new 
Partner (usually in small batches).

Unfortunately after creating ~360 new conversion types tonight I receive 
the *RequestError.UNKNOWN *from the API.
The first ~360 conversions were created successfully and are available in 
AdWords web-interface.

It feels like I have hit some LIMIT of specific operations, but the error 
message doesn't not really have information.
My total number of Conversion actions (including removed) is 1,078. Just 
enabled ones: 1,069. 

Notes.

   - I create all the Conversion actions in Manager Account level (because 
   for most types I need cross-account) conversion tracking.
   - I usually use v201802, but tried with v201710 as well. Same response

The script I run.
import googleads
client = googleads.adwords.AdWordsClient.LoadFromStorage()
client.SetClientCustomerId('841-135-3369')
service = client.GetService('ConversionTrackerService')
operations = [
{'operand': {
'alwaysUseDefaultRevenueValue': False,
'attributionModelType': 'LAST_CLICK',
'category': 'DEFAULT',
'countingType': 'MANY_PER_CLICK',
'ctcLookbackWindow': 90,
'defaultRevenueCurrencyCode': 'USD',
'defaultRevenueValue': 0.0,
'excludeFromBidding': True,
'name': 'Foo Website Conversion',
'status': 'ENABLED',
'trackingCodeType': 'WEBPAGE',
'viewthroughLookbackWindow': 30,
'xsi_type': 'AdWordsConversionTracker'
},
  'operator': 'ADD'}
  ]
service.mutate(operations)

The following error message is received.


http://schemas.xmlsoap.org/soap/envelope/";>
   
  https://adwords.google.com/api/adwords/cm/v201710";>
 00056d432e27dc910aa7850ba80ded43
 ConversionTrackerService
 mutate
 1
 283
  
   
   
  
 soap:Client
 [RequestError.UNKNOWN @ operations[0]]
 
https://adwords.google.com/api/adwords/cm/v201710";>
   [RequestError.UNKNOWN @ operations[0]]
   ApiException

   http://www.w3.org/2001/XMLSchema-instance"; 
xsi:type="RequestError">
  operations[0]
  
 operations
 0
  
  
  RequestError.UNKNOWN
  RequestError
  UNKNOWN
   

 
  
   


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 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 and Google Ads 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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/66fa9141-2476-46b3-ac57-4834f009623e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.