$oAuth2Credential = (new OAuth2TokenBuilder())
//->fromFile()
->withClientId('XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
->withClientSecret('XXXXXXXXXXXXXXX')
->withRefreshToken('XXXXXXXXXXXXX')
->build();
// Construct an API session configured from a properties file and the OAuth2
// credentials above.
$session = (new AdWordsSessionBuilder())
//->fromFile()
->withOAuth2Credential($oAuth2Credential)
->withClientCustomerId('XXX-XXX-XXXX')
->withDeveloperToken('XXXXXXXXXXXXXXXXXX')
->build();
self::runExample(new AdWordsServices(), $session);