class PartnersTargetingTypesAssignedTargetingOptions extends Resource (View source)

The "assignedTargetingOptions" collection of methods.

Typical usage is:

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

Methods

create(string $partnerId, string $targetingType, AssignedTargetingOption $postBody, array $optParams = [])

Assigns a targeting option to a partner. Returns the assigned targeting option if successful. (assignedTargetingOptions.create)

delete(string $partnerId, string $targetingType, string $assignedTargetingOptionId, array $optParams = [])

Deletes an assigned targeting option from a partner.

get(string $partnerId, string $targetingType, string $assignedTargetingOptionId, array $optParams = [])

Gets a single targeting option assigned to a partner.

listPartnersTargetingTypesAssignedTargetingOptions(string $partnerId, string $targetingType, array $optParams = [])

Lists the targeting options assigned to a partner.

Details

AssignedTargetingOption create(string $partnerId, string $targetingType, AssignedTargetingOption $postBody, array $optParams = [])

Assigns a targeting option to a partner. Returns the assigned targeting option if successful. (assignedTargetingOptions.create)

Parameters

string $partnerId

Required. The ID of the partner.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: * TARGETING_TYPE_CHANNEL

AssignedTargetingOption $postBody
array $optParams

Optional parameters.

Return Value

AssignedTargetingOption

Exceptions

Exception

DisplayvideoEmpty delete(string $partnerId, string $targetingType, string $assignedTargetingOptionId, array $optParams = [])

Deletes an assigned targeting option from a partner.

(assignedTargetingOptions.delete)

Parameters

string $partnerId

Required. The ID of the partner.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: * TARGETING_TYPE_CHANNEL

string $assignedTargetingOptionId

Required. The ID of the assigned targeting option to delete.

array $optParams

Optional parameters.

Return Value

DisplayvideoEmpty

Exceptions

Exception

AssignedTargetingOption get(string $partnerId, string $targetingType, string $assignedTargetingOptionId, array $optParams = [])

Gets a single targeting option assigned to a partner.

(assignedTargetingOptions.get)

Parameters

string $partnerId

Required. The ID of the partner.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: * TARGETING_TYPE_CHANNEL

string $assignedTargetingOptionId

Required. An identifier unique to the targeting type in this partner that identifies the assigned targeting option being requested.

array $optParams

Optional parameters.

Return Value

AssignedTargetingOption

Exceptions

Exception

ListPartnerAssignedTargetingOptionsResponse listPartnersTargetingTypesAssignedTargetingOptions(string $partnerId, string $targetingType, array $optParams = [])

Lists the targeting options assigned to a partner.

(assignedTargetingOptions.listPartnersTargetingTypesAssignedTargetingOptions)

Parameters

string $partnerId

Required. The ID of the partner.

string $targetingType

Required. Identifies the type of assigned targeting options to list. Supported targeting types: * TARGETING_TYPE_CHANNEL

array $optParams

Optional parameters.

Return Value

ListPartnerAssignedTargetingOptionsResponse

Exceptions

Exception