POST /publisher-dashboard/placements creates a placement.
Base URL
Authentication
Send your Gravity API key in theX-API-Key header on every request. To find the key, open Settings in the dashboard and copy it from the API Key card. It’s the same key you use to request ads, so you don’t need other credentials.
X-API-Key header is missing or the key isn’t valid, the response is 401. See Errors.
Rate limits
The Platform API allows about 100 requests per second from one client IP address. Over the limit, the response is429 with a Retry-After header. Wait that many seconds, then try again.
Conventions
- Request and response bodies are JSON.
- Most reports take
days, orstart_dateandend_date(YYYY-MM-DD). A date range replacesdays. Each endpoint has its own range limit. tzis an IANA time zone for the daily buckets, for exampleAmerica/New_York. The default isUTC.- Amounts that end in
_microdollarsare in millionths of a dollar. Other revenue fields are in dollars.