Hi, 

AdWords API calls are authorized 
<https://developers.google.com/adwords/api/docs/guides/authentication> through 
OAuth2 and that said, OAuth2 enables the API client application to access 
the AdWords account without having to manage the user's login info. There 
is no need to logout as by requesting a refresh token the API client 
application is not logging onto the account but getting a token 
<https://developers.google.com/adwords/api/docs/guides/authentication#access_and_refresh_token>
 which 
will help the application make calls to the AdWords API. The OAuth2 
documentation <https://developers.google.com/identity/protocols/OAuth2> might 
be helpful for a better understanding. 

The AdWords API does not have a method that can be used to logout the user.

Thanks,
Sreelakshmi Sasidharan, AdWords API Team

On Monday, December 12, 2016 at 10:42:16 AM UTC-5, IntegrationDeveloper 
wrote:
>
> I used this string.Format to form the url successfully to obtain a refresh 
> token to access adwords api :
>
>      string body = 
> string.Format("code={0}&client_id={1}&client_secret={2}&redirect_uri={3}&grant_type={4}",
>  
> HttpUtility.UrlEncode(authorizationCode),
>        HttpUtility.UrlEncode(_appConfig.OAuth2ClientId), 
> HttpUtility.UrlEncode(_appConfig.OAuth2ClientSecret),
>        HttpUtility.UrlEncode(_appConfig.OAuth2RedirectUri), 
> HttpUtility.UrlEncode("authorization_code"));
>
> I would like to log that user out afterward. What's the string.Format to 
> logout programmatically? 
>
> Thanks in advance.
>
>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
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/6dd55bef-0518-4937-afd6-e67fe64c17cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to l... IntegrationDeveloper
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to