GET /publisher-dashboard/placements
Returns the results for each placement, with a daily time series.integer
default:"7"
The number of days to look back, from 1 to 365.
string
The start date (
YYYY-MM-DD). Use it with end_date. A date range replaces days.string
The end date (
YYYY-MM-DD).Request
Response
POST /publisher-dashboard/placements
Creates a placement (an ad slot). You do not need the dashboard. The slug in the response is the placement_id to send in ad requests. The new placement has the status active. Gravity refreshes the placement cache every 5 minutes. Until the refresh, ad requests get no ad for the new slot.string
required
The display name, at most 100 characters. Gravity makes the slug from it (
"Sidebar Slot" becomes Sidebar-Slot). The slug must be unique for your account.string
default:"below_response"
One of
above_response, below_response, inline_response, left_response, right_response, search_result, center_page, top_page, bottom_page, left_page, right_page.string
default:"all"
One of
all, desktop, mobile, tablet.string
default:"any"
One of
any, react, nextjs, vite, react-native, swift, vanilla, other.string
The URL of the page or screen that has the slot.
string
Your notes.
object
Optional
{ "max_ad_text_chars": integer }. It sets the maximum length of the ad text for this slot. The minimum value is 120.renderer_spec is the ad design that the slot uses. renderer_spec_source tells you where the design comes from: placement (the design of this slot), global (the default design of the platform), or null (the built-in layout of the SDK).Request
Response 201 Created