Package com.google.ads.googleads.lib
Enum GoogleAdsClient.Builder.ConfigPropertyKey
- java.lang.Object
-
- java.lang.Enum<GoogleAdsClient.Builder.ConfigPropertyKey>
-
- com.google.ads.googleads.lib.GoogleAdsClient.Builder.ConfigPropertyKey
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<GoogleAdsClient.Builder.ConfigPropertyKey>
- Enclosing class:
- GoogleAdsClient.Builder
public static enum GoogleAdsClient.Builder.ConfigPropertyKey extends java.lang.Enum<GoogleAdsClient.Builder.ConfigPropertyKey>
Enum of keys expected in the "ads.properties".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIENT_IDCLIENT_SECRETDEVELOPER_TOKENENDPOINTLINKED_CUSTOMER_IDLOGIN_CUSTOMER_IDREFRESH_TOKENSERVICE_ACCOUNT_SECRETS_PATHSERVICE_ACCOUNT_USER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPropertyKey()The key corresponding to this config property.java.lang.StringgetPropertyValue(java.util.Properties properties)Convenience method that gets the value for this config key from the specifiedproperties.static GoogleAdsClient.Builder.ConfigPropertyKeyvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GoogleAdsClient.Builder.ConfigPropertyKey[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLIENT_ID
public static final GoogleAdsClient.Builder.ConfigPropertyKey CLIENT_ID
-
CLIENT_SECRET
public static final GoogleAdsClient.Builder.ConfigPropertyKey CLIENT_SECRET
-
DEVELOPER_TOKEN
public static final GoogleAdsClient.Builder.ConfigPropertyKey DEVELOPER_TOKEN
-
REFRESH_TOKEN
public static final GoogleAdsClient.Builder.ConfigPropertyKey REFRESH_TOKEN
-
ENDPOINT
public static final GoogleAdsClient.Builder.ConfigPropertyKey ENDPOINT
-
LOGIN_CUSTOMER_ID
public static final GoogleAdsClient.Builder.ConfigPropertyKey LOGIN_CUSTOMER_ID
-
LINKED_CUSTOMER_ID
public static final GoogleAdsClient.Builder.ConfigPropertyKey LINKED_CUSTOMER_ID
-
SERVICE_ACCOUNT_SECRETS_PATH
public static final GoogleAdsClient.Builder.ConfigPropertyKey SERVICE_ACCOUNT_SECRETS_PATH
-
SERVICE_ACCOUNT_USER
public static final GoogleAdsClient.Builder.ConfigPropertyKey SERVICE_ACCOUNT_USER
-
-
Method Detail
-
values
public static GoogleAdsClient.Builder.ConfigPropertyKey[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GoogleAdsClient.Builder.ConfigPropertyKey c : GoogleAdsClient.Builder.ConfigPropertyKey.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GoogleAdsClient.Builder.ConfigPropertyKey valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getPropertyKey
public java.lang.String getPropertyKey()
The key corresponding to this config property.
-
getPropertyValue
public java.lang.String getPropertyValue(java.util.Properties properties)
Convenience method that gets the value for this config key from the specifiedproperties.- Parameters:
properties- the properties from which the value will be fetched- Returns:
- the property value for this key, or
nullif no such entry exists. - Throws:
java.lang.NullPointerException- ifproperties == null.
-
-