USER_PERMISSION_DENIED

52 views
Skip to first unread message

Mateusz Kordowiak

unread,
Jun 1, 2015, 5:27:00 PM6/1/15
to adwor...@googlegroups.com
Hello.
I got [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>'] when call page = CampaignService.get(selector)

<AdWordsApi>
<add key="UserAgent" value="our product name"/>
<add key="DeveloperToken" value="token (not approved)" />
<add key="ClientCustomerId" value="test account ID"/>

<!-- OAuth2 configuration -->
<add key="OAuth2Mode" value="APPLICATION" />
<add key='AuthorizationMethod' value='OAuth2' />
<add key='OAuth2ClientId' value='Client id from project on PROD account Credential tab apps.googleusercontent.com' />
<add key='OAuth2ClientSecret' value='Client secret from project on PROD account Credential tab' />
<add key='OAuth2RefreshToken' value='Token generated by OAuth2 Token Generator' />
</AdWordsApi>


Test account was added as owner to project on production account. (Permissions-> Add member)

And it's still happen. Could someone help to solve that problem.
Regards Mateusz

Umesh Dengale

unread,
Jun 2, 2015, 6:05:40 PM6/2/15
to adwor...@googlegroups.com, duncan...@gmail.com
Hi Mateusz,

Are you trying to link the customer account to the MCC account? Keep in mind that you can't link Test and Production MCC accounts. If you still have issues, please send me the steps you took in the AdWords interface to add a member.

Thanks,
Umesh, AdWords API Team.

Mateusz Kordowiak

unread,
Jun 8, 2015, 5:16:38 AM6/8/15
to adwor...@googlegroups.com, duncan...@gmail.com
According to this I have to use production developer token to connect. I can't use production account because our token wasn't approved yet.
Do I need to create test MCC, token on this account and use them? But when I created test MCC by this page i wasn't able to generate token.
I know this questions are silly, but manual doesn't define how to use test acounts. Could You show step-by-step what type of account I have to create, which account should be used to create project, and which acount should be used to generate OAuth2?

Thanks
Mateusz

Umesh Dengale

unread,
Jun 8, 2015, 4:39:00 PM6/8/15
to adwor...@googlegroups.com, duncan...@gmail.com
Hi Mateusz,

Production MCC account's developer token (either pending approval or approved) is used when making requests against the test MCC account. Please follow the steps given in our sign up and an authentication(OAuth2) guides to complete the setup.

Cheers,
Umesh, AdWords API Team.

Reply all
Reply to author
Forward
0 new messages