Documentation for the
delivery layer.
Hivedeck serves tasteful ad tiles to publisher apps over plain HTTP. The integration model is intentionally small: identify the publisher, request a surface, render the tiles. The official Ruby gem pulls tiles on a cadence and serves them from a local cache with zero network calls on the render path.
Getting started
The current integration surface is intentionally narrow so consumer apps can adopt it quickly while the network evolves.
What Hivedeck returns
Hivedeck responds with a JSON array of ad tiles. Each tile carries the fields needed to render a small, tasteful unit: overline, headline, body, cta, image_url, target_url, and optional tracking beacons. Only headline and target_url are guaranteed. The host app keeps full control over layout and styling.
Authentication
Publisher keys are the current request credential. Keep them in environment-driven configuration.
Publisher key
Your publisher key is available from the publisher dashboard. It should be treated as a secret and supplied with every request via the publisher_key query parameter.
Get ads
Retrieve ad tiles for a specific publisher surface and slot.
site, brief, ticker.
rail, inline, top, mid, bottom. Omit for ticker, which returns a stack.
"Sponsored".
sponsor, house, partner, internal.
standard, feature, image, stack.
single, stack.
impression_url, click_url).
Code examples
Call the endpoint directly with plain HTTP, or — recommended for Ruby apps — use the gem, which pulls and caches for you.
Ruby gem — pull and cache
The official hivedeck gem pulls tiles on a cadence into a local store and serves them with zero network calls on the render path. Fetching happens off the render path; rendering only reads the cache.
Caching and support
Hivedeck uses a pull-and-cache model so the render path stays fast and resilient.
Pull and cache
Hivedeck.refresh populates a local store on a cadence. The render path reads only from that cache via Hivedeck.cached, so no network call happens while serving a page. When the cache is empty, fall back to a house tile.
Need support?
Manage publishers, surfaces, flights, and tiles from the dashboard. This page describes the delivery contract; operational controls live in the service.