Class Campaign.ShoppingSetting
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.resources.Campaign.ShoppingSetting
- All Implemented Interfaces:
Campaign.ShoppingSettingOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Campaign
public static final class Campaign.ShoppingSetting
extends com.google.protobuf.GeneratedMessageV3
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe setting for Shopping campaigns.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetAdvertisingPartnerIds(int index) Immutable.intImmutable.Immutable.intPriority of the campaign.static Campaign.ShoppingSettingstatic final com.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.com.google.protobuf.Parser<Campaign.ShoppingSetting>intbooleanImmutable.booleanPriority of the campaign.booleanDisable the optional product feed.booleanWhether to include local products.inthashCode()booleanID of the Merchant Center account.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(Campaign.ShoppingSetting prototype) protected Campaign.ShoppingSetting.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Campaign.ShoppingSettingparseDelimitedFrom(InputStream input) static Campaign.ShoppingSettingparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Campaign.ShoppingSettingparseFrom(byte[] data) static Campaign.ShoppingSettingparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Campaign.ShoppingSettingparseFrom(com.google.protobuf.ByteString data) static Campaign.ShoppingSettingparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Campaign.ShoppingSettingparseFrom(com.google.protobuf.CodedInputStream input) static Campaign.ShoppingSettingparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Campaign.ShoppingSettingparseFrom(InputStream input) static Campaign.ShoppingSettingparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Campaign.ShoppingSettingparseFrom(ByteBuffer data) static Campaign.ShoppingSettingparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Campaign.ShoppingSetting>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MERCHANT_ID_FIELD_NUMBER
public static final int MERCHANT_ID_FIELD_NUMBER- See Also:
-
FEED_LABEL_FIELD_NUMBER
public static final int FEED_LABEL_FIELD_NUMBER- See Also:
-
CAMPAIGN_PRIORITY_FIELD_NUMBER
public static final int CAMPAIGN_PRIORITY_FIELD_NUMBER- See Also:
-
ENABLE_LOCAL_FIELD_NUMBER
public static final int ENABLE_LOCAL_FIELD_NUMBER- See Also:
-
USE_VEHICLE_INVENTORY_FIELD_NUMBER
public static final int USE_VEHICLE_INVENTORY_FIELD_NUMBER- See Also:
-
ADVERTISING_PARTNER_IDS_FIELD_NUMBER
public static final int ADVERTISING_PARTNER_IDS_FIELD_NUMBER- See Also:
-
DISABLE_PRODUCT_FEED_FIELD_NUMBER
public static final int DISABLE_PRODUCT_FEED_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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 Campaign.ShoppingSetting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Campaign.ShoppingSetting parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Campaign.ShoppingSetting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Campaign.ShoppingSetting.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-