{
"access_token": "ya29.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token_type": "Bearer",
"expires_in": 3341
}
/usr/local/bin/php /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php
Log in to your AdWords account and open the following URL:
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=xxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com&redirect_uri=https%3A%2F%2Fmysite.tld%2Fintegrate%2Fadwords&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&access_type=offline
After approving the token enter the authorization code here: 4/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PHP Notice: Undefined index: refresh_token in /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php on line 90
Notice: Undefined index: refresh_token in /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php on line 90
PHP Stack trace:
PHP 1. {main}() /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php:0
Call Stack:
PHP Notice: Undefined index: refresh_token in /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php on line 92
0.0008 241592 1. {main}() /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php:0
Your refresh token is:
Notice: Undefined index: refresh_token in /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php on line 92
Call Stack:
0.0008 241592 1. {main}() /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php:0
In your auth.ini file, edit the refresh_token line to be:
refresh_token = ""
PHP Stack trace:
PHP 1. {main}() /path/to/app/vendor/googleads/googleads-php-lib/examples/AdWords/Auth/GetRefreshToken.php:0
Process finished with exit code 0
prompt=consent
approval_prompt=force