adPluga

Quickstart

Render your first ad in two 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 sk_test_•••' \
  -H 'Content-Type: application/json' \
  -d {"slot_id":"slot_home_top"}

4. Go live

When the integration looks healthy in test mode, swap pk_test_… for pk_live_… and deploy. Production keys require billing setup; see Authentication for details.

Next: read about Authentication and API keys.