$configurationLoader
$configurationLoader :
Builds OAuth2 access token fetchers.
fromFile(string $path = null): \Google\AdsApi\Common\OAuth2TokenBuilder
Reads configuration settings from the specified filepath. The filepath is optional, and if omitted, it will look for the default configuration filename in the home directory of the user running PHP.
string | $path | the filepath |
if the configuration file could not be found
this builder populated from the configuration
from(\Google\AdsApi\Common\Configuration $configuration): \Google\AdsApi\Common\AdsBuilder
Populates this builder from the specified configuration object.
\Google\AdsApi\Common\Configuration | $configuration | the configuration |
this builder populated from the configuration
withJsonKeyFilePath(string|null $jsonKeyFilePath): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes an absolute path to an OAuth2 JSON key file when using service account flow. Required and only applicable when using service account flow.
string|null | $jsonKeyFilePath |
this builder
withScopes(string|null $scopes): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes OAuth2 scopes. Required and only applicable when using service account flow.
string|null | $scopes | a space-delimited list of scopes |
this builder
withImpersonatedEmail(string|null $impersonatedEmail): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes an email of account to impersonate when using service account flow. Optional and only applicable when using service account flow.
string|null | $impersonatedEmail |
this builder
withClientId(string|null $clientId): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes an OAuth2 client ID. Required when using installed application or web application flow.
string|null | $clientId |
this builder
withClientSecret(string|null $clientSecret): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes an OAuth2 client secret. Required when using installed application or web application flow.
string|null | $clientSecret |
this builder
withRefreshToken(string|null $refreshToken): \Google\AdsApi\Common\OAuth2TokenBuilder
Includes an OAuth2 refresh token. Required when using installed application or web application flow.
string|null | $refreshToken |
this builder