Interface PromotionFeedItemOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PromotionFeedItem, PromotionFeedItem.Builder

public interface PromotionFeedItemOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • hasPromotionTarget

      boolean hasPromotionTarget()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Returns:
      Whether the promotionTarget field is set.
    • getPromotionTarget

      String getPromotionTarget()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Returns:
      The promotionTarget.
    • getPromotionTargetBytes

      com.google.protobuf.ByteString getPromotionTargetBytes()
       A freeform description of what the promotion is targeting.
       This field is required.
       
      optional string promotion_target = 16;
      Returns:
      The bytes for promotionTarget.
    • getDiscountModifierValue

      int getDiscountModifierValue()
       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
      Returns:
      The enum numeric value on the wire for discountModifier.
    • getDiscountModifier

       Enum that modifies the qualification of the discount.
       
      .google.ads.googleads.v18.enums.PromotionExtensionDiscountModifierEnum.PromotionExtensionDiscountModifier discount_modifier = 2;
      Returns:
      The discountModifier.
    • hasPromotionStartDate

      boolean hasPromotionStartDate()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Returns:
      Whether the promotionStartDate field is set.
    • getPromotionStartDate

      String getPromotionStartDate()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Returns:
      The promotionStartDate.
    • getPromotionStartDateBytes

      com.google.protobuf.ByteString getPromotionStartDateBytes()
       Start date of when the promotion is eligible to be redeemed.
       
      optional string promotion_start_date = 19;
      Returns:
      The bytes for promotionStartDate.
    • hasPromotionEndDate

      boolean hasPromotionEndDate()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Returns:
      Whether the promotionEndDate field is set.
    • getPromotionEndDate

      String getPromotionEndDate()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Returns:
      The promotionEndDate.
    • getPromotionEndDateBytes

      com.google.protobuf.ByteString getPromotionEndDateBytes()
       Last date when the promotion is eligible to be redeemed.
       
      optional string promotion_end_date = 20;
      Returns:
      The bytes for promotionEndDate.
    • getOccasionValue

      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;
      Returns:
      The enum numeric value on the wire for occasion.
    • 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;
      Returns:
      The occasion.
    • getFinalUrlsList

      List<String> getFinalUrlsList()
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Returns:
      A list containing the finalUrls.
    • getFinalUrlsCount

      int getFinalUrlsCount()
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Returns:
      The count of finalUrls.
    • getFinalUrls

      String getFinalUrls(int index)
       A list of possible final URLs after all cross domain redirects.
       This field is required.
       
      repeated string final_urls = 21;
      Parameters:
      index - The index of the element to return.
      Returns:
      The finalUrls at the given index.
    • getFinalUrlsBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the finalUrls at the given index.
    • getFinalMobileUrlsList

      List<String> getFinalMobileUrlsList()
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Returns:
      A list containing the finalMobileUrls.
    • getFinalMobileUrlsCount

      int getFinalMobileUrlsCount()
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Returns:
      The count of finalMobileUrls.
    • getFinalMobileUrls

      String getFinalMobileUrls(int index)
       A list of possible final mobile URLs after all cross domain redirects.
       
      repeated string final_mobile_urls = 22;
      Parameters:
      index - The index of the element to return.
      Returns:
      The finalMobileUrls at the given index.
    • getFinalMobileUrlsBytes

      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;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the finalMobileUrls at the given index.
    • hasTrackingUrlTemplate

      boolean hasTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Returns:
      Whether the trackingUrlTemplate field is set.
    • getTrackingUrlTemplate

      String getTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Returns:
      The trackingUrlTemplate.
    • getTrackingUrlTemplateBytes

      com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 23;
      Returns:
      The bytes for trackingUrlTemplate.
    • getUrlCustomParametersList

      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.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParameters

      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.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParametersCount

      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;
    • getUrlCustomParametersOrBuilderList

      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.v18.common.CustomParameter url_custom_parameters = 13;
    • getUrlCustomParametersOrBuilder

      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.v18.common.CustomParameter url_custom_parameters = 13;
    • hasFinalUrlSuffix

      boolean hasFinalUrlSuffix()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Returns:
      Whether the finalUrlSuffix field is set.
    • getFinalUrlSuffix

      String getFinalUrlSuffix()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Returns:
      The finalUrlSuffix.
    • getFinalUrlSuffixBytes

      com.google.protobuf.ByteString getFinalUrlSuffixBytes()
       URL template for appending params to landing page URLs served with parallel
       tracking.
       
      optional string final_url_suffix = 24;
      Returns:
      The bytes for finalUrlSuffix.
    • hasLanguageCode

      boolean hasLanguageCode()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Returns:
      Whether the languageCode field is set.
    • getLanguageCode

      String getLanguageCode()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      com.google.protobuf.ByteString getLanguageCodeBytes()
       The language of the promotion.
       Represented as BCP 47 language tag.
       
      optional string language_code = 25;
      Returns:
      The bytes for languageCode.
    • hasPercentOff

      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;
      Returns:
      Whether the percentOff field is set.
    • getPercentOff

      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;
      Returns:
      The percentOff.
    • hasMoneyAmountOff

      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;
      Returns:
      Whether the moneyAmountOff field is set.
    • getMoneyAmountOff

      Money 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;
      Returns:
      The moneyAmountOff.
    • getMoneyAmountOffOrBuilder

      MoneyOrBuilder 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;
    • hasPromotionCode

      boolean hasPromotionCode()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Returns:
      Whether the promotionCode field is set.
    • getPromotionCode

      String getPromotionCode()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Returns:
      The promotionCode.
    • getPromotionCodeBytes

      com.google.protobuf.ByteString getPromotionCodeBytes()
       A code the user should use in order to be eligible for the promotion.
       
      string promotion_code = 18;
      Returns:
      The bytes for promotionCode.
    • hasOrdersOverAmount

      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;
      Returns:
      Whether the ordersOverAmount field is set.
    • getOrdersOverAmount

      Money 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;
      Returns:
      The ordersOverAmount.
    • getOrdersOverAmountOrBuilder

      MoneyOrBuilder 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;
    • getDiscountTypeCase

      PromotionFeedItem.DiscountTypeCase getDiscountTypeCase()
    • getPromotionTriggerCase

      PromotionFeedItem.PromotionTriggerCase getPromotionTriggerCase()