Class Item
Represents an item in the cart associated with the event.
Namespace: Google.Ads.DataManager.V1
Assembly: Google.Ads.DataManager.V1.dll
Syntax
public sealed class Item : IMessage<Item>, IEquatable<Item>, IDeepCloneable<Item>, IBufferMessage, IMessage
Constructors
Item()
Declaration
public Item()
Item(Item)
Declaration
public Item(Item other)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | other |
Properties
AdditionalItemParameters
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.
Declaration
public RepeatedField<ItemParameter> AdditionalItemParameters { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<ItemParameter> |
ConversionValue
Optional. The conversion value associated with this item within the event, for cases where the conversion value is different for each item.
Declaration
public double ConversionValue { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
CustomVariables
Optional. Additional key/value pair information to send to the conversion containers (conversion action or Floodlight activity), when tracking per-item conversions.
Declaration
public RepeatedField<ItemCustomVariable> CustomVariables { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<ItemCustomVariable> |
HasConversionValue
Gets whether the "conversion_value" field is set
Declaration
public bool HasConversionValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ItemId
Optional. A unique identifier to reference the item.
Declaration
public string ItemId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MerchantFeedLabel
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.
Declaration
public string MerchantFeedLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MerchantFeedLanguageCode
Optional. The language code in ISO 639-1 associated with the Merchant Center feed where your items are uploaded.
Declaration
public string MerchantFeedLanguageCode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MerchantId
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.
Declaration
public string MerchantId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MerchantProductId
Optional. The product ID within the Merchant Center account.
Declaration
public string MerchantProductId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Quantity
Optional. The number of this item associated with the event.
Declaration
public long Quantity { get; set; }
Property Value
| Type | Description |
|---|---|
| long |
UnitPrice
Optional. The unit price excluding tax, shipping, and any transaction level discounts.
Declaration
public double UnitPrice { get; set; }
Property Value
| Type | Description |
|---|---|
| double |