How to Create a Script / HTML Ad
Script / HTML Ads allow you to serve third-party programmatic ad tags, Google AdSense responsive snippet units, Affiliate widgets (Amazon, CJ), Prebid wrappers, and custom interactive HTML5 canvas banners.
Navigate to WordPress Admin > AdFuz > Ads > + Add New Ad and select the Script tab.
The Script Ad Creation Interface
Section titled “The Script Ad Creation Interface”When you select the Script tab:
- Ad Code Editor: A full-featured code editor with a built-in tag insertion toolbar:
- Formatting buttons:
b,i,link,b-quote,del,ins,img,ul,ol,li,code,more,close tags.
- Formatting buttons:
- Title (0/100 characters): Internal label to distinguish network tags (e.g.,
Google AdSense - InArticle Responsive). - Hide Title Toggle: Hides any text title overlay to ensure pure third-party tag rendering.
- Live Preview: Dynamically compiles and sandbox-evaluates your script code in the left panel.
Code Integration Examples
Section titled “Code Integration Examples”<!-- Google AdSense Responsive Unit --><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXXXXXXXXXXX" crossorigin="anonymous"></script><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-XXXXXXXXXXXXXXXX" data-ad-slot="1234567890" data-ad-format="auto" data-full-width-responsive="true"></ins><script> (adsbygoogle = window.adsbygoogle || []).push({});</script><div class="custom-promo-widget" style="background: linear-gradient(135deg, #4F46E5, #06B6D4); padding: 18px; border-radius: 12px; color: #fff; text-align: center;"> <h4 style="margin: 0 0 8px 0; font-weight: 700;">Special Enterprise Discount</h4> <p style="margin: 0 0 12px 0; font-size: 14px;">Upgrade your workspace today and get 30% off annual plans.</p> <a href="https://example.com/checkout?coupon=SAVE30" target="_blank" style="background: #fff; color: #4F46E5; padding: 8px 16px; border-radius: 6px; font-weight: 600; text-decoration: none; display: inline-block;">Claim Offer →</a></div><iframe src="https://affiliate.network.com/widget?id=98721&size=300x250" width="300" height="250" frameborder="0" scrolling="no" loading="lazy"></iframe>Step-by-Step Creation Guide
Section titled “Step-by-Step Creation Guide”- Select the Script ad type tab in the builder.
- Paste your raw JavaScript or HTML tag snippet into the Ad Code textarea.
- Enter an identifiable Title (e.g.,
Testing Google Ads 2). - Turn ON Hide Title if you do not want an extra heading rendered above the third-party ad.
- Set the Status to
ActiveorPending. - Click Create Ad to save.