Package com.google.ads.googleads.lib
Enum Class GoogleAdsClient.Builder.AdsEnvironmentVariable
java.lang.Object
java.lang.Enum<GoogleAdsClient.Builder.AdsEnvironmentVariable>
com.google.ads.googleads.lib.GoogleAdsClient.Builder.AdsEnvironmentVariable
- All Implemented Interfaces:
Serializable,Comparable<GoogleAdsClient.Builder.AdsEnvironmentVariable>,Constable
- Enclosing class:
- GoogleAdsClient.Builder
public static enum GoogleAdsClient.Builder.AdsEnvironmentVariable
extends Enum<GoogleAdsClient.Builder.AdsEnvironmentVariable>
Enumeration of the environment variables that can be used to configure a
GoogleAdsClient.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClient ID for installed app/web flow credentials.Client secret for installed app/web flow credentials.Path, including the file name, from which the client configuration file should be read.Google Ads API developer token.Google Ads API endpoint.Service account user to impersonate for service account credentials.Path to the JSON key (secrets) file for service account credentials.Linked customer ID.Login customer ID.Maximum size of inbound gRPC messages, in bytes.Refresh token for installed app/web flow credentials.Specifies if application default credentials should be used. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GOOGLE_ADS_CONFIGURATION_FILE_PATH
public static final GoogleAdsClient.Builder.AdsEnvironmentVariable GOOGLE_ADS_CONFIGURATION_FILE_PATHPath, including the file name, from which the client configuration file should be read. Overrides the default location of the user's home directory and default file name of "ads.properties". -
GOOGLE_ADS_CLIENT_ID
Client ID for installed app/web flow credentials. -
GOOGLE_ADS_CLIENT_SECRET
Client secret for installed app/web flow credentials. -
GOOGLE_ADS_REFRESH_TOKEN
Refresh token for installed app/web flow credentials. -
GOOGLE_ADS_JSON_KEY_FILE_PATH
Path to the JSON key (secrets) file for service account credentials. -
GOOGLE_ADS_IMPERSONATED_EMAIL
Service account user to impersonate for service account credentials. -
GOOGLE_ADS_DEVELOPER_TOKEN
Google Ads API developer token. -
GOOGLE_ADS_LOGIN_CUSTOMER_ID
Login customer ID. -
GOOGLE_ADS_LINKED_CUSTOMER_ID
Linked customer ID. -
GOOGLE_ADS_ENDPOINT
Google Ads API endpoint. Overrides the default endpoint of "googleads.googleapis.com:443". -
GOOGLE_ADS_MAX_INBOUND_MESSAGE_BYTES
public static final GoogleAdsClient.Builder.AdsEnvironmentVariable GOOGLE_ADS_MAX_INBOUND_MESSAGE_BYTESMaximum size of inbound gRPC messages, in bytes. -
GOOGLE_ADS_USE_APPLICATION_DEFAULT_CREDENTIALS
public static final GoogleAdsClient.Builder.AdsEnvironmentVariable GOOGLE_ADS_USE_APPLICATION_DEFAULT_CREDENTIALSSpecifies if application default credentials should be used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-