Documentation

Google_Service_DisplayVideo_Resource_AdvertisersInsertionOrders extends Google_Service_Resource
in package

The "insertionOrders" collection of methods.

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

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
create()  : Google_Service_DisplayVideo_InsertionOrder
Creates a new insertion order. Returns the newly created insertion order if successful. (insertionOrders.create)
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
delete()  : Google_Service_DisplayVideo_DisplayvideoEmpty
Deletes an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.
get()  : Google_Service_DisplayVideo_InsertionOrder
Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. (insertionOrders.get)
listAdvertisersInsertionOrders()  : Google_Service_DisplayVideo_ListInsertionOrdersResponse
Lists insertion orders in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, insertion orders with `ENTITY_STATUS_ARCHIVED` will not be included in the results.
patch()  : Google_Service_DisplayVideo_InsertionOrder
Updates an existing insertion order. Returns the updated insertion order if successful. (insertionOrders.patch)
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

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 insertion order. Returns the newly created insertion order if successful. (insertionOrders.create)

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

Output only. The unique ID of the advertiser the insertion order belongs to.

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

Optional parameters.

Return values
Google_Service_DisplayVideo_InsertionOrder

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 an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.

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

(insertionOrders.delete)

Parameters
$advertiserId : string

The ID of the advertiser this insertion order belongs to.

$insertionOrderId : string

The ID of the insertion order we need to delete.

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

Optional parameters.

Return values
Google_Service_DisplayVideo_DisplayvideoEmpty

get()

Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. (insertionOrders.get)

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

Required. The ID of the advertiser this insertion order belongs to.

$insertionOrderId : string

Required. The ID of the insertion order to fetch.

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

Optional parameters.

Return values
Google_Service_DisplayVideo_InsertionOrder

listAdvertisersInsertionOrders()

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

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

(insertionOrders.listAdvertisersInsertionOrders)

Parameters
$advertiserId : string

Required. The ID of the advertiser to list insertion orders for.

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

Optional parameters.

Tags
opt_param

string filter Allows filtering by insertion order 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 budget.budget_segments.date_range.end_date must be LESS THAN (<). * The operators used on all other fields must be EQUALS (=). * Supported fields:

  • campaignId - displayName - entityStatus - budget.budget_segments.date_range.end_date (input as YYYY-MM-DD) Examples:
  • All insertion orders under a campaign: campaignId="1234" * All ENTITY_STATUS_ACTIVE or ENTITY_STATUS_PAUSED insertion orders under an advertiser: (entityStatus="ENTITY_STATUS_ACTIVE" OR entityStatus="ENTITY_STATUS_PAUSED") * All insertion orders whose budget segments' dates end before March 28, 2019: budget.budget_segments.date_range.end_date<"2019-03-28" The length of this field should be no more than 500 characters.
opt_param

string orderBy Field by which to sort the list. Acceptable values are: * "displayName" (default) * "entityStatus" 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 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 ListInsertionOrders method. If not specified, the first page of results will be returned.

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.

Return values
Google_Service_DisplayVideo_ListInsertionOrdersResponse

patch()

Updates an existing insertion order. Returns the updated insertion order if successful. (insertionOrders.patch)

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

Output only. The unique ID of the advertiser the insertion order belongs to.

$insertionOrderId : string

Output only. The unique ID of the insertion order. Assigned by the system.

$postBody : Google_Service_DisplayVideo_InsertionOrder
$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_InsertionOrder

convertToArrayAndStripNulls()

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

Search results