Thanks.  I'm able to manually get a new token without any problems.  I 
haven't been able to get it to refresh or see where it gives me a new 
token.  I have a few questions:

   1. Can I refresh the token after it expires?  I've tried everything I 
   can think of, including using the OAuth2TokenRefresher class to try and get 
   a new token both before and after the token expires.
   2. If I cannot, how close to expiration does the token have to be to 
   expiration to receive a new token?  Can I force it at any time?  Do I 
   essentially need to have a cron job that checks any current tokens?

Do you have any specific code examples?  This is the one thing I feel is 
lacking greatly in the documentation and the one thing I need to migrate 
our codebase to production.  Thanks!

On Thursday, February 9, 2017 at 8:58:39 PM UTC-7, Peter Oliquino wrote:
>
> Hi Adam,
>
> Refreshing of expired access tokens happens when the Credential object is 
> instantiated in the client libraries. To better give you an idea of the 
> process, first you will need to have a refresh token that is generated 
> manually. Please note that due to a number of reasons, the refresh token 
> may also expire or become invalid and you'll need to reauthorize the 
> application and generate a new refresh token as stated here 
> <https://github.com/googleads/googleads-php-lib/wiki/API-access-using-own-credentials-(installed-application-flow)>
> .
>
> Once your refresh token details have been provided in your configuration 
> file, the client library will then automatically refresh any expired access 
> tokens when Credential object is created. I hope this has been helpful.
>
> 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 [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/25df12b9-e52e-4c33-a29f-86cc47f24ef5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • PHP ... Adam Haining
    • ... 'Peter Oliquino' via AdWords API Forum
      • ... Adam Haining
        • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... Adam Haining
            • ... 'Thanet Knack Praneenararat (AdWords API Team)' via AdWords API Forum

Reply via email to