[AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']

19 views
Skip to first unread message

Construtiva Sis

unread,
Sep 14, 2015, 4:50:46 PM9/14/15
to AdWords API Forum
Hi,

I am using the service account to grab the campaigns but after generating tokens and the xml have returned this error, I am using my MCC properly, below useful data:

<add key="UserAgent" value=""/>
<add key="DeveloperToken" value="****************"/>
 <add key="ClientCustomerId" value="***************"/>
<add key="OAuth2Mode" value="SERVICE_ACCOUNT" />
<add key="OAuth2ServiceAccountEmail"
        value="40@developer.*********.com" />
<add key="OAuth2PrnEmail" value="m...@***.com.br" />
<add key="OAuth2JwtCertificatePath"
        value="**********" />
<add key="OAuth2JwtCertificatePassword"
        value="************" />

thank you!!!!!!!

Umesh Dengale

unread,
Sep 15, 2015, 9:39:10 AM9/15/15
to AdWords API Forum
Hello,

Are you a Google App domain administrator? For all other cases please use an offline or web flow instead, see this OAuth2.0 guide for more details:

The USER_PERMISSION_DENIED error means you are trying to access the account that doesn't match your OAuth token. The most common issue here is that you might have generated OAuth2 token under your developer account. Please log off of any google account and make sure to log in under your *AdWords* user before generating the OAuth2 tokens.

Thanks,
Umesh, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages