Class Campaign.ShoppingSetting.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
com.google.ads.googleads.v18.resources.Campaign.ShoppingSetting.Builder
- All Implemented Interfaces:
Campaign.ShoppingSettingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Campaign.ShoppingSetting
public static final class Campaign.ShoppingSetting.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
implements Campaign.ShoppingSettingOrBuilder
The setting for Shopping campaigns. Defines the universe of products that can be advertised by the campaign, and how this campaign interacts with other Shopping campaigns.Protobuf type
google.ads.googleads.v18.resources.Campaign.ShoppingSetting-
Method Summary
Modifier and TypeMethodDescriptionaddAdvertisingPartnerIds(long value) Immutable.addAllAdvertisingPartnerIds(Iterable<? extends Long> values) Immutable.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Immutable.Priority of the campaign.Disable the optional product feed.Whether to include local products.Feed label of products to include in the campaign.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) ID of the Merchant Center account.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Immutable.clone()longgetAdvertisingPartnerIds(int index) Immutable.intImmutable.Immutable.intPriority of the campaign.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanDisable the optional product feed.booleanWhether to include local products.Feed label of products to include in the campaign.com.google.protobuf.ByteStringFeed label of products to include in the campaign.longID of the Merchant Center account.booleanImmutable.booleanPriority of the campaign.booleanDisable the optional product feed.booleanWhether to include local products.booleanID of the Merchant Center account.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setAdvertisingPartnerIds(int index, long value) Immutable.setCampaignPriority(int value) Priority of the campaign.setDisableProductFeed(boolean value) Disable the optional product feed.setEnableLocal(boolean value) Whether to include local products.setFeedLabel(String value) Feed label of products to include in the campaign.setFeedLabelBytes(com.google.protobuf.ByteString value) Feed label of products to include in the campaign.setMerchantId(long value) ID of the Merchant Center account.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setUseVehicleInventory(boolean value) Immutable.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<Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.Builder>
-
setField
public Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.Builder>
-
clearField
public Campaign.ShoppingSetting.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
-
clearOneof
public Campaign.ShoppingSetting.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
-
setRepeatedField
public Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.Builder>
-
addRepeatedField
public Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Campaign.ShoppingSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
-
mergeFrom
public Campaign.ShoppingSetting.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<Campaign.ShoppingSetting.Builder>- Throws:
IOException
-
hasMerchantId
public boolean hasMerchantId()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;- Specified by:
hasMerchantIdin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the merchantId field is set.
-
getMerchantId
public long getMerchantId()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;- Specified by:
getMerchantIdin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The merchantId.
-
setMerchantId
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;- Parameters:
value- The merchantId to set.- Returns:
- This builder for chaining.
-
clearMerchantId
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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getFeedLabelin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The feedLabel.
-
getFeedLabelBytes
public 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;- Specified by:
getFeedLabelBytesin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The bytes for feedLabel.
-
setFeedLabel
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;- Parameters:
value- The feedLabel to set.- Returns:
- This builder for chaining.
-
clearFeedLabel
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:
- This builder for chaining.
-
setFeedLabelBytes
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;- Parameters:
value- The bytes for feedLabel to set.- Returns:
- This builder for chaining.
-
hasCampaignPriority
public 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;- Specified by:
hasCampaignPriorityin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the campaignPriority field is set.
-
getCampaignPriority
public 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;- Specified by:
getCampaignPriorityin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The campaignPriority.
-
setCampaignPriority
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;- Parameters:
value- The campaignPriority to set.- Returns:
- This builder for chaining.
-
clearCampaignPriority
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:
- This builder for chaining.
-
hasEnableLocal
public boolean hasEnableLocal()Whether to include local products.
optional bool enable_local = 8;- Specified by:
hasEnableLocalin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the enableLocal field is set.
-
getEnableLocal
public boolean getEnableLocal()Whether to include local products.
optional bool enable_local = 8;- Specified by:
getEnableLocalin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The enableLocal.
-
setEnableLocal
Whether to include local products.
optional bool enable_local = 8;- Parameters:
value- The enableLocal to set.- Returns:
- This builder for chaining.
-
clearEnableLocal
Whether to include local products.
optional bool enable_local = 8;- Returns:
- This builder for chaining.
-
getUseVehicleInventory
public 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];- Specified by:
getUseVehicleInventoryin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The useVehicleInventory.
-
setUseVehicleInventory
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];- Parameters:
value- The useVehicleInventory to set.- Returns:
- This builder for chaining.
-
clearUseVehicleInventory
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:
- This builder for chaining.
-
getAdvertisingPartnerIdsList
Immutable. The ads account IDs of advertising partners cooperating within the campaign.
repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getAdvertisingPartnerIdsListin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- A list containing the advertisingPartnerIds.
-
getAdvertisingPartnerIdsCount
public 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];- Specified by:
getAdvertisingPartnerIdsCountin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The count of advertisingPartnerIds.
-
getAdvertisingPartnerIds
public 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];- Specified by:
getAdvertisingPartnerIdsin interfaceCampaign.ShoppingSettingOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The advertisingPartnerIds at the given index.
-
setAdvertisingPartnerIds
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 to set the value at.value- The advertisingPartnerIds to set.- Returns:
- This builder for chaining.
-
addAdvertisingPartnerIds
Immutable. The ads account IDs of advertising partners cooperating within the campaign.
repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The advertisingPartnerIds to add.- Returns:
- This builder for chaining.
-
addAllAdvertisingPartnerIds
public Campaign.ShoppingSetting.Builder addAllAdvertisingPartnerIds(Iterable<? extends Long> values) Immutable. The ads account IDs of advertising partners cooperating within the campaign.
repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];- Parameters:
values- The advertisingPartnerIds to add.- Returns:
- This builder for chaining.
-
clearAdvertisingPartnerIds
Immutable. The ads account IDs of advertising partners cooperating within the campaign.
repeated int64 advertising_partner_ids = 11 [(.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
hasDisableProductFeed
public boolean hasDisableProductFeed()Disable the optional product feed. This field is currently supported only for Demand Gen campaigns. See https://support.google.com/google-ads/answer/13721750 to learn more about this feature.
optional bool disable_product_feed = 12;- Specified by:
hasDisableProductFeedin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- Whether the disableProductFeed field is set.
-
getDisableProductFeed
public boolean getDisableProductFeed()Disable the optional product feed. This field is currently supported only for Demand Gen campaigns. See https://support.google.com/google-ads/answer/13721750 to learn more about this feature.
optional bool disable_product_feed = 12;- Specified by:
getDisableProductFeedin interfaceCampaign.ShoppingSettingOrBuilder- Returns:
- The disableProductFeed.
-
setDisableProductFeed
Disable the optional product feed. This field is currently supported only for Demand Gen campaigns. See https://support.google.com/google-ads/answer/13721750 to learn more about this feature.
optional bool disable_product_feed = 12;- Parameters:
value- The disableProductFeed to set.- Returns:
- This builder for chaining.
-
clearDisableProductFeed
Disable the optional product feed. This field is currently supported only for Demand Gen campaigns. See https://support.google.com/google-ads/answer/13721750 to learn more about this feature.
optional bool disable_product_feed = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Campaign.ShoppingSetting.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
-
mergeUnknownFields
public final Campaign.ShoppingSetting.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Campaign.ShoppingSetting.Builder>
-