class AdvertisersAssets extends Resource (View source)

The "assets" collection of methods.

Typical usage is:

 $displayvideoService = new Google\Service\DisplayVideo(...);
 $assets = $displayvideoService->advertisers_assets;

Methods

upload(string $advertiserId, CreateAssetRequest $postBody, array $optParams = [])

Uploads an asset. Returns the ID of the newly uploaded asset if successful.

Details

CreateAssetResponse upload(string $advertiserId, CreateAssetRequest $postBody, array $optParams = [])

Uploads an asset. Returns the ID of the newly uploaded asset if successful.

The asset file size should be no more than 10 MB for images, 200 MB for ZIP files, and 1 GB for videos. Must be used within the multipart media upload process. Examples using provided client libraries can be found in our Creating Creatives guide. (assets.upload)

Parameters

string $advertiserId

Required. The ID of the advertiser this asset belongs to.

CreateAssetRequest $postBody
array $optParams

Optional parameters.

Return Value

CreateAssetResponse

Exceptions

Exception