You were right, thank you.

I had to set Login customer ID.


On Tuesday, June 22, 2021 at 9:23:21 PM UTC+3 adsapi wrote:

> Hi Evaldas,
>
> Thank you for reaching out. The PERMISSION_DENIED 
> <https://developers.google.com/google-ads/api/docs/best-practices/common-errors?hl=zh-tw#user_permission_denied>
>  
> error usually occurs when there is no link between the manager account 
> authenticated in the request and the client account specified in the 
> headers. As you are using the Google Ads API you need to include the 
> login-customer-id 
> <https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid>
>  
> in the header as mentioned in this blog post 
> <https://ads-developers.googleblog.com/2019/01/new-required-header-for-google-ads-api.html>.
>  
> Please make sure you use the correct login-customer-id that you used to 
> generate the OAuth2 credentials. If the issue persists, please 
> regenerate the OAuth2 credentials using the email with Admin or Standard 
> access to the MCC account by following the instructions in this guide 
> <https://developers.google.com/google-ads/api/docs/first-call/overview#prerequisites>
> .
>
> Thanks and regards,
> Xiaoming, Google Ads API Team
>  
> [image: Google Logo] 
> Xiaoming 
> Google Ads API Team 
>   
>
> ref:_00D1U1174p._5004Q2IxJjJ: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 
"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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/149bcd1a-67ea-42d9-98bb-021fd75fc8adn%40googlegroups.com.

Reply via email to