Hello.
I have used node adwords api to manage adwords with nodejs.
So to get authenticated user first, I have done like this.
This is my code:

...
app = express();

let auth = new AdwordsAuth({
         client_id: *****,
         client_secret: *****,
   }, 'http://localhost:3000/account_auth' 
);

app.get('/account_auth'. (req, res) => {
   auth.getAccessTokenFromAuthorizationCode(req.query.code, (err. tokens) 
=> {
      if(err) {
      } else {
          if(tokens) {
             var user = new AdwordsUser({
                           .....
                           access_token: tokens.access_token,
                           refresh_token: tokens.refresh_token
                  });
           }
  }
});
});

So now to get access token, in browser I need to input url as 
auth,generateAuthenticationUrl() and then select google account even I had 
already logined.
So redirect  'http://localhost:3000/account_auth'  and I can get 
access_token.
But I want to get this access_token without user's hand authorization.
I have tried to authenticate with oauth2 using passport, but still select 
google account in the login form.
Can you help me?
Thanks.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/5ee84873-302c-4447-af49-a9ae7f27f881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... freshcoderjack0501
    • ... 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to