Hi,

When you successfully modify the campaigns, etc. of those customers are you 
using the exact same credentials (OAuth2 access token) you are using in the 
conversion upload call?

Thanks,
Josh, AdWords API Team

On Thursday, July 3, 2014 4:00:42 AM UTC-4, Luca Fiaschi wrote:
>
> Hi Josh,
> I am having the same issue. 
> I am trying to upload the conversions looping over all my clientCustumerId 
> looking for one account that matches the one of the clickID but I always 
> get the response error:
>
> UNAUTHORIZED_USER
>
> This is puzzling since I am quite sure to have the correct access rights 
> because I can modify the campaigns etc... of those client IDs.
>
> Any idea, what is going wrong here?
>
> This are one of the failing request headers:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201402"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; xmlns:tns="
> https://adwords.google.com/api/adwords/cm/v201402"; xmlns:SOAP-ENV="
> http://schemas.xmlsoap.org/soap/envelope/";>
>    <SOAP-ENV:Header>
>       <tns:RequestHeader>
>          <tns:clientCustomerId>7311546479</tns:clientCustomerId>
>          <tns:developerToken>******************</tns:developerToken>
>          <tns:userAgent>***************** (AwApi-Python, googleads/1.0.3, 
> Python/2.7)</tns:userAgent>
>          <tns:validateOnly>false</tns:validateOnly>
>          <tns:partialFailure>true</tns:partialFailure>
>       </tns:RequestHeader>
>    </SOAP-ENV:Header>
>    <ns0:Body>
>       <ns1:mutate>
>          <ns1:operations>
>             <ns1:operator>ADD</ns1:operator>
>             <ns1:operand>
>               
>  <ns1:googleClickId>CPaslqvRpb4CFVYWjgodMXsArA</ns1:googleClickId>
>                <ns1:conversionName>attributed revenue</ns1:conversionName>
>                <ns1:conversionTime>20140526 114012 
> +0800</ns1:conversionTime>
>                <ns1:conversionValue>0.113995271868</ns1:conversionValue>
>             </ns1:operand>
>          </ns1:operations>
>       </ns1:mutate>
>    </ns0:Body>
> </SOAP-ENV:Envelope>
>
>
> Here my request suds 
>
> On Friday, June 13, 2014 10:47:04 AM UTC+2, mob...@glomedia.eu wrote:
>>
>> Hi Josh,
>>
>> I understand, but as I've said before: for these specific ClickIds I've 
>> tried ALL the *clientCustomerId *that are in this MCC account.
>> So apparently they either aren't connected to any of my accounts or 
>> something is wrong.
>>
>> Greetings, Gerard
>>
>>
>> On Wednesday, June 11, 2014 3:52:06 PM UTC+2, Josh Radcliff (AdWords API 
>> Team) wrote:
>>>
>>> Hi Gerard,
>>>
>>> The UNAUTHORIZED_USER 
>>> <https://developers.google.com/adwords/api/docs/reference/v201402/OfflineConversionFeedService#OfflineConversionError>
>>>  error 
>>> indicates:
>>>
>>> UNAUTHORIZED_USERThis customer is trying to upload conversions for a 
>>> different customer that it does not manage.
>>>
>>> This suggests that the credentials you are using for the request are for 
>>> a user who does not have access to the customer from which the clicks 
>>> originated. I recommend confirming which account those clicks belong to, 
>>> making sure that that account is in the *clientCustomerId* header, and 
>>> confirming that the OAuth credentials you are using are for a user with 
>>> access to that account.
>>>
>>> Best regards,
>>> Josh, AdWords API Team
>>>
>>> On Wednesday, June 11, 2014 5:09:35 AM UTC-4, mob...@glomedia.eu wrote:
>>>>
>>>> Hi Josh,
>>>>
>>>> I understand, but as some contracts take up to a week to convert, i'll 
>>>> be monitoring it closely.
>>>>
>>>> The last thing that is strange is the following: There are a few 
>>>> conversions that I am unable to convert, because no matter which 
>>>> customer_id I use, I always get UNAUTHORIZED USER. For Example:
>>>>
>>>> CM2Jsveb774CFajjwgod44IAIw
>>>> CPrmxI_e774CFW3HtAodvn8AhQ
>>>> CLmfrNfm774CFasKwwod9QQAlw
>>>>
>>>> Could you check and see what is up with these?
>>>>
>>>> Greetings,
>>>> Gerard
>>>>
>>>> On Monday, June 9, 2014 6:53:26 PM UTC+2, Josh Radcliff (AdWords API 
>>>> Team) wrote:
>>>>>
>>>>> Hi Gerard,
>>>>>
>>>>> Glad to hear the upload's working for you now! Regarding your follow 
>>>>> up question, conversions will be subject to the data freshness guidelines 
>>>>> described here:
>>>>>
>>>>> https://support.google.com/adwords/answer/2544985
>>>>>
>>>>> Cheers,
>>>>> Josh, AdWords API Team
>>>>>
>>>>> On Saturday, June 7, 2014 4:06:11 AM UTC-4, mob...@glomedia.eu wrote:
>>>>>>
>>>>>> Hi Josh,
>>>>>>
>>>>>> so about 90% is now converting correctly!
>>>>>> The last 10% is probably due to me try to convert using the wrong 
>>>>>> account (OfflineConversionError.UNAUTHORIZED_USER), so I'll be looking 
>>>>>> into 
>>>>>> the CLICK_PERFORMANCE_REPORT.
>>>>>> Thank you very much for all your help so far!
>>>>>>
>>>>>> By the way, how many time does it take before I can see the 
>>>>>> conversions in MCC?
>>>>>>
>>>>>> Greetings,
>>>>>> Gerard
>>>>>>
>>>>>> On Friday, June 6, 2014 7:42:33 PM UTC+2, Josh Radcliff (AdWords API 
>>>>>> Team) wrote:
>>>>>>>
>>>>>>> Hi Gerard,
>>>>>>>
>>>>>>> You can use the CLICK_PERFORMANCE_REPORT 
>>>>>>> <https://developers.google.com/adwords/api/docs/appendix/reports#click> 
>>>>>>> to determine the associated account for a click. The associated account 
>>>>>>> won't ever be an MCC, however, since ads only serve from the AdWords 
>>>>>>> client 
>>>>>>> accounts, not the MCC.
>>>>>>>
>>>>>>> Regarding the error, the docs are correct -- you simply need to wait 
>>>>>>> until ~24 hours after the click before uploading the conversion.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Josh, AdWords API Team
>>>>>>>
>>>>>>> On Friday, June 6, 2014 3:54:03 AM UTC-4, mob...@glomedia.eu wrote:
>>>>>>>>
>>>>>>>> So, according to the docs I have to wait until tomorrow to see if I 
>>>>>>>> can convert this click?
>>>>>>>> Could you confirm the clickid was created on the MCC account?
>>>>>>>>
>>>>>>>> Greetings, Gerard
>>>>>>>>
>>>>>>>> On Friday, June 6, 2014 9:52:00 AM UTC+2, mob...@glomedia.eu wrote:
>>>>>>>>>
>>>>>>>>> Hi Josh, 
>>>>>>>>>
>>>>>>>>> when I try and convert a more recent one, I get: 
>>>>>>>>> {"s2s_tracker"=>"CK6FtOblq74CFe9r7AodQE8AJw", 
>>>>>>>>> "signed_at"=>"2014-06-05 00:01:05 UTC"}
>>>>>>>>> Message: [OfflineConversionError.TOO_RECENT_CLICK @ 
>>>>>>>>> operations[0].operand]
>>>>>>>>> Errors:
>>>>>>>>> Error [1]:
>>>>>>>>> field_path: operations[0].operand
>>>>>>>>> trigger:
>>>>>>>>> error_string: OfflineConversionError.TOO_RECENT_CLICK
>>>>>>>>> api_error_type: OfflineConversionError
>>>>>>>>> reason: TOO_RECENT_CLICK
>>>>>>>>> xsi_type: OfflineConversionError
>>>>>>>>>
>>>>>>>>> Greetings, Gerard
>>>>>>>>>
>>>>>>>>> On Thursday, June 5, 2014 11:04:45 PM UTC+2, Josh Radcliff 
>>>>>>>>> (AdWords API Team) wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Gerard,
>>>>>>>>>>
>>>>>>>>>> I did some digging and discovered that in order for you to upload 
>>>>>>>>>> an offline conversion to a conversion type defined in your MCC, the 
>>>>>>>>>> MCC had 
>>>>>>>>>> to have been set as the conversion account *as of the time of 
>>>>>>>>>> the click*. In your particular case, I believe you changed the 
>>>>>>>>>> conversion account to the MCC recently, hence the 
>>>>>>>>>> INVALID_CONVERSION_TYPE 
>>>>>>>>>> error for clicks that occurred prior to that change. You will only 
>>>>>>>>>> be able 
>>>>>>>>>> to upload those clicks to conversion types defined on the AdWords 
>>>>>>>>>> account 
>>>>>>>>>> itself.
>>>>>>>>>>
>>>>>>>>>> I'm still trying to determine if this is a change in behavior. 
>>>>>>>>>> I'll post back here as soon as I have more info.
>>>>>>>>>>
>>>>>>>>>> Cheers,
>>>>>>>>>> Josh, AdWords API Team
>>>>>>>>>>
>>>>>>>>>> On Thursday, June 5, 2014 10:58:43 AM UTC-4, mob...@glomedia.eu 
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>> Done!
>>>>>>>>>>>
>>>>>>>>>>> On Wednesday, June 4, 2014 10:29:49 PM UTC+2, Josh Radcliff 
>>>>>>>>>>> (AdWords API Team) wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Gerard,
>>>>>>>>>>>>
>>>>>>>>>>>> Could you send the following *only to me* by clicking *Reply 
>>>>>>>>>>>> to Author* on this message?
>>>>>>>>>>>>
>>>>>>>>>>>> 1. The customer ID of the AdWords account
>>>>>>>>>>>> 2. The customer ID of the MCC account or AdWords account where 
>>>>>>>>>>>> you created the Conversion (if different from #1)
>>>>>>>>>>>> 3. SOAP requests and responses from your latest attempt
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers,
>>>>>>>>>>>> Josh, AdWords API Team
>>>>>>>>>>>>
>>>>>>>>>>>> On Wednesday, June 4, 2014 4:23:00 PM UTC-4, mob...@glomedia.eu 
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> I am setting the correct clientCustomerId and the Conversion 
>>>>>>>>>>>>> is set to import.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Greetings, Gerard
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wednesday, June 4, 2014 9:47:30 PM UTC+2, Josh Radcliff 
>>>>>>>>>>>>> (AdWords API Team) wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Sorry if I wasn't clear, but my point was you should have the 
>>>>>>>>>>>>>> *AdWords* account ID in the header, *not* the MCC account 
>>>>>>>>>>>>>> ID. Please give that a try and update this thread if you still 
>>>>>>>>>>>>>> have 
>>>>>>>>>>>>>> problems.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> One other note: make sure that the conversion you are 
>>>>>>>>>>>>>> specifying by name in your request is an offline conversion (
>>>>>>>>>>>>>> *Source* = *Import* in the UI).
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Cheers,
>>>>>>>>>>>>>> Josh, AdWords API Team
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Wednesday, June 4, 2014 3:43:12 PM UTC-4, 
>>>>>>>>>>>>>> mob...@glomedia.eu wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> When I set NO credentials (just the developer token):
>>>>>>>>>>>>>>> ================================================
>>>>>>>>>>>>>>> Message: [OfflineConversionError.INVALID_CONVERSION_TYPE @ 
>>>>>>>>>>>>>>> operations[0].operand]
>>>>>>>>>>>>>>> Errors:
>>>>>>>>>>>>>>>   Error [1]:
>>>>>>>>>>>>>>>     field_path: operations[0].operand
>>>>>>>>>>>>>>>     trigger:
>>>>>>>>>>>>>>>     error_string: 
>>>>>>>>>>>>>>> OfflineConversionError.INVALID_CONVERSION_TYPE
>>>>>>>>>>>>>>>     api_error_type: OfflineConversionError
>>>>>>>>>>>>>>>     reason: INVALID_CONVERSION_TYPE
>>>>>>>>>>>>>>>     xsi_type: OfflineConversionError
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> When I set the incorrect clientCustomerId credentials:
>>>>>>>>>>>>>>> ================================================
>>>>>>>>>>>>>>> Message: [OfflineConversionError.UNAUTHORIZED_USER @ 
>>>>>>>>>>>>>>> operations[0].operand]
>>>>>>>>>>>>>>> Errors:
>>>>>>>>>>>>>>>   Error [1]:
>>>>>>>>>>>>>>>     field_path: operations[0].operand
>>>>>>>>>>>>>>>     trigger:
>>>>>>>>>>>>>>>     error_string: OfflineConversionError.UNAUTHORIZED_USER
>>>>>>>>>>>>>>>     api_error_type: OfflineConversionError
>>>>>>>>>>>>>>>     reason: UNAUTHORIZED_USER
>>>>>>>>>>>>>>>     xsi_type: OfflineConversionError
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> When I set the correct clientCustomerId credentials:
>>>>>>>>>>>>>>> ==============================================
>>>>>>>>>>>>>>> Message: [OfflineConversionError.INVALID_CONVERSION_TYPE @ 
>>>>>>>>>>>>>>> operations[0].operand]
>>>>>>>>>>>>>>> Errors:
>>>>>>>>>>>>>>>   Error [1]:
>>>>>>>>>>>>>>>     field_path: operations[0].operand
>>>>>>>>>>>>>>>     trigger:
>>>>>>>>>>>>>>>     error_string: 
>>>>>>>>>>>>>>> OfflineConversionError.INVALID_CONVERSION_TYPE
>>>>>>>>>>>>>>>     api_error_type: OfflineConversionError
>>>>>>>>>>>>>>>     reason: INVALID_CONVERSION_TYPE
>>>>>>>>>>>>>>>     xsi_type: OfflineConversionError
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I don't know where I can find my MCC account_id, so I 
>>>>>>>>>>>>>>> haven't tested it.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks!
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/d/optout.

Reply via email to