Banner ads for websites: Creating AD Codes
Step 1. Sign up to join OnClickA Publishers: Sign up →
Step 2. Go to the AD Codes tab: AD Codes →
Step 3. Add new AD Code
Step 4. Copy the snippet
Step 5. Paste the snippet from a clipboard to head / to body of your website
Now, let’s get more details about each of the steps.
Step 1
Sign up to OnClickA Publishers. You can do it here:
Step 2
Go to the AD Codes tab:
Step 3
Click on Add new AD Code:
Create new AD Code:
ℹ️ AD Code name
Provide a name for your ad code. This name will only be viewed within our service to help you differentiate one code from another.
ℹ️ Choose your traffic type
It’s essential to select Category group and Category ID. Choose the category that best suits your needs.
ℹ️ Choose ad formats for your AD Code
Choose the Banner option since this guide is about banners.
Let’s explore more potential customizations.
Please note
Some ℹ️ customizations are marked as Optional. They provide more control but aren’t needed in most cases—ads will display fine without them.
Enable them only if you’re sure you need them.
ℹ️ Spot name
Spot name is filled in automatically.
ℹ️ Size select · Optional
Choose the size of the banner ad.
ℹ️ Bright banner · Optional: Darkens the area around the banner for 2 seconds.
ℹ️ Sticky banner · Optional: Keeps the banner stuck to the top and bottom borders of the screen as a user scrolls, maintaining its height.
ℹ️ Targeting type · Optional
· Include: Show a specific ad to defined targets.
· Exclude: Hide a specific ad from defined targets.
ℹ️ Device targeting · Optional
You can leave it as all devices, or you can choose between desktop and mobile.
Moving on
After it’s done, click on Create:
Your AD Code is created:

Step 4
Click on Copy snippet:

Click on Copy script:
Your script will be copied to clipboard.
Step 5
The script has been copied to the clipboard. This is your AD Code. The next step is to paste it into your website’s code. You can just insert the AD Code with the container into your web page’s code. We recommend to paste the AD Code into the <head> section while the container should be in the <body>:
for <head>
for <body>
In this instance, the figures within the <div data-nat='6151'></div> represent the AD Spot ID on your website.