class InventorySources extends Resource (View source)

The "inventorySources" collection of methods.

Typical usage is:

 $displayvideoService = new Google\Service\DisplayVideo(...);
 $inventorySources = $displayvideoService->inventorySources;

Methods

create(InventorySource $postBody, array $optParams = [])

Creates a new inventory source. Returns the newly created inventory source if successful. (inventorySources.create)

editInventorySourceReadWriteAccessors(string $inventorySourceId, EditInventorySourceReadWriteAccessorsRequest $postBody, array $optParams = [])

Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.

get(string $inventorySourceId, array $optParams = [])

Gets an inventory source. (inventorySources.get)

listInventorySources(array $optParams = [])

Lists inventory sources that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, inventory sources with entity status ENTITY_STATUS_ARCHIVED will not be included in the results. (inventorySources.listInventorySources)

patch(string $inventorySourceId, InventorySource $postBody, array $optParams = [])

Updates an existing inventory source. Returns the updated inventory source if successful. (inventorySources.patch)

Details

InventorySource create(InventorySource $postBody, array $optParams = [])

Creates a new inventory source. Returns the newly created inventory source if successful. (inventorySources.create)

Parameters

InventorySource $postBody
array $optParams

Optional parameters.

Return Value

InventorySource

Exceptions

Exception

InventorySourceAccessors editInventorySourceReadWriteAccessors(string $inventorySourceId, EditInventorySourceReadWriteAccessorsRequest $postBody, array $optParams = [])

Edits read/write accessors of an inventory source. Returns the updated read_write_accessors for the inventory source.

(inventorySources.editInventorySourceReadWriteAccessors)

Parameters

string $inventorySourceId

Required. The ID of inventory source to update.

EditInventorySourceReadWriteAccessorsRequest $postBody
array $optParams

Optional parameters.

Return Value

InventorySourceAccessors

Exceptions

Exception

InventorySource get(string $inventorySourceId, array $optParams = [])

Gets an inventory source. (inventorySources.get)

Parameters

string $inventorySourceId

Required. The ID of the inventory source to fetch.

array $optParams

Optional parameters.

Return Value

InventorySource

Exceptions

Exception

ListInventorySourcesResponse listInventorySources(array $optParams = [])

Lists inventory sources that are accessible to the current user. The order is defined by the order_by parameter. If a filter by entity_status is not specified, inventory sources with entity status ENTITY_STATUS_ARCHIVED will not be included in the results. (inventorySources.listInventorySources)

Parameters

array $optParams

Optional parameters.

Return Value

ListInventorySourcesResponse

Exceptions

Exception

InventorySource patch(string $inventorySourceId, InventorySource $postBody, array $optParams = [])

Updates an existing inventory source. Returns the updated inventory source if successful. (inventorySources.patch)

Parameters

string $inventorySourceId

Output only. The unique ID of the inventory source. Assigned by the system.

InventorySource $postBody
array $optParams

Optional parameters.

Return Value

InventorySource

Exceptions

Exception