INFO:oauth2client.client:Refreshing access_token INFO:oauth2client.client:Failed to retrieve access token: { "error" : "invalid_client", "error_description" : "The OAuth client was not found." }'

340 views
Skip to first unread message

samri.a...@gmail.com

unread,
May 22, 2017, 5:43:19 AM5/22/17
to AdWords API Forum

Hello,


I'm currently trying to import adwords data using the client library on Python from the Adwords of my company.


For this I created an account manager and I asked for a developer token to use API Adwords. The token has been approved. 


I logged in with my manager account on the Google API console and I created a new project and I asked for OAuth2 ID that I got. Then, 

thanks to the "generate_refresh_token.py" I had a URL and I logged on my Adwords client account and finally I got the "refresh token".


I've completed the googleads.yaml (AdWords configuration) file by adding the OAuth2 IDs, the refresh token, and the client customer ID.


But when I run the file "get_campaigns.py" I get the error message: ''The oAuth2 client was not found''. As you can see on the screenshot.


So anyone knows what's happen?


Thank you

screen_cmd.png

Shwetha Vastrad (AdWords API Team)

unread,
May 22, 2017, 10:16:21 AM5/22/17
to AdWords API Forum
Hi, 

Could you provide the type of OAuth2 credential being used in your application? Could you also check if the OAuth2 client Id is associated with the clientCustomerId or one of its manager accounts? Please provide the SOAP request and response logs generated along with the email address used to generate your OAuth2 credentials so I can take a look. Please use Reply privately to author when responding.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages