When i using 'access_type' => 'online' It not show refresh_token. But in this docs https://github.com/googleads/googleads-php-lib/wiki/API-access-on-behalf-of-your-clients-(web-flow) said: set access_type=online?
On Saturday, June 9, 2018 at 9:21:07 AM UTC+7, Hoang Van wrote: > > sort question: client will do oauth2 for their adwords account on my > website, so i will got refresh_token from their account. My oauth2 with > client Id+ client secret using my google app. So how i use this credential > in library: https://github.com/googleads/googleads-php-lib/ > - i fill: > $config['ADWORDS']['developerToken'] = <-- my > $config['OAUTH2']['clientId'] <-- my app > $config['OAUTH2']['clientSecret'] <-- my app > $config['OAUTH2']['refreshToken'] <-- from user oauth2 > > but get error: > Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: > `POST > https://www.googleapis.com/oauth2/v4/token` > <https://www.googleapis.com/oauth2/v4/token> resulted in a `401 > Unauthorized` response: { "error": "unauthorized_client", > "error_description": "Unauthorized" } in vendor\guzzlehttp\guzzle\src\ > Exception\RequestException.php on line 113 > > > thanks a lot. > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads 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 and Google Ads 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/07e08d01-63ce-48fc-9fbe-13beb7580f9a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
