Can We use one developer token for accessing different adwords accounts in auth.ini file

1,082 views
Skip to first unread message

Shobhan Babu

unread,
Jan 30, 2015, 2:07:46 AM1/30/15
to adwor...@googlegroups.com

Hi.

I am using Google adwords api in PHP for one developer token, where I am providing a customer id and client id, secret key and refresh token.But Now I want to change these to another account where I am keeping the same developer token but different customer id ,client id,secret key and refresh token. Is it possible to use a developer token across multiple google accounts ?


when I am using these I got error like this:


An error has occurred: {
  "error" : "unauthorized_client"
}

Danial Klimkin

unread,
Jan 30, 2015, 7:40:27 AM1/30/15
to adwor...@googlegroups.com
Hello Shabhan,


Yes, developer token doesn't restrict the target account. You need to acquire a separate refresh token though, repeating the authorization flow.

Alternatively, you can link all your accounts under a single MCC and use MCC-level credentials.


-Danial, AdWords API Team.

Shobhan Babu

unread,
Feb 2, 2015, 6:12:26 AM2/2/15
to adwor...@googlegroups.com
I am getting same error,though I am providing all necessary things in auth.ini file

please help me out in this problem ! 

Danial Klimkin

unread,
Feb 2, 2015, 6:21:30 AM2/2/15
to adwor...@googlegroups.com
Please see the response above. This guide describes the process in details:



-Danial.

Shobhan Babu

unread,
Feb 2, 2015, 6:41:57 AM2/2/15
to adwor...@googlegroups.com
After executing GetRefreshtoken.php 

I am getting the error like this


400. That’s an error.

Error: redirect_uri_mismatch

Application: Health Campaign

You can email the developer of this application at:dafdadfjakdjf@gmail.com

The redirect URI in the request: urn:ietf:wg:oauth:2.0:oob did not match a registered redirect URI.

Learn more

Request Details

That’s all we know.

Danial Klimkin

unread,
Feb 3, 2015, 8:54:45 AM2/3/15
to adwor...@googlegroups.com
Hello Shobhan,


Please make sure your hostname is configured as a redirect link for the OAuth client you are using, see:


Alternatively, try using "Installed Application" (not "Web application") client type.

There is a very similar question on the Stack Overflow, please check it out:



-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages