advertisers

PATCH /v4/advertisers/{advertisersId}/adAssets/{adAssetsId}

Updates an ad asset. Returns the updated ad asset if successful. Supports updating assets of AdAssetType AD_ASSET_TYPE_YOUTUBE_VIDEO and AD_ASSET_TYPE_IMAGE. Only the AdAsset.synthetic_content_attestation_status field is mutable.

Request

Path parameters

advertisersIdstring required
adAssetsIdstring required

Query parameters

updateMaskstring google-fieldmask

Required. The list of fields to update. Only AdAsset.synthetic_content_attestation_status is mutable.

Request body

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.

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.