class DynamicTargetingKeys extends Resource (View source)

The "dynamicTargetingKeys" collection of methods.

Typical usage is:

 $dfareportingService = new Google\Service\Dfareporting(...);
 $dynamicTargetingKeys = $dfareportingService->dynamicTargetingKeys;

Methods

delete(string $profileId, string $objectId, string $name, string $objectType, array $optParams = [])

Deletes an existing dynamic targeting key. (dynamicTargetingKeys.delete)

insert(string $profileId, DynamicTargetingKey $postBody, array $optParams = [])

Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.

listDynamicTargetingKeys(string $profileId, array $optParams = [])

Retrieves a list of dynamic targeting keys.

Details

delete(string $profileId, string $objectId, string $name, string $objectType, array $optParams = [])

Deletes an existing dynamic targeting key. (dynamicTargetingKeys.delete)

Parameters

string $profileId

User profile ID associated with this request.

string $objectId

ID of the object of this dynamic targeting key. This is a required field.

string $name

Required. Name of this dynamic targeting key. This is a required field. Must be less than 256 characters long and cannot contain commas. All characters are converted to lowercase.

string $objectType

Required. Type of the object of this dynamic targeting key. This is a required field.

array $optParams

Optional parameters.

Exceptions

Exception

DynamicTargetingKey insert(string $profileId, DynamicTargetingKey $postBody, array $optParams = [])

Inserts a new dynamic targeting key. Keys must be created at the advertiser level before being assigned to the advertiser's ads, creatives, or placements. There is a maximum of 1000 keys per advertiser, out of which a maximum of 20 keys can be assigned per ad, creative, or placement.

(dynamicTargetingKeys.insert)

Parameters

string $profileId

User profile ID associated with this request.

DynamicTargetingKey $postBody
array $optParams

Optional parameters.

Return Value

DynamicTargetingKey

Exceptions

Exception

DynamicTargetingKeysListResponse listDynamicTargetingKeys(string $profileId, array $optParams = [])

Retrieves a list of dynamic targeting keys.

(dynamicTargetingKeys.listDynamicTargetingKeys)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

DynamicTargetingKeysListResponse

Exceptions

Exception