Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Mike M
Hmmm. As far as I understand it, the Customer ID used in the URL should be 
the Linked Customer ID. Basically, that's the customer ID where you wish to 
add, modify, or remove data. And you have to be granted permission by the 
other Google Adwords account to be able to do that linkage. The Login 
Customer ID, however, is what I use in the REST header to be the Google 
Adwords account of the account used for the API calls (ie, my developer 
account). The only reason I would make them the same ID is when in fact 
they might be, such as someone using one single Google Adwords account to 
not only do the API call but to affect the same account where you placed 
the API call. In my particular case, I'm working with multiple clients, and 
so I have my Login Customer ID, and then multiple Linked Customer IDs.

So, yes, you are correct if you're likely doing the API call from the same 
account where you wish to make this change. But for other readers of this 
post who have multiple clients, I wanted to address this so that they are 
clear as well. The documentation is not very clear on this.

On Wednesday, July 6, 2022 at 12:20:21 PM UTC-4 khan...@gmail.com wrote:

> Hi,
>
> I found the issue. I was passing correctly the *login-customer-id* the 
> issue was in the URL
> https://googleads.googleapis.com/v11/customers/*[CUSTOMER_ID]*
> /customerClientLinks:mutate
>
> Google says *[CUSTOMER_ID]* should be customer id but it should be equal 
> to *login-customer-id == [CUSTOMER_ID]*
>
> So when I pass the same ID to both parameters API works.
>
> On Wed, Jul 6, 2022 at 8:14 PM Google Ads API Forum Advisor 
>  wrote:
>
>> Hi Aman,
>>
>> Thank you for raising your concern. Allow me to provide support.
>>
>> It appears that you are experiencing the USER_PERMISSION_DENIED error. 
>> This error occurs when you're not specifying the customer ID of the Google 
>> Ads Account, where your login user account / email address (that you've 
>> used to generate Oauth2 credential) has direct access, to the 
>> login-customer-id. If your login user account / email address has access to 
>> the manager account, then its customer id must be set in the 
>> login-customer-id header.
>>
>> If the error persists after trying the provided suggestion, please 
>> provide the email address / user account used in the authentication and the 
>> complete request 
>> 
>>  
>> and response 
>> 
>>  
>> logs with request ID 
>> 
>>  
>> and request header 
>> 
>>  
>> generated on your end to further investigate.
>>
>> You can provide it via *Reply privately to author* option. If this 
>> option is not available, then send it instead on this email address 
>> googleadsa...@google.com.
>>
>> Regards,
>> [image: Google Logo] 
>> Ernie John 
>> Google Ads API Team 
>>   
>>
>> ref:_00D1U1174p._5004Q2cT9cV:ref
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6ed8149b-0e7b-4383-aad4-a48b31a26956n%40googlegroups.com.


Re: User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See https://developers.google

2022-07-06 Thread Aman Bansal
Hi,

I found the issue. I was passing correctly the *login-customer-id* the
issue was in the URL
https://googleads.googleapis.com/v11/customers/*[CUSTOMER_ID]*
/customerClientLinks:mutate

Google says *[CUSTOMER_ID]* should be customer id but it should be
equal to *login-customer-id
== [CUSTOMER_ID]*

So when I pass the same ID to both parameters API works.

On Wed, Jul 6, 2022 at 8:14 PM Google Ads API Forum Advisor
 wrote:

> Hi Aman,
>
> Thank you for raising your concern. Allow me to provide support.
>
> It appears that you are experiencing the USER_PERMISSION_DENIED error.
> This error occurs when you're not specifying the customer ID of the Google
> Ads Account, where your login user account / email address (that you've
> used to generate Oauth2 credential) has direct access, to the
> login-customer-id. If your login user account / email address has access to
> the manager account, then its customer id must be set in the
> login-customer-id header.
>
> If the error persists after trying the provided suggestion, please provide
> the email address / user account used in the authentication and the
> complete request
> 
> and response
> 
> logs with request ID
> 
> and request header
> 
> generated on your end to further investigate.
>
> You can provide it via *Reply privately to author* option. If this option
> is not available, then send it instead on this email address
> googleadsapi-supp...@google.com.
>
> Regards,
> [image: Google Logo]
> Ernie John
> Google Ads API Team
>
>
> ref:_00D1U1174p._5004Q2cT9cV:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/CAB0%2BXccC%3Dc%2BaKWPRcbBYHCEJGeCboye83SUz8bRjp%2Bb_dcXtDQ%40mail.gmail.com.