advertisers

POST /v4/advertisers/{advertisersId}/adAssets

Creates an ad asset. Returns the newly-created ad asset if successful. Only supports the creation of assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO.

Request

  • Base URL
    https://displayvideo.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/display-video
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/display-video
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

advertisersIdstring required

Request body

Response

Successful response

adAssetIdstring int64

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

adAssetType'AD_ASSET_TYPE_UNSPECIFIED' | 'AD_ASSET_TYPE_IMAGE' | 'AD_ASSET_TYPE_YOUTUBE_VIDEO'

Required. The type of the ad asset.

entityStatus'ENTITY_STATUS_UNSPECIFIED' | 'ENTITY_STATUS_ACTIVE' | 'ENTITY_STATUS_ARCHIVED' | 'ENTITY_STATUS_DRAFT' | 'ENTITY_STATUS_PAUSED' | 'ENTITY_STATUS_SCHEDULED_FOR_DELETION'

Output only. The entity status of the ad asset.

namestring

Identifier. The resource name of the ad asset.

syntheticContentAttestationStatus'SYNTHETIC_CONTENT_ATTESTATION_STATUS_UNSPECIFIED' | 'NOT_SYNTHETIC' | 'IS_SYNTHETIC'

Optional. Whether to add a label to the asset as created or edited using AI when served in regions with local AI labeling regulations.

Changes

No recorded changes to this operation across all 7 revisions of this API.