Re: How to get refresh token in Visual .NET

2016-09-30 Thread 'anash' via AdWords API Forum
Hi Javier,

If you need to implement a website where users have to login, then you can 
take a look 
at 
https://github.com/googleads/googleads-dotnet-lib/tree/master/examples/AdWords/CSharp/OAuth
 
for an ASP.NET example that does barebones flow. It stores and restores 
creds from the Session, but a production application needs to do this from 
a database.

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Friday, September 30, 2016 at 6:47:53 AM UTC-4, Zweitze wrote:
>
> If you develop batch software:
>
> Download the client library sources. In it is a project called 
> OAuth2TokenGenerator (or something like that). It generates an OAuth2 
> refreshtoken for the Application flow, which is what you want in batch 
> software.
> OAuth2TokenGenerator asks for ClientId and ClientSecret, and then shows a 
> web page asking you to log in and confirm that the client accesses AdWords 
> information. When you agree it shows the token.
>
> You can also do this when you develop software where the user does not 
> have to login but always uses a fixed login.
>
> If you develop a website where the user has to login, the above is no 
> help. If you develop software where the end user has to login, this is also 
> no help.
>
>
> On Thursday, September 29, 2016 at 3:41:34 PM UTC+2, adwor...@gmail.com 
> wrote:
>>
>> Hello everyone:
>>
>> I'm starting with the AdWords API from Visual .NET and have trouble 
>> getting the OAuth2RefreshToken. 
>>
>> I have the rest of the keys but I lack the OAuth2RefreshToken.
>>
>> On the other hand, I do not know if I get another refresh token during 
>> the execution of the application.
>>
>> If anyone can guide me or tell me a resource where I can find 
>> information, I would be very grateful.
>>
>> Thank you very much
>>
>> Javier
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/80da392c-d299-4810-9aa6-ec481c1a06fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get refresh token in Visual .NET

2016-09-30 Thread Zweitze
If you develop batch software:

Download the client library sources. In it is a project called 
OAuth2TokenGenerator (or something like that). It generates an OAuth2 
refreshtoken for the Application flow, which is what you want in batch 
software.
OAuth2TokenGenerator asks for ClientId and ClientSecret, and then shows a 
web page asking you to log in and confirm that the client accesses AdWords 
information. When you agree it shows the token.

You can also do this when you develop software where the user does not have 
to login but always uses a fixed login.

If you develop a website where the user has to login, the above is no help. 
If you develop software where the end user has to login, this is also no 
help.


On Thursday, September 29, 2016 at 3:41:34 PM UTC+2, adwor...@gmail.com 
wrote:
>
> Hello everyone:
>
> I'm starting with the AdWords API from Visual .NET and have trouble 
> getting the OAuth2RefreshToken. 
>
> I have the rest of the keys but I lack the OAuth2RefreshToken.
>
> On the other hand, I do not know if I get another refresh token during the 
> execution of the application.
>
> If anyone can guide me or tell me a resource where I can find information, 
> I would be very grateful.
>
> Thank you very much
>
> Javier
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/286ccdc9-c7f2-4c19-8326-0c3d0548f998%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get refresh token in Visual .NET

2016-09-29 Thread 'Shwetha Vastrad (AdWords API Team)' via AdWords API Forum
Hi Javier,

Depending on type of authentication flow used in your application, you can 
follow the articles provided here 
 to generate 
a refresh token. Once you have populated your configuration file, the 
client library refreshes expired access tokens automatically.

Regards,
Shwetha, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/1da3b695-4ebf-423c-aa4d-c90d7c22cc20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.