Re: Recovering missed refresh token

2018-03-06 Thread 'Peter Oliquino' via AdWords API Forum
Hi Angel,

You will need to store your refreshToken in a secure place as this will 
allow you to automatically create new access tokens when the previous ones 
expire. Additionally, you may refer to the recommendation in this guide 
 for the 
web app flow, that you instead use client libraries when interacting with 
Google's OAuth2.0 endpoints as a security measure.

Thanks and regards,
Peter
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/842ef850-1729-4877-841f-f1c76d7b7d1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recovering missed refresh token

2018-03-06 Thread Angel Lubenov
Hi!, 
I am using OAuth2 credentials, and I already did all the process for 
getting the clientId and the secret by registering a web-application. 

My problem a different one: once I get the access_token it expires in one 
hour, so I need the refresh_token to get a new one, but the last one is 
provided just in the first time the user authenticates and authorizes my 
app and I can't store it in a secure place, so I'm needing to know the 
refresh_token each time the user authenticates (not just the access_token), 
and I not need for it to change (as the param prompt=consent does). 

Is there a way to get this behavior? 

Thanks,
 

On Tuesday, March 6, 2018 at 1:19:52 AM UTC-3, Peter Oliquino wrote:
>
> Hi Angel,
>
> Could you confirm if you are generating OAuth2 credentials for an AdWords 
> account? If yes, you can follow the steps mentioned in this guide 
>  
> for 
> the Web App flow. Once you have set up your credentials, your application 
> should then be able to access the APIs you wish to use without having to 
> manually specify them in each request.
>
> I hope this helps and feel free to write back if you require further 
> information.
>
> Best regards,
> Peter
> 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/37755c3d-fb28-4193-bfc6-34e03bde202d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Recovering missed refresh token

2018-03-05 Thread 'Peter Oliquino' via AdWords API Forum
Hi Angel,

Could you confirm if you are generating OAuth2 credentials for an AdWords 
account? If yes, you can follow the steps mentioned in this guide 
 
for 
the Web App flow. Once you have set up your credentials, your application 
should then be able to access the APIs you wish to use without having to 
manually specify them in each request.

I hope this helps and feel free to write back if you require further 
information.

Best regards,
Peter
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/45befd46-94be-45dd-a127-a1f36b54a40b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.