CreativeAssets: insert

Requires authorization

Inserts a new creative asset. Try it now.

This method supports an /upload URI and accepts uploaded media with the following characteristics:

  • Maximum file size: 1024MB
  • Accepted Media MIME types:
    application/octet-stream
    application/x-zip
    application/zip
    image/*
    text/html
    text/plain
    text/xml
    video/*

Request

HTTP request

This method provides media upload functionality through two separate URIs. For more details, see the document on media upload.

  • Upload URI, for media upload requests:
    POST https://www.googleapis.com/upload/dfareporting/v3.0/userprofiles/profileId/creativeAssets/advertiserId/creativeAssets
  • Metadata URI, for metadata-only requests:
    POST https://www.googleapis.com/dfareporting/v3.0/userprofiles/profileId/creativeAssets/advertiserId/creativeAssets

Parameters

Parameter name Value Description
Path parameters
advertiserId long Advertiser ID of this creative. This is a required field.
profileId long User profile ID associated with this request.
Required query parameters
uploadType string The type of upload request to the /upload URI. Acceptable values are:
  • media - Simple upload. Upload the media only, without any metadata.
  • multipart - Multipart upload. Upload both the media and its metadata, in a single request.
  • resumable - Resumable upload. Upload the file in a resumable fashion, using a series of at least two requests where the first request includes the metadata.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/dfatrafficking

Request body

In the request body, supply a CreativeAssets resource as the metadata. For more information, see the document on media upload.

Response

If successful, this method returns a CreativeAssets resource in the response body.

Try it!

Note: APIs Explorer currently supports metadata requests only.

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

DoubleClick Campaign Manager
DoubleClick Campaign Manager