Hi,

Rather than use the OAuth playground to get your refresh token, I'd 
recommend using the 
GetRefreshToken.php<https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/GetRefreshToken.php>
 example 
in our PHP library (see also the OAuth2 guide on the library's 
wiki<https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0>). 
Could you give that a try and post back if you still have trouble?

Thanks,
Josh, AdWords API Team

On Tuesday, May 13, 2014 5:43:22 PM UTC-4, [email protected] wrote:
>
> Hi,
>
> I have installed the PHP Google Adwords API on my machine. I have created 
> one production and one test MCC account. I have received a developer token 
> for the production account.
> I am getting the error "unauthorised_client" error when I run the example 
> GetCampaigns.php. In my auth.ini file I have set the values like as below:
> developerToken :<as received from Google>
> userAgent: <company name>
> clientCustomerId : <my 10 digit account id sepearated by hyphens>
> client_id <generated by logging into google cloud console>
> client_secret <generated from google cloud console>
> refresh_token <generated from Google Oauth Playground - 
> https://developers.google.com/oauthplayground/>
>
> The refresh token is generated by logging into Oauth Playground using the 
> test login. Also, the client-id and client-secret are generated for the 
> test account not the production account. I am getting the same issue wheen 
> using the production details.
>
> Can you please suggest what is the cause of this issue and how I can 
> resolve it?
>
> Any help much appreciated.
>
> Thanks
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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 protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
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 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to