AuthorizationError.SERVICE_ACCESS_DENIED

24 views
Skip to first unread message

teng shet

unread,
May 24, 2021, 11:26:08 PM5/24/21
to AdWords API and Google Ads API Forum
  i get msg from AdWords API Compliance

Dear Developer, 

Your tool has been updated to reflect intended use. Approved for basic access to Google AdWords API. Your tool can now make internal reporting api calls.

but also get a AuthorizationError.SERVICE_ACCESS_DENIED err when trying to make a call for get a daily report.

and i use cid like this

```

 Credential credential = new OfflineCredentials.Builder()

                    .forApi(OfflineCredentials.Api.ADWORDS)

                    .withClientSecrets(GoogleClientId, GoogleClientSecret)

                    .withRefreshToken(GoogleRefreshToken)

                    .build()

                    .generateCredential();

            AdWordsSession session = new AdWordsSession.Builder()

                    .withDeveloperToken(GoogleDeveloperToken)

                    .withClientCustomerId(s)

                    .withOAuth2Credential(credential)

                    .build()

```

Google Ads API Forum Advisor Prod

unread,
May 25, 2021, 9:01:43 AM5/25/21
to shete...@gmail.com, adwor...@googlegroups.com

Hi Teng,

Thank you for reaching out. They have just updated it for the intended use. I would suggest you wait a bit longer to have it take effect. Try it again in the next 24-48 hours and let me know if you still encounter the error.

Thanks and regards,
Xiaoming, Google Ads API Team
 


Google Logo
Xiaoming
Google Ads API Team
 


ref:_00D1U1174p._5004Q2HDQ8t:ref
Reply all
Reply to author
Forward
0 new messages