$ php GetRefreshToken.php
Enter your OAuth2 client ID here: ****
Enter your OAuth2 client secret here: ****
Select the ads API you're using:  AdWords  AdManager  Both
[OPTIONAL] enter any additional OAuth2 scopes as a space delimited string here (the AdWords scope is already included):
Log into the Google account you use for Google Ads and visit the following URL:
After approving the token enter the authorization code here: ****
Your refresh token is: ****
Copy the following lines to your 'adsapi_php.ini' file:
clientId = "****"
clientSecret = "****"
refreshToken = "****"