Hi,
I'm trying to migrate an application from using ClientLogin to oAuth2. I have followed the instructions as given here -
https://developers.google.com/adwords/api/docs/guides/clientlogin-to-oauth2-single-mcc and
https://developers.google.com/adwords/api/docs/guides/authenticationAs indicated, I have
1. created a new project in the developer console.
2. added credentials for installed application and generated the clientId and client secret.
3. set up the consent form with email and the product name
4. used the client library utility to generate the authorization code
5. Copied the authorization code back to the client library utility to exchange it for access token and the refresh token (which resulted in invalid client)
6. So, I finally I used the oauth playground (note - I used the sandbox scope) to get the access token and refresh token and used these in my application config.
But still get the below error -
{"Failed to refresh access token.\n{\n \"error\" : \"unauthorized_client\"\n}"}
I find all this process just to obtain the authorization to access my older adwords account too frustrating. Can you please help me identify if I'm missing anything here?
Any urgent help will be appreciated.
Thanks.