Note: Version v201902 will be sunset soon. All users of those versions must migrate to a newer one.

LineItemService (v201905)

Provides methods for creating, updating and retrieving LineItem objects.

Line items define the campaign. For example, line items define:

  • a budget
  • a span of time to run
  • ad unit targeting

In short, line items connect all of the elements of an ad campaign.

Line items and creatives can be associated with each other through LineItemCreativeAssociation objects. An ad unit will host a creative through both this association and the LineItem.targeting to it. The delivery of a line item depends on its priority. More information on line item priorities can be found on the DFP Help Center.


Production WSDL
https://ads.google.com/apis/ads/publisher/v201905/LineItemService?wsdl
Namespace
https://www.google.com/apis/ads/publisher/v201905
Operations
Errors

createLineItems

Creates new LineItem objects.

Parameters

Field Type Description
lineItems LineItem[] the line items to create

Response

Field Type Description
rval LineItem[] the created line items with their IDs filled in

getLineItemsByStatement

Gets a LineItemPage of LineItem objects that satisfy the given Statement.query. The following fields are supported for filtering:

PQL property Entity property
CostType LineItem.costType
CreationDateTime LineItem.creationDateTime
DeliveryRateType LineItem.deliveryRateType
EndDateTime LineItem.endDateTime
ExternalId LineItem.externalId
Id LineItem.id
IsMissingCreatives LineItem.isMissingCreatives
IsSetTopBoxEnabled LineItem.isSetTopBoxEnabled
LastModifiedDateTime LineItem.lastModifiedDateTime
LineItemType LineItem.lineItemType
Name LineItem.name
OrderId LineItem.orderId
StartDateTime LineItem.startDateTime
Status LineItem.status
Targeting LineItem.targeting
UnitsBought LineItem.unitsBought

Parameters

Field Type Description
filterStatement Statement a Publisher Query Language statement used to filter a set of line items.

Response

Field Type Description
rval LineItemPage the line items that match the given filter

hasCustomPacingCurve

Returns whether a custom pacing curve has been uploaded to Google Cloud Storage for a line item.

Parameters

Field Type Description
lineItemId xsd:long the ID of the line item

Response

Field Type Description
rval xsd:boolean

performLineItemAction

Performs actions on LineItem objects that match the given Statement.query.

Parameters

Field Type Description
lineItemAction
  1. LineItemAction
    1. ActivateLineItems
    2. ArchiveLineItems
    3. DeleteLineItems
    4. PauseLineItems
    5. ReleaseLineItems
    6. ReserveLineItems
      1. ReserveAndOverbookLineItems
    7. ResumeLineItems
      1. ResumeAndOverbookLineItems
    8. UnarchiveLineItems
the action to perform
filterStatement Statement a Publisher Query Language statement used to filter a set of line items

Response

Field Type Description
rval UpdateResult the result of the action performed

updateLineItems

Updates the specified LineItem objects.

Parameters

Field Type Description
lineItems LineItem[] the line items to update

Response

Field Type Description
rval LineItem[] the updated line items

Errors

Error Reasons
ApiVersionError Errors related to the usage of API versions.
Enumerations
UPDATE_TO_NEWER_VERSION
Indicates that the operation is not allowed in the version the request was made in.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
AudienceExtensionError Errors associated with audience extension enabled line items
Enumerations
FREQUENCY_CAPS_NOT_SUPPORTED
Frequency caps are not supported by audience extension line items
INVALID_TARGETING
Audience extension line items can only target geography
INVENTORY_UNIT_TARGETING_INVALID
Audience extension line items can only target audience extension inventory units
INVALID_CREATIVE_ROTATION
Audience extension line items do not support CreativeRotationType.SEQUENTIAL.
INVALID_EXTERNAL_ENTITY_ID
The given ID of the external entity is not valid
INVALID_LINE_ITEM_TYPE
Audience extension line items only support LineItemType.STANDARD.
INVALID_MAX_BID
Audience extension max bid is invalid when it is greater then the max budget.
AUDIENCE_EXTENSION_BULK_UPDATE_NOT_ALLOWED
Bulk update for audience extension line items is not allowed.
UNEXPECTED_AUDIENCE_EXTENSION_ERROR
An unexpected error occurred.
MAX_DAILY_BUDGET_AMOUNT_EXCEEDED
The value entered for the maximum daily budget on an audience extension line item exceeds the maximum allowed.
EXTERNAL_CAMPAIGN_ALREADY_EXISTS
Creating a campaign for a line item that already has an associated campaign is not allowed.
AUDIENCE_EXTENSION_WITHOUT_FEATURE
Audience extension was specified on a line item but the feature was not enabled.
AUDIENCE_EXTENSION_WITHOUT_LINKED_ACCOUNT
Audience extension was specified on a line item but no audience extension account has been linked.
CANNOT_OVERRIDE_CREATIVE_SIZE_WITH_AUDIENCE_EXTENSION
Assocation creative size overrides are not allowed with audience extension.
CANNOT_OVERRIDE_FIELD_WITH_AUDIENCE_EXTENSION
Some association overrides are not allowed with audience extension.
ONLY_ONE_CREATIVE_PLACEHOLDER_ALLOWED
Only one creative placeholder is allowed for an audience extension line item.
MULTIPLE_AUDIENCE_EXTENSION_LINE_ITEMS_ON_ORDER
Only one audience extension line item can be associated with a given order.
CANNOT_COPY_AUDIENCE_EXTENSION_LINE_ITEMS_AND_CREATIVES_TOGETHER
Audience extension line items must be copied separately from their associated creatives.
FEATURE_DEPRECATED
Audience extension is no longer supported and cannot be used.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
AudienceSegmentError Errors that could occur on audience segment related requests.
Enumerations
FIRST_PARTY_AUDIENCE_SEGMENT_NOT_SUPPORTED
First party audience segment is not supported.
ONLY_RULE_BASED_FIRST_PARTY_AUDIENCE_SEGMENTS_CAN_BE_CREATED
Only rule-based first-party audience segments can be created.
AUDIENCE_SEGMENT_ID_NOT_FOUND
Audience segment for the given id is not found.
INVALID_AUDIENCE_SEGMENT_RULE
Audience segment rule is invalid.
AUDIENCE_SEGMENT_RULE_TOO_LONG
Audience segment rule contains too many ad units and/or custom criteria.
INVALID_AUDIENCE_SEGMENT_NAME
Audience segment name is invalid.
DUPLICATE_AUDIENCE_SEGMENT_NAME
Audience segment with this name already exists.
INVALID_AUDIENCE_SEGMENT_DESCRIPTION
Audience segment description is invalid.
INVALID_AUDIENCE_SEGMENT_PAGEVIEWS
Audience segment pageviews value is invalid. It must be between 1 and 12.
INVALID_AUDIENCE_SEGMENT_RECENCY
Audience segment recency value is invalid. It must be between 1 and 90 if pageviews > 1.
INVALID_AUDIENCE_SEGMENT_MEMBERSHIP_EXPIRATION
Audience segment membership expiration value is invalid. It must be between 1 and 180.
INVALID_AUDIENCE_SEGMENT_CUSTOM_KEY_NAME
The given custom key cannot be part of audience segment rule due to unsupported characters.
INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_NAME
The given custom value cannot be part of audience segment rule due to unsupported characters.
INVALID_AUDIENCE_SEGMENT_CUSTOM_VALUE_MATCH_TYPE
Broad-match custom value cannot be part of audience segment rule.
INVALID_NESTED_FIRST_PARTY_AUDIENCE_SEGMENT
Audience segment rule cannot contain itself.
INVALID_NESTED_THIRD_PARTY_AUDIENCE_SEGMENT
Audience segment rule cannot contain a nested third-party segment.
INACTIVE_NESTED_AUDIENCE_SEGMENT
Audience segment rule cannot contain a nested inactive segment.
AUDIENCE_SEGMENT_GLOBAL_LICENSE_ERROR
An error occured when purchasing global licenses.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
AuthenticationError An error for an exception that occurred when authenticating.
Enumerations
AMBIGUOUS_SOAP_REQUEST_HEADER
The SOAP message contains a request header with an ambiguous definition of the authentication header fields. This means either the authToken and oAuthToken fields were both null or both were specified. Exactly one value should be specified with each request.
INVALID_EMAIL
The login provided is invalid.
AUTHENTICATION_FAILED
Tried to authenticate with provided information, but failed.
INVALID_OAUTH_SIGNATURE
The OAuth provided is invalid.
INVALID_SERVICE
The specified service to use was not recognized.
MISSING_SOAP_REQUEST_HEADER
The SOAP message is missing a request header with an authToken and optional networkCode.
MISSING_AUTHENTICATION_HTTP_HEADER
The HTTP request is missing a request header with an authToken
MISSING_AUTHENTICATION
The request is missing an authToken
NOT_WHITELISTED_FOR_API_ACCESS
The customer is not whitelisted for API access.
NO_NETWORKS_TO_ACCESS
The user is not associated with any network.
NETWORK_NOT_FOUND
No network for the given networkCode was found.
NETWORK_CODE_REQUIRED
The user has access to more than one network, but did not provide a networkCode.
CONNECTION_ERROR
An error happened on the server side during connection to authentication service.
GOOGLE_ACCOUNT_ALREADY_ASSOCIATED_WITH_NETWORK
The user tried to create a test network using an account that already is associated with a network.
UNDER_INVESTIGATION
The account is blocked and under investigation by the collections team. Please contact Google for more information.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
ClickTrackingLineItemError Click tracking is a special line item type with a number of unique errors as described below.
Enumerations
TYPE_IMMUTABLE
The line item type cannot be changed once created.
INVALID_TARGETING_TYPE
Click tracking line items can only be targeted at ad unit inventory, all other types are invalid, as well as placements.
INVALID_ROADBLOCKING_TYPE
Click tracking line items do not allow us to control creative delivery so are by nature one or more as entered by the third party.
INVALID_CREATIVEROTATION_TYPE
Click tracking line items do not support the CreativeRotationType.OPTIMIZED creative rotation type.
INVALID_DELIVERY_RATE_TYPE
Click tracking line items do not allow us to control line item delivery so we can not control the rate at which they are served.
UNSUPPORTED_FIELD
Not all fields are supported by the click tracking line items.
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
CollectionSizeError Error for the size of the collection being too large
Enumerations
TOO_LARGE
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
CommonError A place for common errors that can be used across services.
Enumerations
NOT_FOUND
Indicates that an attempt was made to retrieve an entity that does not exist.
ALREADY_EXISTS
Indicates that an attempt was made to create an entity that already exists.
NOT_APPLICABLE
Indicates that a value is not applicable for given use case.
DUPLICATE_OBJECT
Indicates that two elements in the collection were identical.
CANNOT_UPDATE
Indicates that an attempt was made to change an immu