Get creative by ID
const url = 'https://portal.staging.arago-tech.com/creatives/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://portal.staging.arago-tech.com/creatives/example \ --header 'Authorization: <Authorization>'Returns the creative details by ID
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The unique identifier of the creative in hexadecimal format
Query Parameters
Section titled “Query Parameters”Creative ID
Deprecated: use id instead. The unique identifier of the creative in hexadecimal format
Responses
Section titled “ Responses ”A successful response.
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
{ "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" } ]}