Unauthorized Client for production account

30 views
Skip to first unread message

Miles Holt

unread,
Apr 21, 2015, 11:37:20 AM4/21/15
to adwor...@googlegroups.com
Hi,

I've recently had my developer token approved and I'm now trying to use the production account but I'm getting the following error:

An error has occurred: {

  "error" : "unauthorized_client"

}

I've checked the following: 

  • Ensured that the client id and secret have been setup via the production account (in console.developers.google.com)
  • The clientCustomerId is a linked Adwords account ID in the production MCC
  • Billing has been setup for the Adwords account and T&C's have been accepted
  • The terms for the API have been signed
  • The developer token is 'approved'

Is there something else required?

Thanks

Miles

Josh Radcliff (AdWords API Team)

unread,
Apr 21, 2015, 11:50:02 AM4/21/15
to adwor...@googlegroups.com
Hi Miles,

Per the OAuth spec, unauthorized_client will occur if the client (client_id) is not authorized to request an authorization code using the method in the request. Is the application you registered in the console the proper type for the flow you are using?

For example, the GetRefreshToken code samples in our libraries are for applications of type Installed application, so they won't work if your client_id is for a Web application.

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