Upsert dynamic content optimizations
const url = 'https://portal.staging.arago-tech.com/dynamic-content-optimizations';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"dynamic_content_optimizations":[{"id":"63e2d42a27ad5f2b345ca123","destination_url":"https://example.com/landing","data":{"CTAText":"50% off","Headline":"Summer Sales!"}}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://portal.staging.arago-tech.com/dynamic-content-optimizations \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "dynamic_content_optimizations": [ { "id": "63e2d42a27ad5f2b345ca123", "destination_url": "https://example.com/landing", "data": { "CTAText": "50% off", "Headline": "Summer Sales!" } } ] }'Creates or updates multiple dynamic content optimizations
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Request to bulk upsert dynamic content optimizations.
Request to bulk upsert dynamic content optimizations.
object
List of dynamic content optimizations to upsert
Dynamic content optimization details for upsert
object
The unique identifier of the dynamic content optimization. If not provided, a new dynamic content optimization will be created.
Example
63e2d42a27ad5f2b345ca123The destination URL for the dynamic content.
Example
https://example.com/landingArbitrary case-sensitive key-value pairs for dynamic content substitution at ad rendering time.
- Maximum 100 entries.
- Keys must be <= 32 characters.
- Values must be <= 4096 characters.
object
Example
{ "CTAText": "50% off", "Headline": "Summer Sales!"}Responses
Section titled “ Responses ”A successful response.
object
Dynamic content optimization details
object
Unique identifier for the dynamic content optimization.
The destination URL for the dynamic content.
Arbitrary case-sensitive key-value pairs for dynamic content substitution at ad rendering time.
- Maximum 100 entries.
- Keys must be <= 32 characters.
- Values must be <= 4096 characters.
object
The UTC created date of the dynamic content optimization
The UTC last updated date of the dynamic content optimization
Example
{ "dynamic_content_optimizations": [ { "id": "63e2d42a27ad5f2b345ca124", "destination_url": "https://example.com/landing", "data": { "CTAText": "50% off", "Headline": "Summer Sales!" }, "created_at": "2023-01-01T00:00:00Z", "updated_at": "2023-01-01T00:00:00Z" } ]}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" } ]}