Enum PromotionPlaceholderFieldEnum.PromotionPlaceholderField
- java.lang.Object
-
- java.lang.Enum<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>
-
- com.google.ads.googleads.v10.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>
- Enclosing class:
- PromotionPlaceholderFieldEnum
public static enum PromotionPlaceholderFieldEnum.PromotionPlaceholderField extends java.lang.Enum<PromotionPlaceholderFieldEnum.PromotionPlaceholderField> implements com.google.protobuf.ProtocolMessageEnum
Possible values for Promotion placeholder fields.
Protobuf enumgoogle.ads.googleads.v10.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCOUNT_MODIFIERData Type: STRING.FINAL_MOBILE_URLSData Type: URL_LIST.FINAL_URL_SUFFIXData Type: STRING.FINAL_URLSData Type: URL_LIST.LANGUAGEData Type: STRING.MONEY_AMOUNT_OFFData Type: MONEY.OCCASIONData Type: STRING.ORDERS_OVER_AMOUNTData Type: MONEY.PERCENT_OFFData Type: INT64.PROMOTION_CODEData Type: STRING.PROMOTION_ENDData Type: DATE.PROMOTION_STARTData Type: DATE.PROMOTION_TARGETData Type: STRING.TRACKING_URLData Type: URL.UNKNOWNUsed for return value only.UNRECOGNIZEDUNSPECIFIEDNot specified.
-
Field Summary
Fields Modifier and Type Field Description static intDISCOUNT_MODIFIER_VALUEData Type: STRING.static intFINAL_MOBILE_URLS_VALUEData Type: URL_LIST.static intFINAL_URL_SUFFIX_VALUEData Type: STRING.static intFINAL_URLS_VALUEData Type: URL_LIST.static intLANGUAGE_VALUEData Type: STRING.static intMONEY_AMOUNT_OFF_VALUEData Type: MONEY.static intOCCASION_VALUEData Type: STRING.static intORDERS_OVER_AMOUNT_VALUEData Type: MONEY.static intPERCENT_OFF_VALUEData Type: INT64.static intPROMOTION_CODE_VALUEData Type: STRING.static intPROMOTION_END_VALUEData Type: DATE.static intPROMOTION_START_VALUEData Type: DATE.static intPROMOTION_TARGET_VALUEData Type: STRING.static intTRACKING_URL_VALUEData Type: URL.static intUNKNOWN_VALUEUsed for return value only.static intUNSPECIFIED_VALUENot specified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>internalGetValueMap()static PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldvalueOf(int value)Deprecated.static PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static PromotionPlaceholderFieldEnum.PromotionPlaceholderFieldvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PromotionPlaceholderFieldEnum.PromotionPlaceholderField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField UNSPECIFIED
Not specified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField UNKNOWN
Used for return value only. Represents value unknown in this version.
UNKNOWN = 1;
-
PROMOTION_TARGET
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField PROMOTION_TARGET
Data Type: STRING. The text that appears on the ad when the extension is shown.
PROMOTION_TARGET = 2;
-
DISCOUNT_MODIFIER
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField DISCOUNT_MODIFIER
Data Type: STRING. Allows you to add "up to" phrase to the promotion, in case you have variable promotion rates.
DISCOUNT_MODIFIER = 3;
-
PERCENT_OFF
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField PERCENT_OFF
Data Type: INT64. Takes a value in micros, where 1 million micros represents 1%, and is shown as a percentage when rendered.
PERCENT_OFF = 4;
-
MONEY_AMOUNT_OFF
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField MONEY_AMOUNT_OFF
Data Type: MONEY. Requires a currency and an amount of money.
MONEY_AMOUNT_OFF = 5;
-
PROMOTION_CODE
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField PROMOTION_CODE
Data Type: STRING. A string that the user enters to get the discount.
PROMOTION_CODE = 6;
-
ORDERS_OVER_AMOUNT
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField ORDERS_OVER_AMOUNT
Data Type: MONEY. A minimum spend before the user qualifies for the promotion.
ORDERS_OVER_AMOUNT = 7;
-
PROMOTION_START
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField PROMOTION_START
Data Type: DATE. The start date of the promotion.
PROMOTION_START = 8;
-
PROMOTION_END
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField PROMOTION_END
Data Type: DATE. The end date of the promotion.
PROMOTION_END = 9;
-
OCCASION
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField OCCASION
Data Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
OCCASION = 10;
-
FINAL_URLS
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField FINAL_URLS
Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FINAL_URLS = 11;
-
FINAL_MOBILE_URLS
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField FINAL_MOBILE_URLS
Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
FINAL_MOBILE_URLS = 12;
-
TRACKING_URL
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField TRACKING_URL
Data Type: URL. Tracking template for the ad when using Upgraded URLs.
TRACKING_URL = 13;
-
LANGUAGE
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField LANGUAGE
Data Type: STRING. A string represented by a language code for the promotion.
LANGUAGE = 14;
-
FINAL_URL_SUFFIX
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField FINAL_URL_SUFFIX
Data Type: STRING. Final URL suffix for the ad when using parallel tracking.
FINAL_URL_SUFFIX = 15;
-
UNRECOGNIZED
public static final PromotionPlaceholderFieldEnum.PromotionPlaceholderField UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Not specified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
Used for return value only. Represents value unknown in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
PROMOTION_TARGET_VALUE
public static final int PROMOTION_TARGET_VALUE
Data Type: STRING. The text that appears on the ad when the extension is shown.
PROMOTION_TARGET = 2;- See Also:
- Constant Field Values
-
DISCOUNT_MODIFIER_VALUE
public static final int DISCOUNT_MODIFIER_VALUE
Data Type: STRING. Allows you to add "up to" phrase to the promotion, in case you have variable promotion rates.
DISCOUNT_MODIFIER = 3;- See Also:
- Constant Field Values
-
PERCENT_OFF_VALUE
public static final int PERCENT_OFF_VALUE
Data Type: INT64. Takes a value in micros, where 1 million micros represents 1%, and is shown as a percentage when rendered.
PERCENT_OFF = 4;- See Also:
- Constant Field Values
-
MONEY_AMOUNT_OFF_VALUE
public static final int MONEY_AMOUNT_OFF_VALUE
Data Type: MONEY. Requires a currency and an amount of money.
MONEY_AMOUNT_OFF = 5;- See Also:
- Constant Field Values
-
PROMOTION_CODE_VALUE
public static final int PROMOTION_CODE_VALUE
Data Type: STRING. A string that the user enters to get the discount.
PROMOTION_CODE = 6;- See Also:
- Constant Field Values
-
ORDERS_OVER_AMOUNT_VALUE
public static final int ORDERS_OVER_AMOUNT_VALUE
Data Type: MONEY. A minimum spend before the user qualifies for the promotion.
ORDERS_OVER_AMOUNT = 7;- See Also:
- Constant Field Values
-
PROMOTION_START_VALUE
public static final int PROMOTION_START_VALUE
Data Type: DATE. The start date of the promotion.
PROMOTION_START = 8;- See Also:
- Constant Field Values
-
PROMOTION_END_VALUE
public static final int PROMOTION_END_VALUE
Data Type: DATE. The end date of the promotion.
PROMOTION_END = 9;- See Also:
- Constant Field Values
-
OCCASION_VALUE
public static final int OCCASION_VALUE
Data Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
OCCASION = 10;- See Also:
- Constant Field Values
-
FINAL_URLS_VALUE
public static final int FINAL_URLS_VALUE
Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FINAL_URLS = 11;- See Also:
- Constant Field Values
-
FINAL_MOBILE_URLS_VALUE
public static final int FINAL_MOBILE_URLS_VALUE
Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
FINAL_MOBILE_URLS = 12;- See Also:
- Constant Field Values
-
TRACKING_URL_VALUE
public static final int TRACKING_URL_VALUE
Data Type: URL. Tracking template for the ad when using Upgraded URLs.
TRACKING_URL = 13;- See Also:
- Constant Field Values
-
LANGUAGE_VALUE
public static final int LANGUAGE_VALUE
Data Type: STRING. A string represented by a language code for the promotion.
LANGUAGE = 14;- See Also:
- Constant Field Values
-
FINAL_URL_SUFFIX_VALUE
public static final int FINAL_URL_SUFFIX_VALUE
Data Type: STRING. Final URL suffix for the ad when using parallel tracking.
FINAL_URL_SUFFIX = 15;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField[] 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 (PromotionPlaceholderFieldEnum.PromotionPlaceholderField c : PromotionPlaceholderFieldEnum.PromotionPlaceholderField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<PromotionPlaceholderFieldEnum.PromotionPlaceholderField> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static PromotionPlaceholderFieldEnum.PromotionPlaceholderField valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-