class Ads extends Resource (View source)

The "ads" collection of methods.

Typical usage is:

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

Methods

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

Gets one ad by ID. (ads.get)

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

Inserts a new ad. (ads.insert)

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

Retrieves a list of ads, possibly filtered. This method supports paging.

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

Updates an existing ad. This method supports patch semantics. (ads.patch)

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

Updates an existing ad. (ads.update)

Details

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

Gets one ad by ID. (ads.get)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Ad ID.

array $optParams

Optional parameters.

Return Value

Ad

Exceptions

Exception

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

Inserts a new ad. (ads.insert)

Parameters

string $profileId

User profile ID associated with this request.

Ad $postBody
array $optParams

Optional parameters.

Return Value

Ad

Exceptions

Exception

AdsListResponse listAds(string $profileId, array $optParams = [])

Retrieves a list of ads, possibly filtered. This method supports paging.

(ads.listAds)

Parameters

string $profileId

User profile ID associated with this request.

array $optParams

Optional parameters.

Return Value

AdsListResponse

Exceptions

Exception

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

Updates an existing ad. This method supports patch semantics. (ads.patch)

Parameters

string $profileId

User profile ID associated with this request.

string $id

Required. RemarketingList ID.

Ad $postBody
array $optParams

Optional parameters.

Return Value

Ad

Exceptions

Exception

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

Updates an existing ad. (ads.update)

Parameters

string $profileId

User profile ID associated with this request.

Ad $postBody
array $optParams

Optional parameters.

Return Value

Ad

Exceptions

Exception