Enum Class PromotionPlaceholderFieldEnum.PromotionPlaceholderField
java.lang.Object
java.lang.Enum<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>
com.google.ads.googleads.v18.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>,Constable
- Enclosing class:
- PromotionPlaceholderFieldEnum
public static enum PromotionPlaceholderFieldEnum.PromotionPlaceholderField
extends Enum<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>
implements com.google.protobuf.ProtocolMessageEnum
Possible values for Promotion placeholder fields.Protobuf enum
google.ads.googleads.v18.enums.PromotionPlaceholderFieldEnum.PromotionPlaceholderField-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionData Type: STRING.Data Type: URL_LIST.Data Type: STRING.Data Type: URL_LIST.Data Type: STRING.Data Type: MONEY.Data Type: STRING.Data Type: MONEY.Data Type: INT64.Data Type: STRING.Data Type: DATE.Data Type: DATE.Data Type: STRING.Data Type: URL.Used for return value only.Not specified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intData Type: STRING.static final intData Type: URL_LIST.static final intData Type: STRING.static final intData Type: URL_LIST.static final intData Type: STRING.static final intData Type: MONEY.static final intData Type: STRING.static final intData Type: MONEY.static final intData Type: INT64.static final intData Type: STRING.static final intData Type: DATE.static final intData Type: DATE.static final intData Type: STRING.static final intData Type: URL.static final intUsed for return value only.static final intNot specified. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PromotionPlaceholderFieldEnum.PromotionPlaceholderField>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns 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
-
UNSPECIFIED
Not specified.
UNSPECIFIED = 0; -
UNKNOWN
Used for return value only. Represents value unknown in this version.
UNKNOWN = 1; -
PROMOTION_TARGET
Data Type: STRING. The text that appears on the ad when the extension is shown.
PROMOTION_TARGET = 2; -
DISCOUNT_MODIFIER
Data Type: STRING. Lets you add "up to" phrase to the promotion, in case you have variable promotion rates.
DISCOUNT_MODIFIER = 3; -
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
Data Type: MONEY. Requires a currency and an amount of money.
MONEY_AMOUNT_OFF = 5; -
PROMOTION_CODE
Data Type: STRING. A string that the user enters to get the discount.
PROMOTION_CODE = 6; -
ORDERS_OVER_AMOUNT
Data Type: MONEY. A minimum spend before the user qualifies for the promotion.
ORDERS_OVER_AMOUNT = 7; -
PROMOTION_START
Data Type: DATE. The start date of the promotion.
PROMOTION_START = 8; -
PROMOTION_END
Data Type: DATE. The end date of the promotion.
PROMOTION_END = 9; -
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
Data Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FINAL_URLS = 11; -
FINAL_MOBILE_URLS
Data Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
FINAL_MOBILE_URLS = 12; -
TRACKING_URL
Data Type: URL. Tracking template for the ad when using Upgraded URLs.
TRACKING_URL = 13; -
LANGUAGE
Data Type: STRING. A string represented by a language code for the promotion.
LANGUAGE = 14; -
FINAL_URL_SUFFIX
Data Type: STRING. Final URL suffix for the ad when using parallel tracking.
FINAL_URL_SUFFIX = 15; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUENot specified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEUsed for return value only. Represents value unknown in this version.
UNKNOWN = 1;- See Also:
-
PROMOTION_TARGET_VALUE
public static final int PROMOTION_TARGET_VALUEData Type: STRING. The text that appears on the ad when the extension is shown.
PROMOTION_TARGET = 2;- See Also:
-
DISCOUNT_MODIFIER_VALUE
public static final int DISCOUNT_MODIFIER_VALUEData Type: STRING. Lets you add "up to" phrase to the promotion, in case you have variable promotion rates.
DISCOUNT_MODIFIER = 3;- See Also:
-
PERCENT_OFF_VALUE
public static final int PERCENT_OFF_VALUEData 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:
-
MONEY_AMOUNT_OFF_VALUE
public static final int MONEY_AMOUNT_OFF_VALUEData Type: MONEY. Requires a currency and an amount of money.
MONEY_AMOUNT_OFF = 5;- See Also:
-
PROMOTION_CODE_VALUE
public static final int PROMOTION_CODE_VALUEData Type: STRING. A string that the user enters to get the discount.
PROMOTION_CODE = 6;- See Also:
-
ORDERS_OVER_AMOUNT_VALUE
public static final int ORDERS_OVER_AMOUNT_VALUEData Type: MONEY. A minimum spend before the user qualifies for the promotion.
ORDERS_OVER_AMOUNT = 7;- See Also:
-
PROMOTION_START_VALUE
public static final int PROMOTION_START_VALUEData Type: DATE. The start date of the promotion.
PROMOTION_START = 8;- See Also:
-
PROMOTION_END_VALUE
public static final int PROMOTION_END_VALUEData Type: DATE. The end date of the promotion.
PROMOTION_END = 9;- See Also:
-
OCCASION_VALUE
public static final int OCCASION_VALUEData Type: STRING. Describes the associated event for the promotion using one of the PromotionExtensionOccasion enum values, for example NEW_YEARS.
OCCASION = 10;- See Also:
-
FINAL_URLS_VALUE
public static final int FINAL_URLS_VALUEData Type: URL_LIST. Final URLs to be used in the ad when using Upgraded URLs.
FINAL_URLS = 11;- See Also:
-
FINAL_MOBILE_URLS_VALUE
public static final int FINAL_MOBILE_URLS_VALUEData Type: URL_LIST. Final mobile URLs for the ad when using Upgraded URLs.
FINAL_MOBILE_URLS = 12;- See Also:
-
TRACKING_URL_VALUE
public static final int TRACKING_URL_VALUEData Type: URL. Tracking template for the ad when using Upgraded URLs.
TRACKING_URL = 13;- See Also:
-
LANGUAGE_VALUE
public static final int LANGUAGE_VALUEData Type: STRING. A string represented by a language code for the promotion.
LANGUAGE = 14;- See Also:
-
FINAL_URL_SUFFIX_VALUE
public static final int FINAL_URL_SUFFIX_VALUEData Type: STRING. Final URL suffix for the ad when using parallel tracking.
FINAL_URL_SUFFIX = 15;- See Also:
-
-
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
-
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 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:
value- 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
-
forNumber
- 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 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:
desc- 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
-