Class PromotionFeedItem
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.common.PromotionFeedItem
-
- All Implemented Interfaces:
PromotionFeedItemOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class PromotionFeedItem extends com.google.protobuf.GeneratedMessageV3 implements PromotionFeedItemOrBuilder
Represents a Promotion extension.
Protobuf typegoogle.ads.googleads.v10.common.PromotionFeedItem- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPromotionFeedItem.BuilderRepresents a Promotion extension.static classPromotionFeedItem.DiscountTypeCasestatic classPromotionFeedItem.PromotionTriggerCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDISCOUNT_MODIFIER_FIELD_NUMBERstatic intFINAL_MOBILE_URLS_FIELD_NUMBERstatic intFINAL_URL_SUFFIX_FIELD_NUMBERstatic intFINAL_URLS_FIELD_NUMBERstatic intLANGUAGE_CODE_FIELD_NUMBERstatic intMONEY_AMOUNT_OFF_FIELD_NUMBERstatic intOCCASION_FIELD_NUMBERstatic intORDERS_OVER_AMOUNT_FIELD_NUMBERstatic intPERCENT_OFF_FIELD_NUMBERstatic intPROMOTION_CODE_FIELD_NUMBERstatic intPROMOTION_END_DATE_FIELD_NUMBERstatic intPROMOTION_START_DATE_FIELD_NUMBERstatic intPROMOTION_TARGET_FIELD_NUMBERstatic intTRACKING_URL_TEMPLATE_FIELD_NUMBERstatic intURL_CUSTOM_PARAMETERS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static PromotionFeedItemgetDefaultInstance()PromotionFeedItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifiergetDiscountModifier()Enum that modifies the qualification of the discount.intgetDiscountModifierValue()Enum that modifies the qualification of the discount.PromotionFeedItem.DiscountTypeCasegetDiscountTypeCase()java.lang.StringgetFinalMobileUrls(int index)A list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalMobileUrlsBytes(int index)A list of possible final mobile URLs after all cross domain redirects.intgetFinalMobileUrlsCount()A list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListgetFinalMobileUrlsList()A list of possible final mobile URLs after all cross domain redirects.java.lang.StringgetFinalUrls(int index)A list of possible final URLs after all cross domain redirects.com.google.protobuf.ByteStringgetFinalUrlsBytes(int index)A list of possible final URLs after all cross domain redirects.intgetFinalUrlsCount()A list of possible final URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListgetFinalUrlsList()A list of possible final URLs after all cross domain redirects.java.lang.StringgetFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.com.google.protobuf.ByteStringgetFinalUrlSuffixBytes()URL template for appending params to landing page URLs served with parallel tracking.java.lang.StringgetLanguageCode()The language of the promotion.com.google.protobuf.ByteStringgetLanguageCodeBytes()The language of the promotion.MoneygetMoneyAmountOff()Money amount off for discount in the promotion.MoneyOrBuildergetMoneyAmountOffOrBuilder()Money amount off for discount in the promotion.PromotionExtensionOccasionEnum.PromotionExtensionOccasiongetOccasion()The occasion the promotion was intended for.intgetOccasionValue()The occasion the promotion was intended for.MoneygetOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.MoneyOrBuildergetOrdersOverAmountOrBuilder()The amount the total order needs to be for the user to be eligible for the promotion.com.google.protobuf.Parser<PromotionFeedItem>getParserForType()longgetPercentOff()Percentage off discount in the promotion in micros.java.lang.StringgetPromotionCode()A code the user should use in order to be eligible for the promotion.com.google.protobuf.ByteStringgetPromotionCodeBytes()A code the user should use in order to be eligible for the promotion.java.lang.StringgetPromotionEndDate()Last date when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringgetPromotionEndDateBytes()Last date when the promotion is eligible to be redeemed.java.lang.StringgetPromotionStartDate()Start date of when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringgetPromotionStartDateBytes()Start date of when the promotion is eligible to be redeemed.java.lang.StringgetPromotionTarget()A freeform description of what the promotion is targeting.com.google.protobuf.ByteStringgetPromotionTargetBytes()A freeform description of what the promotion is targeting.PromotionFeedItem.PromotionTriggerCasegetPromotionTriggerCase()intgetSerializedSize()java.lang.StringgetTrackingUrlTemplate()URL template for constructing a tracking URL.com.google.protobuf.ByteStringgetTrackingUrlTemplateBytes()URL template for constructing a tracking URL.com.google.protobuf.UnknownFieldSetgetUnknownFields()CustomParametergetUrlCustomParameters(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.intgetUrlCustomParametersCount()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.java.util.List<CustomParameter>getUrlCustomParametersList()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.CustomParameterOrBuildergetUrlCustomParametersOrBuilder(int index)A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.java.util.List<? extends CustomParameterOrBuilder>getUrlCustomParametersOrBuilderList()A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.booleanhasFinalUrlSuffix()URL template for appending params to landing page URLs served with parallel tracking.inthashCode()booleanhasLanguageCode()The language of the promotion.booleanhasMoneyAmountOff()Money amount off for discount in the promotion.booleanhasOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.booleanhasPercentOff()Percentage off discount in the promotion in micros.booleanhasPromotionCode()A code the user should use in order to be eligible for the promotion.booleanhasPromotionEndDate()Last date when the promotion is eligible to be redeemed.booleanhasPromotionStartDate()Start date of when the promotion is eligible to be redeemed.booleanhasPromotionTarget()A freeform description of what the promotion is targeting.booleanhasTrackingUrlTemplate()URL template for constructing a tracking URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PromotionFeedItem.BuildernewBuilder()static PromotionFeedItem.BuildernewBuilder(PromotionFeedItem prototype)PromotionFeedItem.BuildernewBuilderForType()protected PromotionFeedItem.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PromotionFeedItemparseDelimitedFrom(java.io.InputStream input)static PromotionFeedItemparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PromotionFeedItemparseFrom(byte[] data)static PromotionFeedItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PromotionFeedItemparseFrom(com.google.protobuf.ByteString data)static PromotionFeedItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PromotionFeedItemparseFrom(com.google.protobuf.CodedInputStream input)static PromotionFeedItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PromotionFeedItemparseFrom(java.io.InputStream input)static PromotionFeedItemparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PromotionFeedItemparseFrom(java.nio.ByteBuffer data)static PromotionFeedItemparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PromotionFeedItem>parser()PromotionFeedItem.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
PROMOTION_TARGET_FIELD_NUMBER
public static final int PROMOTION_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISCOUNT_MODIFIER_FIELD_NUMBER
public static final int DISCOUNT_MODIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROMOTION_START_DATE_FIELD_NUMBER
public static final int PROMOTION_START_DATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROMOTION_END_DATE_FIELD_NUMBER
public static final int PROMOTION_END_DATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OCCASION_FIELD_NUMBER
public static final int OCCASION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FINAL_URLS_FIELD_NUMBER
public static final int FINAL_URLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FINAL_MOBILE_URLS_FIELD_NUMBER
public static final int FINAL_MOBILE_URLS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRACKING_URL_TEMPLATE_FIELD_NUMBER
public static final int TRACKING_URL_TEMPLATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URL_CUSTOM_PARAMETERS_FIELD_NUMBER
public static final int URL_CUSTOM_PARAMETERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FINAL_URL_SUFFIX_FIELD_NUMBER
public static final int FINAL_URL_SUFFIX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERCENT_OFF_FIELD_NUMBER
public static final int PERCENT_OFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MONEY_AMOUNT_OFF_FIELD_NUMBER
public static final int MONEY_AMOUNT_OFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROMOTION_CODE_FIELD_NUMBER
public static final int PROMOTION_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ORDERS_OVER_AMOUNT_FIELD_NUMBER
public static final int ORDERS_OVER_AMOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDiscountTypeCase
public PromotionFeedItem.DiscountTypeCase getDiscountTypeCase()
- Specified by:
getDiscountTypeCasein interfacePromotionFeedItemOrBuilder
-
getPromotionTriggerCase
public PromotionFeedItem.PromotionTriggerCase getPromotionTriggerCase()
- Specified by:
getPromotionTriggerCasein interfacePromotionFeedItemOrBuilder
-
hasPromotionTarget
public boolean hasPromotionTarget()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
hasPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionTarget field is set.
-
getPromotionTarget
public java.lang.String getPromotionTarget()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetin interfacePromotionFeedItemOrBuilder- Returns:
- The promotionTarget.
-
getPromotionTargetBytes
public com.google.protobuf.ByteString getPromotionTargetBytes()
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Specified by:
getPromotionTargetBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionTarget.
-
getDiscountModifierValue
public int getDiscountModifierValue()
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
getDiscountModifier
public PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier()
Enum that modifies the qualification of the discount.
.google.ads.googleads.v10.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierin interfacePromotionFeedItemOrBuilder- Returns:
- The discountModifier.
-
hasPromotionStartDate
public boolean hasPromotionStartDate()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
hasPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionStartDate field is set.
-
getPromotionStartDate
public java.lang.String getPromotionStartDate()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionStartDate.
-
getPromotionStartDateBytes
public com.google.protobuf.ByteString getPromotionStartDateBytes()
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Specified by:
getPromotionStartDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionStartDate.
-
hasPromotionEndDate
public boolean hasPromotionEndDate()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
hasPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionEndDate field is set.
-
getPromotionEndDate
public java.lang.String getPromotionEndDate()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDatein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionEndDate.
-
getPromotionEndDateBytes
public com.google.protobuf.ByteString getPromotionEndDateBytes()
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Specified by:
getPromotionEndDateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionEndDate.
-
getOccasionValue
public int getOccasionValue()
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
getOccasion
public PromotionExtensionOccasionEnum.PromotionExtensionOccasion getOccasion()
The occasion the promotion was intended for. If an occasion is set, the redemption window will need to fall within the date range associated with the occasion.
.google.ads.googleads.v10.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionin interfacePromotionFeedItemOrBuilder- Returns:
- The occasion.
-
getFinalUrlsList
public com.google.protobuf.ProtocolStringList getFinalUrlsList()
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalUrls.
-
getFinalUrlsCount
public int getFinalUrlsCount()
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalUrls.
-
getFinalUrls
public java.lang.String getFinalUrls(int index)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalUrls at the given index.
-
getFinalUrlsBytes
public com.google.protobuf.ByteString getFinalUrlsBytes(int index)
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Specified by:
getFinalUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalUrls at the given index.
-
getFinalMobileUrlsList
public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsListin interfacePromotionFeedItemOrBuilder- Returns:
- A list containing the finalMobileUrls.
-
getFinalMobileUrlsCount
public int getFinalMobileUrlsCount()
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsCountin interfacePromotionFeedItemOrBuilder- Returns:
- The count of finalMobileUrls.
-
getFinalMobileUrls
public java.lang.String getFinalMobileUrls(int index)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalMobileUrls at the given index.
-
getFinalMobileUrlsBytes
public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index)
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Specified by:
getFinalMobileUrlsBytesin interfacePromotionFeedItemOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalMobileUrls at the given index.
-
hasTrackingUrlTemplate
public boolean hasTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
hasTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the trackingUrlTemplate field is set.
-
getTrackingUrlTemplate
public java.lang.String getTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplatein interfacePromotionFeedItemOrBuilder- Returns:
- The trackingUrlTemplate.
-
getTrackingUrlTemplateBytes
public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Specified by:
getTrackingUrlTemplateBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for trackingUrlTemplate.
-
getUrlCustomParametersList
public java.util.List<CustomParameter> getUrlCustomParametersList()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersListin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersOrBuilderList
public java.util.List<? extends CustomParameterOrBuilder> getUrlCustomParametersOrBuilderList()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderListin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersCount
public int getUrlCustomParametersCount()
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersCountin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParameters
public CustomParameter getUrlCustomParameters(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParametersOrBuilder
public CustomParameterOrBuilder getUrlCustomParametersOrBuilder(int index)
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
repeated .google.ads.googleads.v10.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderin interfacePromotionFeedItemOrBuilder
-
hasFinalUrlSuffix
public boolean hasFinalUrlSuffix()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
hasFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the finalUrlSuffix field is set.
-
getFinalUrlSuffix
public java.lang.String getFinalUrlSuffix()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixin interfacePromotionFeedItemOrBuilder- Returns:
- The finalUrlSuffix.
-
getFinalUrlSuffixBytes
public com.google.protobuf.ByteString getFinalUrlSuffixBytes()
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Specified by:
getFinalUrlSuffixBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for finalUrlSuffix.
-
hasLanguageCode
public boolean hasLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
hasLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the languageCode field is set.
-
getLanguageCode
public java.lang.String getLanguageCode()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodein interfacePromotionFeedItemOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Specified by:
getLanguageCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for languageCode.
-
hasPercentOff
public boolean hasPercentOff()
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
hasPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the percentOff field is set.
-
getPercentOff
public long getPercentOff()
Percentage off discount in the promotion in micros. One million is equivalent to one percent. Either this or money_off_amount is required.
int64 percent_off = 17;- Specified by:
getPercentOffin interfacePromotionFeedItemOrBuilder- Returns:
- The percentOff.
-
hasMoneyAmountOff
public boolean hasMoneyAmountOff()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
hasMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the moneyAmountOff field is set.
-
getMoneyAmountOff
public Money getMoneyAmountOff()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- The moneyAmountOff.
-
getMoneyAmountOffOrBuilder
public MoneyOrBuilder getMoneyAmountOffOrBuilder()
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v10.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffOrBuilderin interfacePromotionFeedItemOrBuilder
-
hasPromotionCode
public boolean hasPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
hasPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- Whether the promotionCode field is set.
-
getPromotionCode
public java.lang.String getPromotionCode()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodein interfacePromotionFeedItemOrBuilder- Returns:
- The promotionCode.
-
getPromotionCodeBytes
public com.google.protobuf.ByteString getPromotionCodeBytes()
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Specified by:
getPromotionCodeBytesin interfacePromotionFeedItemOrBuilder- Returns:
- The bytes for promotionCode.
-
hasOrdersOverAmount
public boolean hasOrdersOverAmount()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
hasOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the ordersOverAmount field is set.
-
getOrdersOverAmount
public Money getOrdersOverAmount()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- The ordersOverAmount.
-
getOrdersOverAmountOrBuilder
public MoneyOrBuilder getOrdersOverAmountOrBuilder()
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v10.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountOrBuilderin interfacePromotionFeedItemOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PromotionFeedItem parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PromotionFeedItem parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PromotionFeedItem parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PromotionFeedItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static PromotionFeedItem parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static PromotionFeedItem parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public PromotionFeedItem.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PromotionFeedItem.Builder newBuilder()
-
newBuilder
public static PromotionFeedItem.Builder newBuilder(PromotionFeedItem prototype)
-
toBuilder
public PromotionFeedItem.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PromotionFeedItem.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PromotionFeedItem getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PromotionFeedItem> parser()
-
getParserForType
public com.google.protobuf.Parser<PromotionFeedItem> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PromotionFeedItem getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-