class AccountsCreatives extends Resource (View source)

The "creatives" collection of methods.

Typical usage is:

 $adexchangebuyer2Service = new Google\Service\AdExchangeBuyerII(...);
 $creatives = $adexchangebuyer2Service->accounts_creatives;

Methods

create(string $accountId, Creative $postBody, array $optParams = [])

Creates a creative. (creatives.create)

get(string $accountId, string $creativeId, array $optParams = [])

Gets a creative. (creatives.get)

listAccountsCreatives(string $accountId, array $optParams = [])

Lists creatives. (creatives.listAccountsCreatives)

stopWatching(string $accountId, string $creativeId, StopWatchingCreativeRequest $postBody, array $optParams = [])

Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status. (creatives.stopWatching)

update(string $accountId, string $creativeId, Creative $postBody, array $optParams = [])

Updates a creative. (creatives.update)

watch(string $accountId, string $creativeId, WatchCreativeRequest $postBody, array $optParams = [])

Watches a creative. Will result in push notifications being sent to the topic when the creative changes status. (creatives.watch)

Details

Creative create(string $accountId, Creative $postBody, array $optParams = [])

Creates a creative. (creatives.create)

Parameters

string $accountId

The account that this creative belongs to. Can be used to filter the response of the creatives.list method.

Creative $postBody
array $optParams

Optional parameters.

Return Value

Creative

Exceptions

Exception

Creative get(string $accountId, string $creativeId, array $optParams = [])

Gets a creative. (creatives.get)

Parameters

string $accountId

The account the creative belongs to.

string $creativeId

The ID of the creative to retrieve.

array $optParams

Optional parameters.

Return Value

Creative

Exceptions

Exception

ListCreativesResponse listAccountsCreatives(string $accountId, array $optParams = [])

Lists creatives. (creatives.listAccountsCreatives)

Parameters

string $accountId

The account to list the creatives from. Specify "-" to list all creatives the current user has access to.

array $optParams

Optional parameters.

Return Value

ListCreativesResponse

Exceptions

Exception

Adexchangebuyer2Empty stopWatching(string $accountId, string $creativeId, StopWatchingCreativeRequest $postBody, array $optParams = [])

Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status. (creatives.stopWatching)

Parameters

string $accountId

The account of the creative to stop notifications for.

string $creativeId

The creative ID of the creative to stop notifications for. Specify "-" to specify stopping account level notifications.

StopWatchingCreativeRequest $postBody
array $optParams

Optional parameters.

Return Value

Adexchangebuyer2Empty

Exceptions

Exception

Creative update(string $accountId, string $creativeId, Creative $postBody, array $optParams = [])

Updates a creative. (creatives.update)

Parameters

string $accountId

The account that this creative belongs to. Can be used to filter the response of the creatives.list method.

string $creativeId

The buyer-defined creative ID of this creative. Can be used to filter the response of the creatives.list method.

Creative $postBody
array $optParams

Optional parameters.

Return Value

Creative

Exceptions

Exception

Adexchangebuyer2Empty watch(string $accountId, string $creativeId, WatchCreativeRequest $postBody, array $optParams = [])

Watches a creative. Will result in push notifications being sent to the topic when the creative changes status. (creatives.watch)

Parameters

string $accountId

The account of the creative to watch.

string $creativeId

The creative ID to watch for status changes. Specify "-" to watch all creatives under the above account. If both creative- level and account-level notifications are sent, only a single notification will be sent to the creative-level notification topic.

WatchCreativeRequest $postBody
array $optParams

Optional parameters.

Return Value

Adexchangebuyer2Empty

Exceptions

Exception