advertisers

POST /v4/advertisers/{advertisersId}/adAssets:uploadAdAsset

Uploads and creates an ad asset. Returns the ID of the newly-created ad asset if successful. Only supports the uploading of assets with the AdAssetType AD_ASSET_TYPE_IMAGE.

Request

Path parameters

advertisersIdstring required

Request body

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

Required. The type of the ad asset. Only AD_ASSET_TYPE_IMAGE is supported.

filenamestring

Required. The filename of the ad asset, including the file extension. The filename must be UTF-8 encoded with a maximum size of 240 bytes.

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.

Response

Successful response

Changes

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