Hi,

The OAuth2 credentials you need to use should always be created using an 
email address which has access to the account (clientCustomerId) that you 
are making the calls against. In your scenario, using the production MCC 
OAuth2 credentials for the test MCC account is incorrect. You will need to 
create a separate set of the OAuth2 credentials (including the 
refreshToken) exclusive to the test MCC account to avoid the errors you are 
encountering.

Let me know if this helps.

Thanks and regards,
Peter
AdWords API Team

On Monday, October 1, 2018 at 2:00:02 PM UTC+8, [email protected] wrote:
>
> I'm trying to send my very first request to AdWords API (get some info 
> about campaign).
> So I setted up:
>
> 1. The client id - From Google API console (mcc email used).
> 2. Secret id - From Google API console (mcc email used).
> 3. Refresh token - Production MCC account.
> 4. Developer token - Production MCC account which is in pending approval.
> 5. Adwords Client customer id of the test account in test manager account.
>
> If I use production MCC refresh token and test client customer account ID 
> I get this error: 
> *AuthorizationError.USER_PERMISSION_DENIED*
>
> If I use test MCC refresh token and test client customer account ID I get 
> this error:
> *error: 'invalid_grant', error_description: 'Bad Request'*
>
> So what do I have to use to get access to AdWords API? 
>
>
>
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/88a0a343-5ffc-42dd-8c14-6614065ad88e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... fp . mmc . mail
    • ... 'Peter Oliquino (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to