Hi, An *access token* is a token that allows you to make API calls against an account for a limited period of time (usually one hour). A *refresh token* is a token that allows you to obtain new *access tokens* for a user without having to ask the user for permission each time.
The good news is that AdWordsSoapClient.php <https://github.com/googleads/googleads-php-lib/blob/dcffc71afb845a12ffa02c418f1012aff15991cd/src/Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php#L73> will automatically retrieve new *access tokens* for you as long as you configure your application with a *refresh token*. Some helpful resources on this topic include: - The PHP library's OAuth page <https://github.com/googleads/googleads-php-lib/wiki/Using-OAuth-2.0> - The OAuth documentation on offline access <https://developers.google.com/accounts/docs/OAuth2WebServer#offline> Cheers, Josh, AdWords API Team On Thursday, July 24, 2014 5:29:37 AM UTC-4, [email protected] wrote: > > Hello, I want to know what is the difference between "access token" and > "refresh token". > I would like to know if it is possible to avoid having to recreate a token > manually refresh each time it expires. > I am on the adwords API in PHP > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/d/optout.
