Resource: 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.
| JSON representation |
|---|
{ "name" : string , "customFieldValues" : [ { object ( |
| Fields | |
|---|---|
name
|
Identifier. The resource name of the |
customFieldValues[]
|
Optional. The values of the custom fields associated with this line item. |
order
|
Required. Immutable. The ID of the Order to which the LineItem belongs. Format: |
displayName
|
Required. The name of the line item. This attribute is required and has a maximum length of 255 characters. |
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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
endTime
|
Output only. The timestamp when the LineItem will stop serving. This attribute is read-only and includes auto extension days. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
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 . |
rate
|
Required. The amount of money to spend per impression or click. |
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. |
goal
|
Optional. The primary goal that this LineItem is associated with, which is used in its pacing and budgeting. |
Goal
Defines the criteria a LineItem
needs to satisfy to meet its delivery goal.
| JSON representation |
|---|
{ "goalType" : enum ( |
| Fields | |
|---|---|
goalType
|
The type of the goal for the LineItem. It defines the period over which the goal should be reached. |
unitType
|
The type of the goal unit for the LineItem. |
units
|
If this is a primary goal, it represents the number or percentage of impressions or clicks that will be reserved. If the line item is of type If this is an impression cap goal, it represents the number of impressions or conversions that the line item will stop serving at if reached. For valid line item types, see [LineItem.impressions_cap][]. |
GoalType
Specifies the type of the goal for a LineItem.
GOAL_TYPE_UNSPECIFIED
NONE
No goal is specified for the number of ads delivered. The line item type
must be one of:
LIFETIME
There is a goal on the number of ads delivered for this line item during its entire lifetime. The line item type
must be one of:
DAILY
There is a daily goal on the number of ads delivered for this line item. The line item type
must be one of:
-
LineItemTypeEnum.LineItemType.SPONSORSHIP -
LineItemTypeEnum.LineItemType.NETWORK -
LineItemTypeEnum.LineItemType.PRICE_PRIORITY -
LineItemTypeEnum.LineItemType.HOUSE -
LineItemTypeEnum.LineItemType.ADSENSE -
LineItemTypeEnum.LineItemType.AD_EXCHANGE - [LineItemTypeEnum.LineItemType.ADMOB][]
-
LineItemTypeEnum.LineItemType.BUMPER
UnitType
Indicates the type of unit used for defining a reservation. The [LineItem.cost_type][] can differ from the UnitType - an ad can have an impression goal, but be billed by its click. Usually CostType and UnitType will refer to the same unit.
UNIT_TYPE_UNSPECIFIED
IMPRESSIONS
CLICKS
The number of clicks reported by creatives associated with the line item. The line item type
must be one of:
CLICK_THROUGH_CPA_CONVERSIONS
VIEW_THROUGH_CPA_CONVERSIONS
TOTAL_CPA_CONVERSIONS
VIEWABLE_IMPRESSIONS
LineItem.line_item_type
must be LineItemTypeEnum.LineItemType.STANDARD
.IN_TARGET_IMPRESSIONS
LineItem.line_item_type
must be LineItemTypeEnum.LineItemType.STANDARD
.COMPLETED_VIEWS
LineItem.line_item_type
must be LineItemTypeEnum.LineItemType.STANDARD
. Methods |
|
|---|---|
|
API to retrieve a LineItem
object. |
|
API to retrieve a list of LineItem
objects. |

