Show / Hide Table of Contents

Class LineItem

A LineItem contains information about how specific ad creatives are intended to serve to your website or app along with pricing and other delivery details.

Inheritance
object
LineItem
Implements
IMessage<LineItem>
IEquatable<LineItem>
IDeepCloneable<LineItem>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class LineItem : IMessage<LineItem>, IEquatable<LineItem>, IDeepCloneable<LineItem>, IBufferMessage, IMessage

Constructors

LineItem()

Declaration
public LineItem()

LineItem(LineItem)

Declaration
public LineItem(LineItem other)
Parameters
Type Name Description
LineItem other

Properties

Budget

Output only. The amount of money allocated to the LineItem. This attribute is readonly and is populated by Google. The currency code is readonly.

Declaration
public Money Budget { get; set; }
Property Value
Type Description
Money

CustomFieldValues

Optional. The values of the custom fields associated with this line item.

Declaration
public RepeatedField<CustomFieldValue> CustomFieldValues { get; }
Property Value
Type Description
RepeatedField<CustomFieldValue>

DisplayName

Required. The name of the line item. This attribute is required and has a maximum length of 255 characters.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
string

EndTime

Output only. The timestamp when the LineItem will stop serving. This attribute is read-only and includes auto extension days.

Declaration
public Timestamp EndTime { get; set; }
Property Value
Type Description
Timestamp

Goal

Optional. The primary goal that this LineItem is associated with, which is used in its pacing and budgeting.

Declaration
public Goal Goal { get; set; }
Property Value
Type Description
Goal

HasDisplayName

Gets whether the "display_name" field is set

Declaration
public bool HasDisplayName { get; }
Property Value
Type Description
bool

HasLineItemType

Gets whether the "line_item_type" field is set

Declaration
public bool HasLineItemType { get; }
Property Value
Type Description
bool

HasOrder

Gets whether the "order" field is set

Declaration
public bool HasOrder { get; }
Property Value
Type Description
bool

LineItemName

LineItemName-typed view over the Name resource name property.

Declaration
public LineItemName LineItemName { get; set; }
Property Value
Type Description
LineItemName

LineItemType

Required. Indicates the line item type of a LineItem. This attribute is required. The line item type determines the default priority of the line item. More information can be found at https://support.google.com/admanager/answer/177279.

Declaration
public LineItemTypeEnum.Types.LineItemType LineItemType { get; set; }
Property Value
Type Description
LineItemTypeEnum.Types.LineItemType

Name

Identifier. The resource name of the LineItem. Format: networks/{network_code}/lineItems/{line_item_id}

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Order

Output only. The ID of the Order to which the LineItem belongs. This attribute is required. Format: networks/{network_code}/orders/{order}

Declaration
public string Order { get; set; }
Property Value
Type Description
string

OrderAsOrderName

OrderName-typed view over the Order resource name property.

Declaration
public OrderName OrderAsOrderName { get; set; }
Property Value
Type Description
OrderName

Rate

Required. The amount of money to spend per impression or click.

Declaration
public Money Rate { get; set; }
Property Value
Type Description
Money

StartTime

Required. The date and time on which the LineItem is enabled to begin serving. This attribute is required and must be in the future.

Declaration
public Timestamp StartTime { get; set; }
Property Value
Type Description
Timestamp
In this article
Back to top Generated by DocFX