public static final class Item.Builder extends GeneratedMessage.Builder<Item.Builder> implements ItemOrBuilderRepresents an item in the cart associated with the event.
Protobuf type google.ads.datamanager.v1.Item
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Item.BuilderImplements
ItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAdditionalItemParameters(ItemParameter value)
public Item.Builder addAdditionalItemParameters(ItemParameter value)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ItemParameter |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addAdditionalItemParameters(ItemParameter.Builder builderForValue)
public Item.Builder addAdditionalItemParameters(ItemParameter.Builder builderForValue)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ItemParameter.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addAdditionalItemParameters(int index, ItemParameter value)
public Item.Builder addAdditionalItemParameters(int index, ItemParameter value)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ItemParameter |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addAdditionalItemParameters(int index, ItemParameter.Builder builderForValue)
public Item.Builder addAdditionalItemParameters(int index, ItemParameter.Builder builderForValue)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ItemParameter.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addAdditionalItemParametersBuilder()
public ItemParameter.Builder addAdditionalItemParametersBuilder()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ItemParameter.Builder |
|
addAdditionalItemParametersBuilder(int index)
public ItemParameter.Builder addAdditionalItemParametersBuilder(int index)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemParameter.Builder |
|
addAllAdditionalItemParameters(Iterable<? extends ItemParameter> values)
public Item.Builder addAllAdditionalItemParameters(Iterable<? extends ItemParameter> values)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.datamanager.v1.ItemParameter> |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addAllCustomVariables(Iterable<? extends ItemCustomVariable> values)
public Item.Builder addAllCustomVariables(Iterable<? extends ItemCustomVariable> values)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.ads.datamanager.v1.ItemCustomVariable> |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addCustomVariables(ItemCustomVariable value)
public Item.Builder addCustomVariables(ItemCustomVariable value)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ItemCustomVariable |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addCustomVariables(ItemCustomVariable.Builder builderForValue)
public Item.Builder addCustomVariables(ItemCustomVariable.Builder builderForValue)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ItemCustomVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addCustomVariables(int index, ItemCustomVariable value)
public Item.Builder addCustomVariables(int index, ItemCustomVariable value)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ItemCustomVariable |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addCustomVariables(int index, ItemCustomVariable.Builder builderForValue)
public Item.Builder addCustomVariables(int index, ItemCustomVariable.Builder builderForValue)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ItemCustomVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
addCustomVariablesBuilder()
public ItemCustomVariable.Builder addCustomVariablesBuilder()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ItemCustomVariable.Builder |
|
addCustomVariablesBuilder(int index)
public ItemCustomVariable.Builder addCustomVariablesBuilder(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemCustomVariable.Builder |
|
build()
public Item build()| Returns | |
|---|---|
| Type | Description |
Item |
|
buildPartial()
public Item buildPartial()| Returns | |
|---|---|
| Type | Description |
Item |
|
clear()
public Item.Builder clear()| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
clearAdditionalItemParameters()
public Item.Builder clearAdditionalItemParameters()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
clearConversionValue()
public Item.Builder clearConversionValue()Optional. The conversion value associated with this item within the event, for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearCustomVariables()
public Item.Builder clearCustomVariables()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
clearItemId()
public Item.Builder clearItemId()Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearMerchantFeedLabel()
public Item.Builder clearMerchantFeedLabel()Optional. The feed label of the Merchant Center feed. If countries are still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be used instead. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearMerchantFeedLanguageCode()
public Item.Builder clearMerchantFeedLanguageCode()Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
string merchant_feed_language_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearMerchantId()
public Item.Builder clearMerchantId()Optional. The Merchant Center ID associated with the item. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearMerchantProductId()
public Item.Builder clearMerchantProductId()Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearQuantity()
public Item.Builder clearQuantity()Optional. The number of this item associated with the event.
int64 quantity = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
clearUnitPrice()
public Item.Builder clearUnitPrice()Optional. The unit price excluding tax, shipping, and any transaction level discounts.
double unit_price = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
getAdditionalItemParameters(int index)
public ItemParameter getAdditionalItemParameters(int index)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemParameter |
|
getAdditionalItemParametersBuilder(int index)
public ItemParameter.Builder getAdditionalItemParametersBuilder(int index)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemParameter.Builder |
|
getAdditionalItemParametersBuilderList()
public List<ItemParameter.Builder> getAdditionalItemParametersBuilderList()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getAdditionalItemParametersCount()
public int getAdditionalItemParametersCount()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getAdditionalItemParametersList()
public List<ItemParameter> getAdditionalItemParametersList()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ItemParameter> |
|
getAdditionalItemParametersOrBuilder(int index)
public ItemParameterOrBuilder getAdditionalItemParametersOrBuilder(int index)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemParameterOrBuilder |
|
getAdditionalItemParametersOrBuilderList()
public List<? extends ItemParameterOrBuilder> getAdditionalItemParametersOrBuilderList()Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.datamanager.v1.ItemParameterOrBuilder> |
|
getConversionValue()
public double getConversionValue()Optional. The conversion value associated with this item within the event, for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The conversionValue. |
getCustomVariables(int index)
public ItemCustomVariable getCustomVariables(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemCustomVariable |
|
getCustomVariablesBuilder(int index)
public ItemCustomVariable.Builder getCustomVariablesBuilder(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemCustomVariable.Builder |
|
getCustomVariablesBuilderList()
public List<ItemCustomVariable.Builder> getCustomVariablesBuilderList()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getCustomVariablesCount()
public int getCustomVariablesCount()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getCustomVariablesList()
public List<ItemCustomVariable> getCustomVariablesList()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ItemCustomVariable> |
|
getCustomVariablesOrBuilder(int index)
public ItemCustomVariableOrBuilder getCustomVariablesOrBuilder(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ItemCustomVariableOrBuilder |
|
getCustomVariablesOrBuilderList()
public List<? extends ItemCustomVariableOrBuilder> getCustomVariablesOrBuilderList()Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.ads.datamanager.v1.ItemCustomVariableOrBuilder> |
|
getDefaultInstanceForType()
public Item getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Item |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getItemId()
public String getItemId()Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The itemId. |
getItemIdBytes()
public ByteString getItemIdBytes()Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for itemId. |
getMerchantFeedLabel()
public String getMerchantFeedLabel()Optional. The feed label of the Merchant Center feed. If countries are still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be used instead. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The merchantFeedLabel. |
getMerchantFeedLabelBytes()
public ByteString getMerchantFeedLabelBytes()Optional. The feed label of the Merchant Center feed. If countries are still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be used instead. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for merchantFeedLabel. |
getMerchantFeedLanguageCode()
public String getMerchantFeedLanguageCode()Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
string merchant_feed_language_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The merchantFeedLanguageCode. |
getMerchantFeedLanguageCodeBytes()
public ByteString getMerchantFeedLanguageCodeBytes()Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
string merchant_feed_language_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for merchantFeedLanguageCode. |
getMerchantId()
public String getMerchantId()Optional. The Merchant Center ID associated with the item. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The merchantId. |
getMerchantIdBytes()
public ByteString getMerchantIdBytes()Optional. The Merchant Center ID associated with the item. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for merchantId. |
getMerchantProductId()
public String getMerchantProductId()Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The merchantProductId. |
getMerchantProductIdBytes()
public ByteString getMerchantProductIdBytes()Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for merchantProductId. |
getQuantity()
public long getQuantity()Optional. The number of this item associated with the event.
int64 quantity = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
long |
The quantity. |
getUnitPrice()
public double getUnitPrice()Optional. The unit price excluding tax, shipping, and any transaction level discounts.
double unit_price = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The unitPrice. |
hasConversionValue()
public boolean hasConversionValue()Optional. The conversion value associated with this item within the event, for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the conversionValue field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Item other)
public Item.Builder mergeFrom(Item other)| Parameter | |
|---|---|
| Name | Description |
other |
Item |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Item.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Item.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
removeAdditionalItemParameters(int index)
public Item.Builder removeAdditionalItemParameters(int index)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
removeCustomVariables(int index)
public Item.Builder removeCustomVariables(int index)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
setAdditionalItemParameters(int index, ItemParameter value)
public Item.Builder setAdditionalItemParameters(int index, ItemParameter value)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ItemParameter |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
setAdditionalItemParameters(int index, ItemParameter.Builder builderForValue)
public Item.Builder setAdditionalItemParameters(int index, ItemParameter.Builder builderForValue)Optional. A bucket of any event parameters related to an item to be included within the event that were not already specified using other structured fields.
repeated .google.ads.datamanager.v1.ItemParameter additional_item_parameters = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ItemParameter.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
setConversionValue(double value)
public Item.Builder setConversionValue(double value)Optional. The conversion value associated with this item within the event, for cases where the conversion value is different for each item.
optional double conversion_value = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe conversionValue to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setCustomVariables(int index, ItemCustomVariable value)
public Item.Builder setCustomVariables(int index, ItemCustomVariable value)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ItemCustomVariable |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
setCustomVariables(int index, ItemCustomVariable.Builder builderForValue)
public Item.Builder setCustomVariables(int index, ItemCustomVariable.Builder builderForValue)Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
repeated .google.ads.datamanager.v1.ItemCustomVariable custom_variables = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ItemCustomVariable.Builder |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
|
setItemId(String value)
public Item.Builder setItemId(String value)Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe itemId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setItemIdBytes(ByteString value)
public Item.Builder setItemIdBytes(ByteString value)Optional. A unique identifier to reference the item.
string item_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for itemId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantFeedLabel(String value)
public Item.Builder setMerchantFeedLabel(String value)Optional. The feed label of the Merchant Center feed. If countries are still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be used instead. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe merchantFeedLabel to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantFeedLabelBytes(ByteString value)
public Item.Builder setMerchantFeedLabelBytes(ByteString value)Optional. The feed label of the Merchant Center feed. If countries are still being used, the 2-letter country code in ISO-3166-1 alpha-2 can be used instead. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_feed_label = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for merchantFeedLabel to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantFeedLanguageCode(String value)
public Item.Builder setMerchantFeedLanguageCode(String value)Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
string merchant_feed_language_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe merchantFeedLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantFeedLanguageCodeBytes(ByteString value)
public Item.Builder setMerchantFeedLanguageCodeBytes(ByteString value)Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
string merchant_feed_language_code = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for merchantFeedLanguageCode to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantId(String value)
public Item.Builder setMerchantId(String value)Optional. The Merchant Center ID associated with the item. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe merchantId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantIdBytes(ByteString value)
public Item.Builder setMerchantIdBytes(ByteString value)Optional. The Merchant Center ID associated with the item. For Store Sales events this will override the value set at the cart level. This field is ignored for other events.
string merchant_id = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for merchantId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantProductId(String value)
public Item.Builder setMerchantProductId(String value)Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe merchantProductId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setMerchantProductIdBytes(ByteString value)
public Item.Builder setMerchantProductIdBytes(ByteString value)Optional. The product ID within the Merchant Center account.
string merchant_product_id = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for merchantProductId to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setQuantity(long value)
public Item.Builder setQuantity(long value)Optional. The number of this item associated with the event.
int64 quantity = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
longThe quantity to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |
setUnitPrice(double value)
public Item.Builder setUnitPrice(double value)Optional. The unit price excluding tax, shipping, and any transaction level discounts.
double unit_price = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe unitPrice to set. |
| Returns | |
|---|---|
| Type | Description |
Item.Builder |
This builder for chaining. |