Adwords API troubles

38 views
Skip to first unread message

orion...@brex.com

unread,
Apr 15, 2019, 6:51:07 AM4/15/19
to AdWords API and Google Ads API Forum

Hi there,

When I attempt to access the Adwords API using the following python code:
oauth2credentials = client.OAuth2Credentials(
      None, args.client_id, args.client_secret, args.refresh_token,
      datetime.datetime(1980, 1, 1, 12), GOOGLE_OAUTH2_ENDPOINT,
      USER_AGENT)

  oauth2credentials.refresh(httplib2.Http())

oauth2_client = oauth2.GoogleAccessTokenClient(oauth2credentials.access_token, oauth2credentials .token_expiry)

  adwords_client = adwords.AdWordsClient(
      developer_token, oauth2_client, user_agent,
      client_customer_id=client_customer_id)

  customer = adwords_client.GetService('CustomerService').getCustomers()[0]

I get the QuotaCheckError.DEVELOPER_TOKEN_NOT_APPROVED error. However, the developer token I'm using has been approved for basic access. What else could be going wrong?

googleadsapi...@google.com

unread,
Apr 15, 2019, 1:52:08 PM4/15/19
to orion...@brex.com, AdWords API and Google Ads API Forum
Hi Orion, 

Could you please share the API SOAP logs without redacting any information using the Reply privately to author option, to check this further?

Thanks,
Bharani, Google Ads API Team

=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages