Class PromotionFeedItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
com.google.ads.googleads.v18.common.PromotionFeedItem.Builder
- All Implemented Interfaces:
PromotionFeedItemOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PromotionFeedItem
public static final class PromotionFeedItem.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
implements PromotionFeedItemOrBuilder
Represents a Promotion extension.Protobuf type
google.ads.googleads.v18.common.PromotionFeedItem-
Method Summary
Modifier and TypeMethodDescriptionaddAllFinalMobileUrls(Iterable<String> values) A list of possible final mobile URLs after all cross domain redirects.addAllFinalUrls(Iterable<String> values) A list of possible final URLs after all cross domain redirects.addAllUrlCustomParameters(Iterable<? extends CustomParameter> values) 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.addFinalMobileUrls(String value) A list of possible final mobile URLs after all cross domain redirects.addFinalMobileUrlsBytes(com.google.protobuf.ByteString value) A list of possible final mobile URLs after all cross domain redirects.addFinalUrls(String value) A list of possible final URLs after all cross domain redirects.addFinalUrlsBytes(com.google.protobuf.ByteString value) A list of possible final URLs after all cross domain redirects.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addUrlCustomParameters(int index, CustomParameter value) 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.addUrlCustomParameters(int index, CustomParameter.Builder builderForValue) 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.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.addUrlCustomParameters(CustomParameter.Builder builderForValue) 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.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.addUrlCustomParametersBuilder(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.build()clear()Enum that modifies the qualification of the discount.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A list of possible final mobile URLs after all cross domain redirects.A list of possible final URLs after all cross domain redirects.URL template for appending params to landing page URLs served with parallel tracking.The language of the promotion.Money amount off for discount in the promotion.The occasion the promotion was intended for.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The amount the total order needs to be for the user to be eligible for the promotion.Percentage off discount in the promotion in micros.A code the user should use in order to be eligible for the promotion.Last date when the promotion is eligible to be redeemed.Start date of when the promotion is eligible to be redeemed.A freeform description of what the promotion is targeting.URL template for constructing a tracking URL.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.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnum that modifies the qualification of the discount.intEnum that modifies the qualification of the discount.getFinalMobileUrls(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.intA list of possible final mobile URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListA list of possible final mobile URLs after all cross domain redirects.getFinalUrls(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.intA list of possible final URLs after all cross domain redirects.com.google.protobuf.ProtocolStringListA list of possible final URLs after all cross domain redirects.URL template for appending params to landing page URLs served with parallel tracking.com.google.protobuf.ByteStringURL template for appending params to landing page URLs served with parallel tracking.The language of the promotion.com.google.protobuf.ByteStringThe language of the promotion.Money amount off for discount in the promotion.Money amount off for discount in the promotion.Money amount off for discount in the promotion.The occasion the promotion was intended for.intThe occasion the promotion was intended for.The amount the total order needs to be for the user to be eligible for the promotion.The amount the total order needs to be for the user to be eligible for the promotion.The amount the total order needs to be for the user to be eligible for the promotion.longPercentage off discount in the promotion in micros.A code the user should use in order to be eligible for the promotion.com.google.protobuf.ByteStringA code the user should use in order to be eligible for the promotion.Last date when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringLast date when the promotion is eligible to be redeemed.Start date of when the promotion is eligible to be redeemed.com.google.protobuf.ByteStringStart date of when the promotion is eligible to be redeemed.A freeform description of what the promotion is targeting.com.google.protobuf.ByteStringA freeform description of what the promotion is targeting.URL template for constructing a tracking URL.com.google.protobuf.ByteStringURL template for constructing a tracking URL.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.getUrlCustomParametersBuilder(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.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.intA list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.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.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.List<? extends CustomParameterOrBuilder>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.booleanURL template for appending params to landing page URLs served with parallel tracking.booleanThe language of the promotion.booleanMoney amount off for discount in the promotion.booleanThe amount the total order needs to be for the user to be eligible for the promotion.booleanPercentage off discount in the promotion in micros.booleanA code the user should use in order to be eligible for the promotion.booleanLast date when the promotion is eligible to be redeemed.booleanStart date of when the promotion is eligible to be redeemed.booleanA freeform description of what the promotion is targeting.booleanURL template for constructing a tracking URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(PromotionFeedItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMoneyAmountOff(Money value) Money amount off for discount in the promotion.mergeOrdersOverAmount(Money value) The amount the total order needs to be for the user to be eligible for the promotion.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeUrlCustomParameters(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.setDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value) Enum that modifies the qualification of the discount.setDiscountModifierValue(int value) Enum that modifies the qualification of the discount.setFinalMobileUrls(int index, String value) A list of possible final mobile URLs after all cross domain redirects.setFinalUrls(int index, String value) A list of possible final URLs after all cross domain redirects.setFinalUrlSuffix(String value) URL template for appending params to landing page URLs served with parallel tracking.setFinalUrlSuffixBytes(com.google.protobuf.ByteString value) URL template for appending params to landing page URLs served with parallel tracking.setLanguageCode(String value) The language of the promotion.setLanguageCodeBytes(com.google.protobuf.ByteString value) The language of the promotion.setMoneyAmountOff(Money value) Money amount off for discount in the promotion.setMoneyAmountOff(Money.Builder builderForValue) Money amount off for discount in the promotion.The occasion the promotion was intended for.setOccasionValue(int value) The occasion the promotion was intended for.setOrdersOverAmount(Money value) The amount the total order needs to be for the user to be eligible for the promotion.setOrdersOverAmount(Money.Builder builderForValue) The amount the total order needs to be for the user to be eligible for the promotion.setPercentOff(long value) Percentage off discount in the promotion in micros.setPromotionCode(String value) A code the user should use in order to be eligible for the promotion.setPromotionCodeBytes(com.google.protobuf.ByteString value) A code the user should use in order to be eligible for the promotion.setPromotionEndDate(String value) Last date when the promotion is eligible to be redeemed.setPromotionEndDateBytes(com.google.protobuf.ByteString value) Last date when the promotion is eligible to be redeemed.setPromotionStartDate(String value) Start date of when the promotion is eligible to be redeemed.setPromotionStartDateBytes(com.google.protobuf.ByteString value) Start date of when the promotion is eligible to be redeemed.setPromotionTarget(String value) A freeform description of what the promotion is targeting.setPromotionTargetBytes(com.google.protobuf.ByteString value) A freeform description of what the promotion is targeting.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTrackingUrlTemplate(String value) URL template for constructing a tracking URL.setTrackingUrlTemplateBytes(com.google.protobuf.ByteString value) URL template for constructing a tracking URL.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUrlCustomParameters(int index, CustomParameter value) 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.setUrlCustomParameters(int index, CustomParameter.Builder builderForValue) 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.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<PromotionFeedItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
setField
public PromotionFeedItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
setRepeatedField
public PromotionFeedItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
addRepeatedField
public PromotionFeedItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromotionFeedItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
mergeFrom
public PromotionFeedItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PromotionFeedItem.Builder>- Throws:
IOException
-
getDiscountTypeCase
- Specified by:
getDiscountTypeCasein interfacePromotionFeedItemOrBuilder
-
clearDiscountType
-
getPromotionTriggerCase
- Specified by:
getPromotionTriggerCasein interfacePromotionFeedItemOrBuilder
-
clearPromotionTrigger
-
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
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.
-
setPromotionTarget
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Parameters:
value- The promotionTarget to set.- Returns:
- This builder for chaining.
-
clearPromotionTarget
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Returns:
- This builder for chaining.
-
setPromotionTargetBytes
A freeform description of what the promotion is targeting. This field is required.
optional string promotion_target = 16;- Parameters:
value- The bytes for promotionTarget to set.- Returns:
- This builder for chaining.
-
getDiscountModifierValue
public int getDiscountModifierValue()Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for discountModifier.
-
setDiscountModifierValue
Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Parameters:
value- The enum numeric value on the wire for discountModifier to set.- Returns:
- This builder for chaining.
-
getDiscountModifier
public PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier getDiscountModifier()Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Specified by:
getDiscountModifierin interfacePromotionFeedItemOrBuilder- Returns:
- The discountModifier.
-
setDiscountModifier
public PromotionFeedItem.Builder setDiscountModifier(PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier value) Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Parameters:
value- The discountModifier to set.- Returns:
- This builder for chaining.
-
clearDiscountModifier
Enum that modifies the qualification of the discount.
.google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;- Returns:
- This builder for chaining.
-
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
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.
-
setPromotionStartDate
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Parameters:
value- The promotionStartDate to set.- Returns:
- This builder for chaining.
-
clearPromotionStartDate
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Returns:
- This builder for chaining.
-
setPromotionStartDateBytes
Start date of when the promotion is eligible to be redeemed.
optional string promotion_start_date = 19;- Parameters:
value- The bytes for promotionStartDate to set.- Returns:
- This builder for chaining.
-
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
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.
-
setPromotionEndDate
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Parameters:
value- The promotionEndDate to set.- Returns:
- This builder for chaining.
-
clearPromotionEndDate
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Returns:
- This builder for chaining.
-
setPromotionEndDateBytes
Last date when the promotion is eligible to be redeemed.
optional string promotion_end_date = 20;- Parameters:
value- The bytes for promotionEndDate to set.- Returns:
- This builder for chaining.
-
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionValuein interfacePromotionFeedItemOrBuilder- Returns:
- The enum numeric value on the wire for occasion.
-
setOccasionValue
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The enum numeric value on the wire for occasion to set.- Returns:
- This builder for chaining.
-
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Specified by:
getOccasionin interfacePromotionFeedItemOrBuilder- Returns:
- The occasion.
-
setOccasion
public PromotionFeedItem.Builder setOccasion(PromotionExtensionOccasionEnum.PromotionExtensionOccasion value) 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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Parameters:
value- The occasion to set.- Returns:
- This builder for chaining.
-
clearOccasion
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.v18.enums.PromotionExtensionOccasionEnum.PromotionExtensionOccasion occasion = 9;- Returns:
- This builder for chaining.
-
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
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.
-
setFinalUrls
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
index- The index to set the value at.value- The finalUrls to set.- Returns:
- This builder for chaining.
-
addFinalUrls
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
value- The finalUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalUrls
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
values- The finalUrls to add.- Returns:
- This builder for chaining.
-
clearFinalUrls
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Returns:
- This builder for chaining.
-
addFinalUrlsBytes
A list of possible final URLs after all cross domain redirects. This field is required.
repeated string final_urls = 21;- Parameters:
value- The bytes of the finalUrls to add.- Returns:
- This builder for chaining.
-
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
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.
-
setFinalMobileUrls
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
index- The index to set the value at.value- The finalMobileUrls to set.- Returns:
- This builder for chaining.
-
addFinalMobileUrls
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
value- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalMobileUrls
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
values- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
clearFinalMobileUrls
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Returns:
- This builder for chaining.
-
addFinalMobileUrlsBytes
A list of possible final mobile URLs after all cross domain redirects.
repeated string final_mobile_urls = 22;- Parameters:
value- The bytes of the finalMobileUrls to add.- Returns:
- This builder for chaining.
-
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
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.
-
setTrackingUrlTemplate
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Parameters:
value- The trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
clearTrackingUrlTemplate
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Returns:
- This builder for chaining.
-
setTrackingUrlTemplateBytes
URL template for constructing a tracking URL.
optional string tracking_url_template = 23;- Parameters:
value- The bytes for trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
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.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersListin 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.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersCountin interfacePromotionFeedItemOrBuilder
-
getUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersin interfacePromotionFeedItemOrBuilder
-
setUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
setUrlCustomParameters
public PromotionFeedItem.Builder setUrlCustomParameters(int index, CustomParameter.Builder builderForValue) 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.v18.common.CustomParameter url_custom_parameters = 13; -
addUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
addUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
addUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
addUrlCustomParameters
public PromotionFeedItem.Builder addUrlCustomParameters(int index, CustomParameter.Builder builderForValue) 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.v18.common.CustomParameter url_custom_parameters = 13; -
addAllUrlCustomParameters
public PromotionFeedItem.Builder addAllUrlCustomParameters(Iterable<? extends CustomParameter> values) 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.v18.common.CustomParameter url_custom_parameters = 13; -
clearUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
removeUrlCustomParameters
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.v18.common.CustomParameter url_custom_parameters = 13; -
getUrlCustomParametersBuilder
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.v18.common.CustomParameter url_custom_parameters = 13; -
getUrlCustomParametersOrBuilder
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.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderin interfacePromotionFeedItemOrBuilder
-
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.v18.common.CustomParameter url_custom_parameters = 13;- Specified by:
getUrlCustomParametersOrBuilderListin interfacePromotionFeedItemOrBuilder
-
addUrlCustomParametersBuilder
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.v18.common.CustomParameter url_custom_parameters = 13; -
addUrlCustomParametersBuilder
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.v18.common.CustomParameter url_custom_parameters = 13; -
getUrlCustomParametersBuilderList
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.v18.common.CustomParameter url_custom_parameters = 13; -
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
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.
-
setFinalUrlSuffix
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Parameters:
value- The finalUrlSuffix to set.- Returns:
- This builder for chaining.
-
clearFinalUrlSuffix
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Returns:
- This builder for chaining.
-
setFinalUrlSuffixBytes
URL template for appending params to landing page URLs served with parallel tracking.
optional string final_url_suffix = 24;- Parameters:
value- The bytes for finalUrlSuffix to set.- Returns:
- This builder for chaining.
-
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
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.
-
setLanguageCode
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
The language of the promotion. Represented as BCP 47 language tag.
optional string language_code = 25;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
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.
-
setPercentOff
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;- Parameters:
value- The percentOff to set.- Returns:
- This builder for chaining.
-
clearPercentOff
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;- Returns:
- This builder for chaining.
-
hasMoneyAmountOff
public boolean hasMoneyAmountOff()Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
hasMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the moneyAmountOff field is set.
-
getMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4;- Specified by:
getMoneyAmountOffin interfacePromotionFeedItemOrBuilder- Returns:
- The moneyAmountOff.
-
setMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
setMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
mergeMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
clearMoneyAmountOff
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
getMoneyAmountOffBuilder
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.common.Money money_amount_off = 4; -
getMoneyAmountOffOrBuilder
Money amount off for discount in the promotion. Either this or percent_off is required.
.google.ads.googleads.v18.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
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.
-
setPromotionCode
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Parameters:
value- The promotionCode to set.- Returns:
- This builder for chaining.
-
clearPromotionCode
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Returns:
- This builder for chaining.
-
setPromotionCodeBytes
A code the user should use in order to be eligible for the promotion.
string promotion_code = 18;- Parameters:
value- The bytes for promotionCode to set.- Returns:
- This builder for chaining.
-
hasOrdersOverAmount
public boolean hasOrdersOverAmount()The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
hasOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- Whether the ordersOverAmount field is set.
-
getOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountin interfacePromotionFeedItemOrBuilder- Returns:
- The ordersOverAmount.
-
setOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
setOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
mergeOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
clearOrdersOverAmount
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
getOrdersOverAmountBuilder
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6; -
getOrdersOverAmountOrBuilder
The amount the total order needs to be for the user to be eligible for the promotion.
.google.ads.googleads.v18.common.Money orders_over_amount = 6;- Specified by:
getOrdersOverAmountOrBuilderin interfacePromotionFeedItemOrBuilder
-
setUnknownFields
public final PromotionFeedItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-
mergeUnknownFields
public final PromotionFeedItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PromotionFeedItem.Builder>
-