ads
asset

Create an asset

post/ads/{connection_id}/asset

Request

  • Base URL: http://api.unified.to
  • URL: http://api.unified.to/ads/{connection_id}/asset
  • Auth: API key in header authorization

Path parameters

connection_idstring required

ID of the connection

Query parameters

fieldsstring[]

Fields to return

rawstring

Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar

Request body

idstring

provider asset resource name/id (e.g. Google Ads customers/{cid}/assets/{id}, TikTok image/video id, DV360 mediaId)

created_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

organization_idstring
namestring
type'IMAGE' | 'VIDEO' | 'YOUTUBE_VIDEO' | 'MEDIA_BUNDLE' | 'TEXT'
urlstring

outbound: public asset URL; inbound (create): source URL to fetch bytes from when content is not supplied

contentstring

inbound create-only: base64-encoded image/media bytes to upload

mime_typestring
widthnumber
heightnumber
file_sizenumber
rawunknown

Response

Successful

idstring

provider asset resource name/id (e.g. Google Ads customers/{cid}/assets/{id}, TikTok image/video id, DV360 mediaId)

created_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

updated_atstring date-time

(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)

organization_idstring
namestring
type'IMAGE' | 'VIDEO' | 'YOUTUBE_VIDEO' | 'MEDIA_BUNDLE' | 'TEXT'
urlstring

outbound: public asset URL; inbound (create): source URL to fetch bytes from when content is not supplied

contentstring

inbound create-only: base64-encoded image/media bytes to upload

mime_typestring
widthnumber
heightnumber
file_sizenumber
rawunknown

Changes

No recorded changes to this operation across all 1 revision of this API.