Method: creatives.create

Creates a Creative. Returns a Creative in the response field when it completes successfully, or a google.rpc.Code upon failure. Returns CreateCreativeOperationMetadata including the status of ingestion in the metadata field.

HTTP request

POST https://dai.googleapis.com/v1/creatives

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "creative": {
    object (Creative)
  },
  "dynamicCreativeInfo": {
    object (DynamicCreativeInfo)
  }
}
Fields
creative

object (Creative)

The creative to be ingested.

dynamicCreativeInfo

object (DynamicCreativeInfo)

Information about the dynamic creative. Required if the creative to be ingested is dynamic.

Response body

If successful, the response body contains a newly created instance of Operation.

DynamicCreativeInfo

Information necessary for a dynamic creative to perform VCL processing.

JSON representation
{
  "dynamicGroupId": string,
  "activeDuration": string
}
Fields
dynamicGroupId

string

An ID that represents the core video ad of the creative. All dynamic creatives under the same dynamic group id can be considered to have the same content but with different dynamic aspects to the creative.

activeDuration

string (Duration format)

The duration for which this creative is considered active and in use for. After this time, the creative will be scheduled for deletion in the video creative repository. The duration will be capped at 180 days. If this field is left unspecified, a default duration time of 30 days will be applied.

A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".