Hi Rohit,
Thank you for reaching out. The OAUTH_TOKEN_INVALID error occurs when the access token not associated with your account is passed into the request header. Please make sure you used the email associated with your manager account to create the OAuth credentials and your manager account has admin or standard access to the client customer account you are making API calls against.
Thanks and regards,
Xiaoming, Google Ads API Team
Hi Akanksha,
Thank you for reaching out. The 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. If the link between the manager and client account was removed or you don’t have access to the client customer id specified or any of its manager accounts, you may encounter this error. If you are using the Google Ads API you need to include the login-customer-id in the header as mentioned in this blog post.
Thanks and regards,
Xiaoming, Google Ads API Team
|
||||||