Class LineItemDiscount
Discount information for a LineItem.
Implements
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class LineItemDiscount : IMessage<LineItemDiscount>, IEquatable<LineItemDiscount>, IDeepCloneable<LineItemDiscount>, IBufferMessage, IMessage
Constructors
LineItemDiscount()
Declaration
public LineItemDiscount()
LineItemDiscount(LineItemDiscount)
Declaration
public LineItemDiscount(LineItemDiscount other)
Parameters
| Type | Name | Description |
|---|---|---|
| LineItemDiscount | other |
Properties
Discount
Optional. The number here is either a percentage or an absolute value depending on the DiscountType. If the DiscountType is PERCENTAGE, then only non-fractional values are supported.
Declaration
public double Discount { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
DiscountType
Optional. The type of discount being applied to a LineItem, either percentage based or absolute. This attribute is optional and defaults to PERCENTAGE.
Declaration
public DiscountTypeEnum.Types.DiscountType DiscountType { get; set; }
Property Value
| Type | Description |
|---|---|
| DiscountTypeEnum.Types.DiscountType |
HasDiscount
Gets whether the "discount" field is set
Declaration
public bool HasDiscount { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasDiscountType
Gets whether the "discount_type" field is set
Declaration
public bool HasDiscountType { get; }
Property Value
| Type | Description |
|---|---|
| bool |