Description
Note: This API route requires the image to be registered via the /register
route.
Note: This API route and functionality can be accessed only after a consultation with our sales and support team. Please reach out to us at support@bria.ai for more information and assistance.
The campaign_generator Route enables users to create visual campaigns for various ad channels using a visual_id. This route facilitates the generation of templates featuring diverse layouts that incorporate elements like text, logos, and calls to action (CTA), tailored to various resolutions (placements) and target audiences.
Ad backgrounds are expanded to fit the necessary layout specifications.
Examples
original image (Generated by Bria):
Results:
Successful response with generated campaign visuals.
Bad request.
Specified Image does not exist.
Method not allowed.
Request limit exceeded. Your account has reached its maximum allowed requests. Please upgrade your plan or try again later.
Internal server error.
Insufficient data. The given input is not supported by the Bria API.
{- "ads": [
- {
- "bg_seed": null,
- "canvas_size": [
- 1200,
- 627
], - "channel": {
- "id": 7,
- "name": "Amazon"
}, - "expansion_seed": 4046260470,
- "jpeg_file": "jpg_file_url",
- "layout_id": "120",
- "placement": {
- "id": 54,
- "name": "Amazon 1200x627"
}, - "png_file": "png_file_url",
- "psd_file": "psd_file_url",
- "template_id": null
}
]
}