Ad Slot Demo
This page demonstrates how ad slots work in programmatic advertising. Ad creatives are stored in a JSON file and dynamically rendered on the page.
How It Works (4 Steps)
- Page loads → JavaScript starts running
- Send bid requests → Client sends POST to
/api/v1/bid-request.phpfor each ad format - Ad server responds → Server selects a winning ad based on format and returns it as JSON
- Render ads → Display HTML creatives in each slot with pricing and tracking info
🔗 Simulated Ad Server Endpoint:
https://adtechpilot.fun/api/v1/bid-request.php
→ POST with
https://adtechpilot.fun/api/v1/bid-request.php
→ POST with
{"format":"leaderboard"} to get an ad
📂 Creative Inventory (Public Data Source):
https://adtechpilot.fun/data/ad-creatives.json
→ Open in new tab to inspect the raw inventory
https://adtechpilot.fun/data/ad-creatives.json
→ Open in new tab to inspect the raw inventory
What's in the JSON?
Each ad creative object contains:
id— Unique creative identifiername— Display name for the advertiserformat— Ad type (leaderboard, rectangle, skyscraper, mobile)size— Dimensions [width, height] in pixelscreative.content— HTML markup to renderclickUrl— Where users go when they clicktrackerUrl— Analytics tracking pixelcpm— Cost per thousand impressions ($)
Ad Slots
Loading ad creatives...