Image Card
A compact creator card for inline, sidebar, and content placements. It uses approved image media and tracks clicks through AdFanz.
Add AdFanz creator ads to your site with simple script tags, category targeting, controlled fallback, and billable click tracking.
Replace PUB_KEY with your publisher key, set data-category based on the section or page, and paste the script where the ad should appear.
<script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay"></script>A compact creator card for inline, sidebar, and content placements. It uses approved image media and tracks clicks through AdFanz.
The same compact placement style, but with a muted short preview video. Video views are not billable clicks.
A publisher opt-in interstitial that appears after a delay, includes a close button, and never uses forced redirects.
A muted beta video ad that can appear before a publisher video player and shows a skip button after the configured delay.
<script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay"></script><script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-format="image_card"></script><script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-format="video_card"></script><script src="https://api.adfanz.com/popover-widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-delay-seconds="5" data-frequency="session"></script><script src="https://api.adfanz.com/preroll-widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-video-selector="#main-video" data-skip-after="5"></script>data-category is the main placement category. Your publisher site must allow that category, and the campaign must include the same category. For example, a MILF section should use data-category="milf".
If no eligible campaign matches the exact category, no ad is served by default.
data-tags can help prioritize better matches, but tags do not replace data-category. A cosplay page can use category targeting plus extra tags like anime or gamer.
<script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-tags="anime,gamer"></script>Fallback is disabled by default. Exact no-match returns no ad. Use data-fallback="true" to allow fallback to another publisher-approved category, or data-fallback-categories to control fallback order.
Fallback never uses categories your publisher site has not approved.
<script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-fallback="true"></script><script src="https://api.adfanz.com/widget.js" data-publisher="PUB_KEY" data-category="cosplay" data-fallback-categories="anime,gaming"></script>data-video-selector should point to the publisher video element. For example: data-video-selector="#main-video".
If no video element is found, AdFanz fails safely and does not block the page. The skip button appears after data-skip-after seconds.
Payouts are manual during beta. Earnings are based on billable clicks only. Duplicate, suspicious, or invalid clicks are non-billable, and admin review may hold or void suspicious payouts.
Confirm your site is approved, your publisher key is correct, and the script is not blocked by the browser or an ad blocker.
AdFanz returns no ad by default when the requested category has no eligible campaign.
Add data-fallback="true" or data-fallback-categories="anime,gaming" if you want controlled fallback.
Use the publisher key generated for the approved site where the widget is installed.
Widgets only serve live ads for approved publisher sites.
Some browsers, extensions, or network filters can block ad scripts during testing.
Set data-video-selector to the CSS selector for your actual video element, such as #main-video.
Create a publisher site, copy your publisher key, and add the right script tag to your placement.