public interface GoogleAdsOptions extends PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
GoogleAdsOptions.GoogleAdsCredentialsFactory
Attempts to load the Google Ads credentials.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGoogleAdsClientId()
OAuth 2.0 Client ID identifying the application.
|
java.lang.String |
getGoogleAdsClientSecret()
OAuth 2.0 Client Secret for the specified Client ID.
|
@Nullable com.google.auth.Credentials |
getGoogleAdsCredential()
The credential instance that should be used to authenticate against the Google Ads API.
|
java.lang.Class<? extends CredentialFactory> |
getGoogleAdsCredentialFactoryClass()
The class of the credential factory to create credentials if none have been explicitly set.
|
@Nullable java.lang.String |
getGoogleAdsDeveloperToken()
Google Ads developer token for the user connecting to the Google Ads API.
|
java.lang.String |
getGoogleAdsEndpoint()
Host endpoint to use for connections to the Google Ads API.
|
java.lang.String |
getGoogleAdsRefreshToken()
OAuth 2.0 Refresh Token for the user connecting to the Google Ads API.
|
void |
setGoogleAdsClientId(java.lang.String clientId) |
void |
setGoogleAdsClientSecret(java.lang.String clientSecret) |
void |
setGoogleAdsCredential(com.google.auth.Credentials credential) |
void |
setGoogleAdsCredentialFactoryClass(java.lang.Class<? extends CredentialFactory> credentialFactoryClass) |
void |
setGoogleAdsDeveloperToken(java.lang.String developerToken) |
void |
setGoogleAdsEndpoint(java.lang.String endpoint) |
void |
setGoogleAdsRefreshToken(java.lang.String refreshToken) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, revision, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Default.String(value="googleads.googleapis.com:443") java.lang.String getGoogleAdsEndpoint()
void setGoogleAdsEndpoint(java.lang.String endpoint)
java.lang.String getGoogleAdsClientId()
https://developers.google.com/google-ads/api/docs/oauth/overview
,
https://developers.google.com/identity/protocols/oauth2
void setGoogleAdsClientId(java.lang.String clientId)
java.lang.String getGoogleAdsClientSecret()
https://developers.google.com/google-ads/api/docs/oauth/overview
,
https://developers.google.com/identity/protocols/oauth2
void setGoogleAdsClientSecret(java.lang.String clientSecret)
java.lang.String getGoogleAdsRefreshToken()
https://developers.google.com/google-ads/api/docs/oauth/overview
,
https://developers.google.com/identity/protocols/oauth2
void setGoogleAdsRefreshToken(java.lang.String refreshToken)
@Nullable java.lang.String getGoogleAdsDeveloperToken()
void setGoogleAdsDeveloperToken(java.lang.String developerToken)
@Default.Class(value=GoogleAdsUserCredentialFactory.class) java.lang.Class<? extends CredentialFactory> getGoogleAdsCredentialFactoryClass()
getGoogleAdsCredential()
void setGoogleAdsCredentialFactoryClass(java.lang.Class<? extends CredentialFactory> credentialFactoryClass)
@Default.InstanceFactory(value=GoogleAdsOptions.GoogleAdsCredentialsFactory.class) @Nullable com.google.auth.Credentials getGoogleAdsCredential()
getGoogleAdsCredential()
,
https://github.com/googleapis/google-auth-library-java
void setGoogleAdsCredential(com.google.auth.Credentials credential)