💡 We'll walk you through the process of adding Adsterra ads to a very simple static HTML page, however the process is roughly the same for more complex websites as well. Our codes are JavaScript based and work on almost any website. However, if you prefer WordPress or Blogger, please refer to the relevant guides. The code snippets are always available on the Websites page — in this article you'll find our step-by-step guide to getting the scripts.

Popunder

Add the code snippet right before the closing </head> tag:

❗ Note that using several Popunder codes on the same page may lead to the conflict of the codes. If you want to increase the number of ads, just reach out to us to set customized frequency settings.

Social Bar

Social Bar script is placed right above the closing </body> tag:

❗ Note that changing the position of the code snippet does not place the ads elsewhere — please get in touch if you want to change the location of the ads. Also bear in mind that using several Social bar codes on the same page does not increase the number of ads. If you want to change it, just contact us to set customized frequency settings.

Direct Link

Using your Direct Link in a Text

To add a Direct Link to any text, use the standard HTML <a> tag for hyperlinks:

<a href="your direct link URL">link text</a>

You can also add it to any image:

<a href="your direct link URL"> <img src="https://adsterra.com/_nuxt/img/logo_extended.fddf2fa.svg" alt="Adsterra"> </a>

Or even add it to a button:

<button onclick="window.location.href='your direct link URL';"> Click Here </button>

Native Ads

Native Ad script can be placed anywhere in the page body:

The ad will inherit the style of the webpage by default; on the Websites page you can tweak the layout, as well as the size and colour of the font.

❗ Note that using the same snippet more than once per page may lead to the conflict of the codes. You may ask for up to 2 additional Native banner codes by contacting our Support team.

Static Banners

For Static Banner, just place the code snipped anywhere in the page body, but keep in mind that horizontal banners look better at the top of the page, and vertical ones are mainly used in the sidebar. Rectangle ads can be placed almost anywhere.

❗ Also note that using the same banner code more than once per page may lead to the conflict of the codes. You may ask for additional snippets by contacting our Support team.

Did this answer your question?