Publisher Quickstart

This guide will get you all set up and ready to display Armanet ads on your website. Welcome to the quickstart guide for integrating with our adserver! Follow these simple steps to get up and running in no time.

Include the SDK

Include the Armanet SDK in the <head> section of your page using the following code:

<head>
  <script src="https://assets.armanet.us/armanet-pxl.js" defer></script>
</head>

To further optimize the loading time of ads, you can use dns-prefetch and preconnect link relations. These techniques allow the browser to perform DNS resolution and establish early connections to the adserver, reducing latency when the ads are loaded.

<head>
  <link rel="dns-prefetch" href="//i.armanet.us">
  <link rel="preconnect" href="https://i.armanet.us">
  <link rel="dns-prefetch" href="//srv.armanet.us">
  <link rel="preconnect" href="https://srv.armanet.us">
</head>

Place the ad units

Next, you need to place the ad unit tags wherever you want ads to appear on your webpage. Use the following code snippet, replacing #AD_UNIT_ID with the unique identifier for the ad unit you wish to display.

<div data-armanet="#AD_UNIT_ID"></div>

For example, if your ad unit ID is 06580c87-aa21-4a8e-ab4b-fe532077a2ef, the code would look like this:

<div data-armanet="06580c87-aa21-4a8e-ab4b-fe532077a2ef"></div>

What's next?

That's it! You have successfully integrated our adserver into your website. The SDK script will handle loading and displaying the ads based on the ad unit IDs you provided. If you have any questions or need further assistance, please refer to our detailed documentation or contact our support team.