REST Resource: advertisers.adAssets

Resource: AdAsset

A single ad asset.

JSON representation
{
  "adAssetId": string,
  "name": string,
  "entityStatus": enum (EntityStatus),
  "adAssetType": enum (AdAssetType),

  // Union field ad_asset_data can be only one of the following:
  "youtubeVideoAsset": {
    object (YoutubeVideoAsset)
  }
  // End of list of possible types for union field ad_asset_data.
}
Fields
adAssetId

string (int64 format)

Output only. The ID of the ad asset. Referred to as the asset ID when assigned to an ad.

name

string

Identifier. The resource name of the ad asset.

entityStatus

enum (EntityStatus)

Output only. The entity status of the ad asset.

adAssetType

enum (AdAssetType)

Required. The type of the ad asset.

Union field ad_asset_data. The asset data.

This field currently only supports data for ad assets with the AD_ASSET_TYPE_YOUTUBE_VIDEO AdAssetType. ad_asset_data can be only one of the following:

youtubeVideoAsset

object (YoutubeVideoAsset)

Youtube video asset data.

AdAssetType

Ad asset type.

Enums
AD_ASSET_TYPE_UNSPECIFIED The ad asset type is unspecified.
AD_ASSET_TYPE_IMAGE The ad asset is a YouTube/DemandGen image.
AD_ASSET_TYPE_YOUTUBE_VIDEO The ad asset is a YouTube video.

YoutubeVideoAsset

Data for a YouTube video ad asset.

JSON representation
{
  "youtubeVideoId": string
}
Fields
youtubeVideoId

string

Required. The YouTube video id of the asset. This is the 11 char string value used in the YouTube video URL.

Methods

bulkCreate

Creates multiple ad assets in a single request.

create

Creates an ad asset.

get

Gets an ad asset.

list

Lists ad assets under an advertiser ID.

upload

Uploads and creates an ad asset.