Interface Campaign.ShoppingSettingOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Campaign.ShoppingSetting, Campaign.ShoppingSetting.Builder
    Enclosing class:
    Campaign

    public static interface Campaign.ShoppingSettingOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • hasMerchantId

        boolean hasMerchantId()
         Immutable. ID of the Merchant Center account.
         This field is required for create operations. This field is immutable for
         Shopping campaigns.
         
        optional int64 merchant_id = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        Whether the merchantId field is set.
      • getMerchantId

        long getMerchantId()
         Immutable. ID of the Merchant Center account.
         This field is required for create operations. This field is immutable for
         Shopping campaigns.
         
        optional int64 merchant_id = 5 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        The merchantId.
      • hasSalesCountry

        boolean hasSalesCountry()
         Sales country of products to include in the campaign.
         Only one of feed_label or sales_country can be set.
         Field is immutable except for clearing.
         Once this field is cleared, you must use feed_label if you
         want to set the sales country.
         
        optional string sales_country = 6;
        Returns:
        Whether the salesCountry field is set.
      • getSalesCountry

        java.lang.String getSalesCountry()
         Sales country of products to include in the campaign.
         Only one of feed_label or sales_country can be set.
         Field is immutable except for clearing.
         Once this field is cleared, you must use feed_label if you
         want to set the sales country.
         
        optional string sales_country = 6;
        Returns:
        The salesCountry.
      • getSalesCountryBytes

        com.google.protobuf.ByteString getSalesCountryBytes()
         Sales country of products to include in the campaign.
         Only one of feed_label or sales_country can be set.
         Field is immutable except for clearing.
         Once this field is cleared, you must use feed_label if you
         want to set the sales country.
         
        optional string sales_country = 6;
        Returns:
        The bytes for salesCountry.
      • getFeedLabel

        java.lang.String getFeedLabel()
         Feed label of products to include in the campaign.
         Only one of feed_label or sales_country can be set.
         If used instead of sales_country, the feed_label field accepts country
         codes in the same format for example: 'XX'.
         Otherwise can be any string used for feed label in Google Merchant
         Center.
         
        string feed_label = 10;
        Returns:
        The feedLabel.
      • getFeedLabelBytes

        com.google.protobuf.ByteString getFeedLabelBytes()
         Feed label of products to include in the campaign.
         Only one of feed_label or sales_country can be set.
         If used instead of sales_country, the feed_label field accepts country
         codes in the same format for example: 'XX'.
         Otherwise can be any string used for feed label in Google Merchant
         Center.
         
        string feed_label = 10;
        Returns:
        The bytes for feedLabel.
      • hasCampaignPriority

        boolean hasCampaignPriority()
         Priority of the campaign. Campaigns with numerically higher priorities
         take precedence over those with lower priorities.
         This field is required for Shopping campaigns, with values between 0 and
         2, inclusive.
         This field is optional for Smart Shopping campaigns, but must be equal to
         3 if set.
         
        optional int32 campaign_priority = 7;
        Returns:
        Whether the campaignPriority field is set.
      • getCampaignPriority

        int getCampaignPriority()
         Priority of the campaign. Campaigns with numerically higher priorities
         take precedence over those with lower priorities.
         This field is required for Shopping campaigns, with values between 0 and
         2, inclusive.
         This field is optional for Smart Shopping campaigns, but must be equal to
         3 if set.
         
        optional int32 campaign_priority = 7;
        Returns:
        The campaignPriority.
      • hasEnableLocal

        boolean hasEnableLocal()
         Whether to include local products.
         
        optional bool enable_local = 8;
        Returns:
        Whether the enableLocal field is set.
      • getEnableLocal

        boolean getEnableLocal()
         Whether to include local products.
         
        optional bool enable_local = 8;
        Returns:
        The enableLocal.
      • getUseVehicleInventory

        boolean getUseVehicleInventory()
         Immutable. Whether to target Vehicle Listing inventory. This field is
         supported only in Smart Shopping Campaigns. For setting Vehicle Listing
         inventory in Performance Max campaigns, use `listing_type` instead.
         
        bool use_vehicle_inventory = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        The useVehicleInventory.
      • getAdvertisingPartnerIdsList

        java.util.List<java.lang.Long> getAdvertisingPartnerIdsList()
         Immutable. The ads account IDs of advertising partners cooperating within
         the campaign.
         
        repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        A list containing the advertisingPartnerIds.
      • getAdvertisingPartnerIdsCount

        int getAdvertisingPartnerIdsCount()
         Immutable. The ads account IDs of advertising partners cooperating within
         the campaign.
         
        repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        The count of advertisingPartnerIds.
      • getAdvertisingPartnerIds

        long getAdvertisingPartnerIds​(int index)
         Immutable. The ads account IDs of advertising partners cooperating within
         the campaign.
         
        repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        index - The index of the element to return.
        Returns:
        The advertisingPartnerIds at the given index.