Hi All,

I am trying to create refresh token via auth2 authorization. My steps at 
the below ;

1. Client click grant access button and redirect to the google login page.
*       https://accounts.google.com/o/oauth2/v2/auth?*

* scope=https%3A//www.googleapis.com/auth/adwords&*

* access_type=offline&*

* include_granted_scopes=true&*

* response_type=code&*

* state=state_parameter_passthrough_value&*

* redirect_uri=https://dev.xxxx.co/redirects/google_ads_connect.html&*

*prompt=consent&*

* client_id=XXXX-en51ugikhXXXXXX.apps.googleusercontent.com*

2. Client login and give access after than page redirect to the our web 
sites.
3. Get the code and create refresh token on the server-side Nodejs function.
   const oAuth2Client = new OAuth2Client( GOOGLE_ADS_CLIENT_ID, 
GOOGLE_ADS_CLIENT_SECRET, GOOGLE_ADS_REDIRECT_URI ); 
    oAuth2Client.getToken(req_body.code, function (error, token, res) {
     .
     .
     .

On the third steps I got at the below error when I call on our dev machine. 
But I can call this service successfully when I call from my local machine. 
Would you help me and what is the reason of it, please ?

{ "error": "unauthorized_client", "error_description": "Unauthorized" }
BR

Hüseyin.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads 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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/4c149b1c-f091-4b21-ab41-64b3399cb2bco%40googlegroups.com.

Reply via email to