SDK & API docs
Integrate AdPulse on websites and apps in minutes.
1. Web JS SDK
<!-- container -->
<div data-adpulse="YOUR_PLACEMENT_KEY"
data-country="US"
data-device="desktop"></div>
<script src="https://ads.doona.online/sdk.js" async></script>The SDK requests a fill, renders the creative, and fires impression / click / complete trackers automatically.
2. Serve API
GET /api/serve?placement_key=ap_xxx&country=US&device=mobile
// 200
{
"fill": true,
"ad": {
"title": "...",
"image_url": "...",
"track": {
"impression": "https://ads.doona.online/api/track?...",
"click": "...",
"complete": "..."
}
}
}3. Tracking
impression— bill CPM when applicableclick— bill CPCcomplete— bill CPV / CPA (rewarded)
4. Mobile / Unity
Call the Serve API from your game client when a rewarded or interstitial slot is ready. On ad close after full watch, hit the complete tracker then grant the local reward.
// pseudocode
ad = HTTP.GET("/api/serve?placement_key=...")
show(ad)
onFinished: HTTP.GET(ad.track.complete)
grantReward(ad.reward_amount)5. Formats
banner
Display sizes 300x250, 320x50, …
video
In-stream / out-stream CPV
rewarded
Full-screen + reward payload
interstitial
Full-screen between levels
native
Title, body, image, CTA
sticky
Anchor bar top/bottom
6. Crypto settlement
Wallets hold USDT balances. Advertiser deposits fund campaigns; publisher revenue share is credited per billable event. Withdraw to TRC20 or BEP20 addresses from the Wallet page.