class TargetingTemplates extends Resource (View source)

The "targetingTemplates" collection of methods.

Typical usage is:

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

Methods

get(string $profileId, string $id, array $optParams = [])

Gets one targeting template by ID. (targetingTemplates.get)

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

Inserts a new targeting template. (targetingTemplates.insert)

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

Retrieves a list of targeting templates, optionally filtered. This method supports paging. (targetingTemplates.listTargetingTemplates)

patch(string $profileId, string $id, TargetingTemplate $postBody, array $optParams = [])

Updates an existing targeting template. This method supports patch semantics.

update(string $profileId, TargetingTemplate $postBody, array $optParams = [])

Updates an existing targeting template. (targetingTemplates.update)

Details

TargetingTemplate get(string $profileId, string $id, array $optParams = [])

Gets one targeting template by ID. (targetingTemplates.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Targeting template ID.

array $optParams

Optional parameters.

Return Value

TargetingTemplate

Exceptions

Exception

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

Inserts a new targeting template. (targetingTemplates.insert)

Parameters

string $profileId

User profile ID associated with this request.

TargetingTemplate $postBody
array $optParams

Optional parameters.

Return Value

TargetingTemplate

Exceptions

Exception

TargetingTemplatesListResponse listTargetingTemplates(string $profileId, array $optParams = [])

Retrieves a list of targeting templates, optionally filtered. This method supports paging. (targetingTemplates.listTargetingTemplates)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

TargetingTemplatesListResponse

Exceptions

Exception

TargetingTemplate patch(string $profileId, string $id, TargetingTemplate $postBody, array $optParams = [])

Updates an existing targeting template. This method supports patch semantics.

(targetingTemplates.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. RemarketingList ID.

TargetingTemplate $postBody
array $optParams

Optional parameters.

Return Value

TargetingTemplate

Exceptions

Exception

TargetingTemplate update(string $profileId, TargetingTemplate $postBody, array $optParams = [])

Updates an existing targeting template. (targetingTemplates.update)

Parameters

string $profileId

User profile ID associated with this request.

TargetingTemplate $postBody
array $optParams

Optional parameters.

Return Value

TargetingTemplate

Exceptions

Exception