Get creatives
const url = 'https://portal.staging.arago-tech.com/creatives';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"creative_ids":["63e2d42a27ad5f2b345ca123","63e2d42a27ad5f2b345ca124"],"ids":["63e2d42a27ad5f2b345ca123","63e2d42a27ad5f2b345ca124"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://portal.staging.arago-tech.com/creatives \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "creative_ids": [ "63e2d42a27ad5f2b345ca123", "63e2d42a27ad5f2b345ca124" ], "ids": [ "63e2d42a27ad5f2b345ca123", "63e2d42a27ad5f2b345ca124" ] }'Get creatives for given creative IDs
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”The request to get creatives by their unique identifiers
The request to get creatives by their unique identifiers
object
Deprecated: use ids instead. The unique identifiers of the creatives to list
Example
[ "63e2d42a27ad5f2b345ca123", "63e2d42a27ad5f2b345ca124"]The unique identifiers of the creatives to list
Example
[ "63e2d42a27ad5f2b345ca123", "63e2d42a27ad5f2b345ca124"]Responses
Section titled “ Responses ”A successful response.
The response containing the creatives
object
The list of creatives
Creative details
object
The unique identifier of the creative in hexadecimal format
Tags associated with the creative
The name of the creative
The original URL of the creative
The URL of the creative thumbnail
The URL of the generated creative
The unique identifier of the dynamic content optimization of the creative
Indicates whether the creative is currently generating
The width of the creative
The height of the creative
The aspect ratio of the creative (width / height). Explicitly set or computed from non-zero dimensions. Leaving width, height and aspect_ratio at zero makes the creative eligible for every slot size with usable dimensions.
Free-form metadata of the creative as key/value pairs. Any key may be set, and none is required.
object
The UTC last updated date of the creative
The UTC created date of the creative
The format of the creative
The language of the creative
Example
{ "creatives": [ { "id": "63e2d42a27ad5f2b345ca123", "tags": [ "tag1", "tag2", "tag3" ], "name": "Creative name", "source_url": "https://example.com/image.png", "thumbnail_url": "https://example.com/thumbnail.jpg", "generated_url": "https://example.com/generated_image.png", "dynamic_content_optimization_id": "63e2d42a27ad5f2b345ca123", "width": 100, "height": 100, "aspect_ratio": 1.7777777777777777, "updated_at": "2023-01-01T00:00:00Z", "created_at": "2023-01-01T00:00:00Z", "format": "FORMAT_UNSPECIFIED", "language": "LANGUAGE_UNSPECIFIED" } ]}Bad request
object
Example
{ "error": { "code": "BAD_REQUEST", "details": [ { "code": "MAX_ITEMS", "field": "line_items", "message": "value must contain no more than 3000 item(s)", "params": { "max": "3000" } } ], "message": "Bad request" }}Unauthorized
object
Example
{ "error": { "code": "UNAUTHORIZED", "message": "Unauthorized" }}Internal server error
object
Example
{ "error": { "code": "INTERNAL_ERROR", "message": "Internal server error" }}default
Section titled “default”An unexpected error response.
object
object
Examplegenerated
{ "code": 1, "message": "example", "details": [ { "@type": "example" } ]}