Documentation

Google_Service_DisplayVideo_Resource_AdvertisersLineItems extends Google_Service_Resource
in package

The "lineItems" collection of methods.

Typical usage is: $displayvideoService = new Google_Service_DisplayVideo(...); $lineItems = $displayvideoService->lineItems;

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
bulkEditLineItemAssignedTargetingOptions()  : Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsResponse
Bulk edits targeting options under a single line item. The operation will delete the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.create_requests .
bulkListLineItemAssignedTargetingOptions()  : Google_Service_DisplayVideo_BulkListLineItemAssignedTargetingOptionsResponse
Lists assigned targeting options of a line item across targeting types.
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
create()  : Google_Service_DisplayVideo_LineItem
Creates a new line item. Returns the newly created line item if successful.
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_DisplayVideo_DisplayvideoEmpty
Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. (lineItems.delete)
get()  : Google_Service_DisplayVideo_LineItem
Gets a line item. (lineItems.get)
listAdvertisersLineItems()  : Google_Service_DisplayVideo_ListLineItemsResponse
Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be included in the results.
patch()  : Google_Service_DisplayVideo_LineItem
Updates an existing line item. Returns the updated line item if successful.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$serviceName

private string $serviceName

$servicePath

private string $servicePath

$stackParameters

private mixed $stackParameters = array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))

Methods

__construct()

public __construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
$service : mixed
$serviceName : mixed
$resourceName : mixed
$resource : mixed
Return values
mixed

bulkEditLineItemAssignedTargetingOptions()

Bulk edits targeting options under a single line item. The operation will delete the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditLineItemAssignedTargetingOptionsRequest.create_requests .

public bulkEditLineItemAssignedTargetingOptions(string $advertiserId, string $lineItemId, Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsResponse

(lineItems.bulkEditLineItemAssignedTargetingOptions)

Parameters
$advertiserId : string

Required. The ID of the advertiser the line item belongs to.

$lineItemId : string

Required. The ID of the line item the assigned targeting option will belong to.

$postBody : Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_DisplayVideo_BulkEditLineItemAssignedTargetingOptionsResponse

bulkListLineItemAssignedTargetingOptions()

Lists assigned targeting options of a line item across targeting types.

public bulkListLineItemAssignedTargetingOptions(string $advertiserId, string $lineItemId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_BulkListLineItemAssignedTargetingOptionsResponse

(lineItems.bulkListLineItemAssignedTargetingOptions)

Parameters
$advertiserId : string

Required. The ID of the advertiser the line item belongs to.

$lineItemId : string

Required. The ID of the line item to list assigned targeting options for.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string filter Allows filtering by assigned targeting option properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator OR on the same field. * A restriction has the form of {field} {operator} {value}.

  • The operator must be EQUALS (=). * Supported fields: - targetingType - inheritance Examples: * AssignedTargetingOptions of targeting type TARGETING_TYPE_PROXIMITY_LOCATION_LIST or TARGETING_TYPE_CHANNEL targetingType="TARGETING_TYPE_PROXIMITY_LOCATION_LIST" OR targetingType="TARGETING_TYPE_CHANNEL" * AssignedTargetingOptions with inheritance status of NOT_INHERITED or INHERITED_FROM_PARTNER inheritance="NOT_INHERITED" OR inheritance="INHERITED_FROM_PARTNER" The length of this field should be no more than 500 characters.
opt_param

string pageToken A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to BulkListLineItemAssignedTargetingOptions method. If not specified, the first page of results will be returned.

opt_param

string orderBy Field by which to sort the list. Acceptable values are: * targetingType (default) The default sorting order is ascending. To specify descending order for a field, a suffix "desc" should be added to the field name. Example: targetingType desc.

opt_param

int pageSize Requested page size. The size must be an integer between 1 and 5000. If unspecified, the default is '5000'. Returns error code INVALID_ARGUMENT if an invalid value is specified.

Return values
Google_Service_DisplayVideo_BulkListLineItemAssignedTargetingOptionsResponse

call()

TODO: This function needs simplifying.

public call( $name,  $arguments[,  $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

create()

Creates a new line item. Returns the newly created line item if successful.

public create(string $advertiserId, Google_Service_DisplayVideo_LineItem $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_LineItem

(lineItems.create)

Parameters
$advertiserId : string

Output only. The unique ID of the advertiser the line item belongs to.

$postBody : Google_Service_DisplayVideo_LineItem
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_DisplayVideo_LineItem

createRequestUri()

Parse/expand request parameters and create a fully qualified request uri.

public createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
$restPath : string
$params : array<string|int, mixed>
Tags
static
Return values
string

$requestUrl

delete()

Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. (lineItems.delete)

public delete(string $advertiserId, string $lineItemId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_DisplayvideoEmpty
Parameters
$advertiserId : string

The ID of the advertiser this line item belongs to.

$lineItemId : string

The ID of the line item we need to fetch.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_DisplayVideo_DisplayvideoEmpty

get()

Gets a line item. (lineItems.get)

public get(string $advertiserId, string $lineItemId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_LineItem
Parameters
$advertiserId : string

Required. The ID of the advertiser this line item belongs to.

$lineItemId : string

Required. The ID of the line item to fetch.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_DisplayVideo_LineItem

listAdvertisersLineItems()

Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be included in the results.

public listAdvertisersLineItems(string $advertiserId[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_ListLineItemsResponse

(lineItems.listAdvertisersLineItems)

Parameters
$advertiserId : string

Required. The ID of the advertiser to list line items for.

$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string orderBy Field by which to sort the list. Acceptable values are: * "displayName" (default) * "entityStatus" * “flight.dateRange.endDate” The default sorting order is ascending. To specify descending order for a field, a suffix "desc" should be added to the field name. Example: displayName desc.

opt_param

string filter Allows filtering by line item properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by AND or OR logical operators. A sequence of restrictions implicitly uses AND. * A restriction has the form of {field} {operator} {value}. * The operator used on flight.dateRange.endDate must be LESS THAN (<). * The operators used on all other fields must be EQUALS (=). * Supported fields: - campaignId - displayName - insertionOrderId - entityStatus - lineItemId - lineItemType - flight.dateRange.endDate (input formatted as YYYY-MM-DD) Examples: * All line items under an insertion order: insertionOrderId="1234" * All ENTITY_STATUS_ACTIVE or ENTITY_STATUS_PAUSED and LINE_ITEM_TYPE_DISPLAY_DEFAULT line items under an advertiser: (entityStatus="ENTITY_STATUS_ACTIVE" OR entityStatus="ENTITY_STATUS_PAUSED") AND lineItemType="LINE_ITEM_TYPE_DISPLAY_DEFAULT" * All line items whose flight dates end before March 28, 2019: flight.dateRange.endDate<"2019-03-28" The length of this field should be no more than 500 characters.

opt_param

int pageSize Requested page size. Must be between 1 and 100. If unspecified will default to 100. Returns error code INVALID_ARGUMENT if an invalid value is specified.

opt_param

string pageToken A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to ListLineItems method. If not specified, the first page of results will be returned.

Return values
Google_Service_DisplayVideo_ListLineItemsResponse

patch()

Updates an existing line item. Returns the updated line item if successful.

public patch(string $advertiserId, string $lineItemId, Google_Service_DisplayVideo_LineItem $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_DisplayVideo_LineItem

(lineItems.patch)

Parameters
$advertiserId : string

Output only. The unique ID of the advertiser the line item belongs to.

$lineItemId : string

Output only. The unique ID of the line item. Assigned by the system.

$postBody : Google_Service_DisplayVideo_LineItem
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

string updateMask Required. The mask to control which fields to update.

Return values
Google_Service_DisplayVideo_LineItem

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results