Hi,

The USER_PERMISSION_DENIED 
<https://developers.google.com/adwords/api/docs/common-errors#AuthorizationError.USER_PERMISSION_DENIED>
 error 
you are encountering is due to the client account ID not being linked to 
your MCC, or the OAuth2 credentials you are using does not have access to 
the clientCustomerId you have specified. This said, you can make sure that 
the client account you are using as the clientCustomerId is linked to the 
MCC that is associated to your developer token. Another solution is to 
generate OAuth2 credentials 
<https://developers.google.com/adwords/api/docs/guides/authentication> using 
an email address associated to the clientCustomerId you have specified or 
wish to use.

To do this, you will need to use the ManagedCustomerService and the 
GetAccountHierarchy 
sample code 
<https://developers.google.com/adwords/api/docs/samples/php/account-management#get-the-account-hierarchy-under-the-current-account>,
 
and specify the *MCC account ID* as the value for your *clientCustomerId* in 
the properties file to give you the list of all client accounts linked to 
your MCC that you can use.

As for the CLIENT_CUSTOMER_ID_IS_REQUIRED 
<https://developers.google.com/adwords/api/docs/common-errors#AuthenticationError.CLIENT_CUSTOMER_ID_IS_REQUIRED>
 error, 
you will need to specify a value in your clientCustomerId (in this format "
*123-456-7890*") properties file to avoid this error. Let me know if this 
helps.

Thanks and regards,
Peter
AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [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 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/e2e44e53-35f8-4712-915a-c16126f6c4d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to