The code from your previous response shows how you are obtaining a *refresh
token*, but could you also share the code you're using to get an *access
token* (create a Credentials object) from the refresh token?
Also, to rule out issues with the client library or your *ads.properties* file,
you could issue the access token request via curl as follows:
curl --data "grant_type=refresh_token" \
--data "refresh_token=*YOUR_REFRESH_TOKEN*" \
--data "client_id=*YOUR_CLIENT_ID*" \
--data "client_secret=*YOUR_CLIENT_SECRET*" \
Obviously, you won't be using curl to get access tokens from your app :),
but this will at least tell us if the refresh token, client ID, and client
secret you're using are valid.
Josh, AdWords API Team
On Wednesday, November 30, 2016 at 4:41:47 PM UTC-5, P Ramz wrote:
> Hi Shwetha
> We are using the Web app flow when we created the OAuth2 credentials.
> We used the Oauth2 Playground URL as the call back and I checked with the
> account configuration and the call back url does match
> On Wednesday, November 30, 2016 at 12:01:46 PM UTC-8, Shwetha Vastrad
> (AdWords API Team) wrote:
>> Hi Ramz,
>> This helps. Could you also let me know if you are using Installed app
>> flow or Web app flow when you created the OAuth2 credentials
>> along with the error message received?
>> Shwetha, AdWords API Team.
Also find us on our blog and Google+:
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to email@example.com
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.