class Campaigns extends Resource (View source)

The "campaigns" collection of methods.

Typical usage is:

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

Methods

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

Gets one campaign by ID. (campaigns.get)

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

Inserts a new campaign. (campaigns.insert)

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

Retrieves a list of campaigns, possibly filtered. This method supports paging. (campaigns.listCampaigns)

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

Updates an existing campaign. This method supports patch semantics.

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

Updates an existing campaign. (campaigns.update)

Details

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

Gets one campaign by ID. (campaigns.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Campaign ID.

array $optParams

Optional parameters.

Return Value

Campaign

Exceptions

Exception

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

Inserts a new campaign. (campaigns.insert)

Parameters

string $profileId

User profile ID associated with this request.

Campaign $postBody
array $optParams

Optional parameters.

Return Value

Campaign

Exceptions

Exception

CampaignsListResponse listCampaigns(string $profileId, array $optParams = [])

Retrieves a list of campaigns, possibly filtered. This method supports paging. (campaigns.listCampaigns)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

CampaignsListResponse

Exceptions

Exception

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

Updates an existing campaign. This method supports patch semantics.

(campaigns.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. Campaign ID.

Campaign $postBody
array $optParams

Optional parameters.

Return Value

Campaign

Exceptions

Exception

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

Updates an existing campaign. (campaigns.update)

Parameters

string $profileId

User profile ID associated with this request.

Campaign $postBody
array $optParams

Optional parameters.

Return Value

Campaign

Exceptions

Exception