class AdvertisersTargetingTypesAssignedTargetingOptions extends Resource (View source)

The "assignedTargetingOptions" collection of methods.

Typical usage is:

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

Methods

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

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

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

Deletes an assigned targeting option from an advertiser.

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

Gets a single targeting option assigned to an advertiser.

listAdvertisersTargetingTypesAssignedTargetingOptions(string $advertiserId, string $targetingType, array $optParams = [])

Lists the targeting options assigned to an advertiser. (assignedTargetingOpti ons.listAdvertisersTargetingTypesAssignedTargetingOptions)

Details

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

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

Parameters

string $advertiserId

Required. The ID of the advertiser.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: TARGETING_TYPE_CHANNEL TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION TARGETING_TYPE_OMID TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION * TARGETING_TYPE_KEYWORD

AssignedTargetingOption $postBody
array $optParams

Optional parameters.

Return Value

AssignedTargetingOption

Exceptions

Exception

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

Deletes an assigned targeting option from an advertiser.

(assignedTargetingOptions.delete)

Parameters

string $advertiserId

Required. The ID of the advertiser.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: TARGETING_TYPE_CHANNEL TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION TARGETING_TYPE_OMID TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION * TARGETING_TYPE_KEYWORD

string $assignedTargetingOptionId

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

array $optParams

Optional parameters.

Return Value

DisplayvideoEmpty

Exceptions

Exception

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

Gets a single targeting option assigned to an advertiser.

(assignedTargetingOptions.get)

Parameters

string $advertiserId

Required. The ID of the advertiser.

string $targetingType

Required. Identifies the type of this assigned targeting option. Supported targeting types: TARGETING_TYPE_CHANNEL TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION TARGETING_TYPE_OMID TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION TARGETING_TYPE_YOUTUBE_VIDEO TARGETING_TYPE_YOUTUBE_CHANNEL * TARGETING_TYPE_KEYWORD

string $assignedTargetingOptionId

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

array $optParams

Optional parameters.

Return Value

AssignedTargetingOption

Exceptions

Exception

ListAdvertiserAssignedTargetingOptionsResponse listAdvertisersTargetingTypesAssignedTargetingOptions(string $advertiserId, string $targetingType, array $optParams = [])

Lists the targeting options assigned to an advertiser. (assignedTargetingOpti ons.listAdvertisersTargetingTypesAssignedTargetingOptions)

Parameters

string $advertiserId

Required. The ID of the advertiser.

string $targetingType

Required. Identifies the type of assigned targeting options to list. Supported targeting types: TARGETING_TYPE_CHANNEL TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION TARGETING_TYPE_OMID TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION TARGETING_TYPE_YOUTUBE_VIDEO TARGETING_TYPE_YOUTUBE_CHANNEL * TARGETING_TYPE_KEYWORD

array $optParams

Optional parameters.

Return Value

ListAdvertiserAssignedTargetingOptionsResponse

Exceptions

Exception