Test Account Authorization API Problem

49 views
Skip to first unread message

jo...@spuul.com

unread,
Jul 25, 2017, 11:21:11 AM7/25/17
to AdWords API Forum
Hi,

Been working for these last couple of days.

* Successfully created a test account
* Successfully checked if client_id and client_secret are accurate
* Developer token also verified correct as well (haven't applied yet as I want to run my code in the testing environment)
* OAuth2 credentials already generated (this is where I get confused, should the account I use to generate the credentials the test account? or the production account?)

When trying to make API calls I get an authentication error, I'm not sure as which part am I doing wrong. Any help would be greatly appreciated, I can provide SOAP requests or the yml if need be.

Message: [OfflineConversionError.UNAUTHORIZED_USER @ operations[0].operand]

Errors:

Error [1]:

field_path: operations[0].operand

field_path_elements: [{:field=>"operations", :index=>0}, {:field=>"operand"}]

trigger: 

error_string: OfflineConversionError.UNAUTHORIZED_USER

api_error_type: OfflineConversionError

reason: UNAUTHORIZED_USER

xsi_type: OfflineConversionError

Shwetha Vastrad (AdWords API Team)

unread,
Jul 25, 2017, 1:59:32 PM7/25/17
to AdWords API Forum
Hi John, 

This error occurs when the GCLID in the request is not for the account that you're trying to upload conversions for. You can't upload a conversion for a GCLID that was generated from a different account. You need to ensure that your uploaded clicks really belong to the account specified in the clientCustomerId in the request. Since test accounts do not serve any impressions, its not possible to import offline conversions to a test account. You'll need to use your production account to import offline conversions. 

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages