JavaScript API
Programmatically control Adkit slots with JavaScript.
Global Object
After the script loads, window.Adkit is available:
Methods
| Method | Description |
|---|---|
refresh(slotId) | Reload a specific slot |
refreshAll() | Reload all slots |
destroy(slotId) | Remove a slot |
on(event, callback) | Listen for events |
Events
Content coming soon.