Create an Ad
Creates an ad independently from the screenshot request workflow.
This endpoint is idempotent when using lookup_key:
- If an ad with the specified
lookup_keyalready exists in the campaign, returns the existing ad with200 OK - New ads are created with
201 Created
Authorizations
AuthorizationstringRequired
API key necessary to authenticate API requests
Path parameters
organization_slugstringRequiredExample:
Organization slug
abc-companyHeader parameters
AuthorizationstringOptional
Authorization
Body
Responses
200
OK (existing ad returned)
application/json
201
Created
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
422
Unprocessable Entity
application/json
post
/api/v1/orgs/{organization_slug}/adsOverview
Idempotent Behavior
Disabled organizations
The Campaign object
campaign.id
campaign.idcampaign.name
campaign.nameThe Ad object
ad.lookup_key (optional)
ad.lookup_key (optional)ad.name (optional)
ad.name (optional)ad.media (required for new ads)
ad.media (required for new ads)Media Types
URL (type: "url")
type: "url")HTML Tag (type: "html_tag")
type: "html_tag")Subscribers (optional)
Webhook Subscriber
S3 Subscriber
Response
Success Response (201 Created)
Success Response (200 OK)
Status Values
Status
Description
Error Response (422 Unprocessable Entity)
Example Requests
Create ad with URL media
Create ad with HTML tag and webhook subscriber
Idempotent request (returns existing ad)
Last updated