Quickstart
Render your first ad in five minutes
Drop a tag or call /v1/serve directly. The same /serve contract powers every path — pick the one that fits the stack you already have.
1. Get a publishable key
Sign in to the dashboard and create a property. Each property gets a publishable key (pk_test_… / pk_live_…) and an optional secret key (sk_…). Test keys never spend budget and never bill conversions.
2. Render an ad
Choose the path that matches your runtime. All snippets render the same slot id pulled from the dashboard.
<script async src="https://cdn.adpluga.com/v1/tag.js"
data-adpluga-key="pk_test_•••"></script>
<div data-adpluga-slot="slot_home_top"></div>3. Verify in test mode
Open the property in the dashboard and trigger one synthetic event. Live counters reflect the request within a second.
curl -X POST https://api.adpluga.com/v1/integration/send-test-event \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d {"slot_id":"SLOT_ID_OR_NAME"}4. Go live
When the integration looks healthy in test mode, swap pk_test_… for pk_live_… and deploy. A live key needs no card; until you verify the property the space shows only adPluga's own ads, and then the same code starts showing paid ones. See Authentication for details.