Thanks - I'll look into that.

But could you also clarify whether the code snippet I shared would work, if 
I create the session with the OAuth2 object containing the refresh token?

On Thursday, 9 February 2017 13:16:37 UTC-8, Shwetha Vastrad (AdWords API 
Team) wrote:
>
> Hi Danny,
>
> You can check if the access token is about to expire and then refresh this 
> token as needed. The OAuth2TokenRefresher.php 
> <https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/Common/Util/OAuth2TokenRefresher.php>
>  provides 
> functionality to retrieve OAuth2 access tokens and handling refreshing the 
> token if it is going to expire. By default, the client libraries 
> automatically refresh expired access tokens.
>
> 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 [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 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/c3bd0f6f-cbf6-43c3-86b8-cc659af8224f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to