Ad
An Ad is one paid or house placement promoting an Offer to an Audience, in a format such as search, display, or video.
Properties
| Property | Type | Required | Description |
|---|---|---|---|
format | string | required | One of search, display, image, or video. |
spend | money | What it has cost so far. |
Object
{
"$id": "https: //api.sb/ patentpad.com/ ads/ ad_1",
"$type": "Ad",
"format": "search",
"spend": {
"amount": 499,
"currency": "USD"
}
}Relationships
- An Ad promotes one Offer: each Ad sells one Offer.
promotes, inversepromotedBy. - An Ad is run in one Campaign: a Campaign places Ads that share its budget and window.
runIn, inverseruns. - An Ad targets many Audiences: an Ad is shown to the people its Audiences select.
targets, inversetargetedBy.
Verbs
createCreates an Ad.POST /{namespace}/adsgetReturns one Ad by id.GET /{namespace}/ads/{id}listReturns Ads, newest first, one page at a time.GET /{namespace}/adsupdateChanges the given properties of an Ad.PATCH /{namespace}/ads/{id}deleteDeletes an Ad; its history is kept.DELETE /{namespace}/ads/{id}
Permissions
Which Access level may call each Verb. One-way Verbs wait their delay window.
| Operation | owner | admin | member | viewer |
|---|---|---|---|---|
Ad.create | Yes | Yes | Yes | No |
Ad.get | Yes | Yes | Yes | Yes |
Ad.list | Yes | Yes | Yes | Yes |
Ad.update | Yes | Yes | Yes | No |
Ad.delete | Yes | Yes | Yes | No |
Call it
Add an ad to ShiftNote.Example
A short-video Ad shows a meal-planning App filling a week of dinners from one fridge photo. It targets an Audience of parents who save recipe posts, spends $40 a day, and links to the 7-day trial Offer.