Create an Ad
Ad with matching lookup_key already exists. Returns existing ad without modification.
Authorizations
AuthorizationstringRequired
API key necessary to authenticate API requests
Path parameters
organization_slugstringRequiredExample:
Organization slug
abc-companyHeader parameters
AuthorizationstringOptional
Bearer token for API authentication
Body
Responses
200
OK - Existing ad returned
application/json
typestringOptionalExample:
adidstring · uuidOptionalExample:
e9b4c72e-7520-4e3f-a3e8-a092b927f0d4namestringOptionalExample:
My Adlookup_keystring · nullableOptionalExample:
my-internal-key-0001statusstring · enumOptionalExample:
uploadedPossible values: categorystring · nullableOptionalExample:
displaykindstringOptionalExample:
Media type: url or html_tag
urlcampaign_idstring · uuidOptionalExample:
8304d4b0-90e0-4c58-ae3d-38807b23fd9ccreated_atstring · date-timeOptionalExample:
2023-02-14T09:18:48.318-05:00html_urlstring · uriOptionalExample:
https://app.adreform.com/o/abc-company/campaigns/8304d4b0/ads/e9b4c72e201
Created
application/json
401
Unauthorized
403
Forbidden
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