Step 3: Ad Placements
Now that you've integrated Ezoic's scripts and set up your ads.txt file, it's time to add ad placements to your website. This final step will start displaying ads and generating revenue.
For most sites, you only need this one snippet pattern. Paste it wherever you want an ad to appear, and Ezoic will control the sizing for that spot.
Add the Ad Snippet
<script>
ezstandalone.cmd.push(function () {
ezstandalone.showAds({});
});
</script>
Use the same snippet for each ad location on your page. For example, place one above your content, one between paragraphs, and one near the bottom of the article.
showAds snippet per spot. To show several ads, place the same snippet at different positions in your page.
Need More Control?
If you want to request specific sizes, set different sizes per device, target elements from JavaScript, or use placement IDs from the dashboard, see ShowAds advanced usage.
Setup Complete
Once you have completed these steps, you have successfully implemented EzoicAds on your site. If you have any questions or need assistance, please reach out to Ezoic's support team.