Create an asset

POST/ads/{connection_id}/asset

Parameters

fieldsstring array
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
connection_idstring required
ID of the connection

Payload

idstring
provider asset resource name/id (e.g. Google Ads customers/{cid}/assets/{id}, TikTok image/video id, DV360 mediaId)
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
organization_idstring
namestring
type enum
Valid values:
"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

Returns

idstring
provider asset resource name/id (e.g. Google Ads customers/{cid}/assets/{id}, TikTok image/video id, DV360 mediaId)
created_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
updated_atdate
(ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
organization_idstring
namestring
type enum
Valid values:
"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
const options = {
  method: 'POST',
  url: 'https://api.unified.to/ads/5de520f96e439b002043d8dc/asset',
  headers: {
    authorization: 'bearer .....'
  },
  data: undefined,
  params: {
    fields: '',
    raw: '',
  }
};

const results = await axios.request(options);
Are we missing anything? Let us know
Was this page helpful?