unauthorized_client error

4,965 views
Skip to first unread message

smbimatr...@gmail.com

unread,
Aug 25, 2016, 2:02:35 AM8/25/16
to AdWords API Forum
Hi,

My account is base account and I created Client ID, Client Secret. 
I also created refresh_token. 
But when I try to call api, it returns me unauthorized_client error.

curl \
- -d client_secret=00000000000000000000urmv \
- -d redirect_uri=urn:ietf:wg:oauth:2.0:oob \
- -d refresh_token=1/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXgxo \
- -d grant_type=refresh_token https://accounts.google.com/o/oauth2/token
{
  "error" : "unauthorized_client"
}

Am I missing something? 

Joyce Lava

unread,
Aug 25, 2016, 2:15:11 AM8/25/16
to AdWords API Forum
Hi,

This error normally occurs when the clientId/secret is different from the ones used when you generated the refresh token. Could you please send to me the logs that shows this error when making the api call? Please use reply privately to author when replying.

Thanks,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages