Untitled UI logotext
Solutions
Arrow down icon
Products
Managed with Fuse
Fuse Enterprise
Technology
Fuse icon in black
Fuse
Fuse Platform
Use Cases
Using AdSense
Retail Media
Existing Ad Management
Direct and programmatic
Case Studies
Auto
Forum
Puzzle
Weather
Editorial
News
Tool
All
See all
Resources
Arrow down icon
Resources
AdTeach
Blog
Ad Formats
Ultimate Core Web Vitals Guide for Publishers
We chat with James Nielsen, Publift's Head of Onboarding, about Core Web Vitals (CWV), why it's important for publishers, and what they can do to optimize their CWV health.
Watch now
Forward arrow icon in white with black background
Best High CPM Ad Networks for Publishers in 2024
Wondering which is the best high CPM ad network? Here is a list of the best high CPM ad networks in 2024.
Read now
Forward arrow icon in white with black background
About
Arrow down icon
About
About Publift
How It Works
Customer Experience
Careers
Newsroom
Book a demo
User iconSearch icon
Solutions
Down arrow icon
Products
Managed with Fuse
Fuse Enterprise
Technology
Fuse technology icon in white
Fuse
Use Cases
Using AdSense
Retail Media
Existing Ad Management
Direct and programmatic
Case Studies
Auto
Forum
Puzzle
Weather
Editorial
News
Tool
All
Resources
Down arrow icon
Resources
AdTeach
Blog
Ad Formats
Ultimate Core Web Vitals Guide for Publishers
We chat with James Nielsen, Publift's Head of Onboarding, about Core Web Vitals (CWV), why it's important for publishers, and what they can do to optimize their CWV health.
Watch now
Forward arrow icon in white with black background
Best High CPM Ad Networks for Publishers in 2024
Wondering which is the best high CPM ad network? Here is a list of the best high CPM ad networks in 2024.
Read now
Forward arrow icon in white with black background
About
Down arrow icon
About
About Publift
How It Works
Customer Experience
Careers
Newsroom
Book a demo
Book a demo
User iconSearch icon
Book a demo
User iconSearch icon
Close icon to exit the modal
Search icon
Close icon to exit the modal
Sign up to Publift Scoop
Subscribe to the Publift newsletter for all the latest news, updates and insights from across the industry.
Adtech Industry
All

Ultimate Guide to Ad Tags

An ad tag is a piece of code that is inserted within a web page to define where and what ad will be displayed. Here is everything digital publishers need to know about ad tags.

Brock Munro
5
mins read
September 18, 2024
Share
Facebook Twitter LinkedIn Email
Facebook
Editorial Policy
Learn more
Our content is crafted through collaboration amongst our team of experts, or "Publifters," combined with ongoing research into the latest industry updates. To effectively support publishers, we follow a meticulous process for every piece of content we create, whether it's a blog, case study, or video.
contents
Contents

What Is an Ad Tag?

Third party ad tags, also commonly referred to as creative tags or placement tags, are pieces of source code written in either HTML or JavaScript code, which, when inserted into a web page, send a request to the ad server to serve the ad as requested.

Ad tags facilitate the placement of the right ad, to the right user at the right time, all while enabling digital publishers to track ad engagement and measure and record critical metrics.

Ad tags include a wide range of details about the ad units, including their size, format, basic page info, and user data.

Uses of Third Party Ad Tags

Ad tags can be leveraged by a variety of users in the digital advertising ecosystem for various purposes. 

For example:

  • Publishers use ad tags to sell inventory to multiple advertisers and ensure that only relevant ads are shown on their websites. Ad tags allow publishers to serve different ads on one placement, according to the advertiser's targeting preferences.
  • Advertisers receive ad tags from publishers to direct the browser to the ads that comply with the publisher's requirements. The tag will include basic information about the user, such as their location, browser, and carrier.
  • Ad servers who manage the ad serving process from start to finish will encounter ad tags across the entire workflow, connecting publishers and advertisers based on these creative tags.
  • Third-party services (like data management platforms) utilize ad tags to extract user data and create user profiles for use in future campaigns. 

How does an Ad Tag Work and What does The Ad Serving Process Look Like?

An ad tag works in the following way:

  1. Firstly, when a user opens their browser and navigates to a publisher's site, an ad tag code is called, with a signal then being sent to the ad server to find a suitable creative ad unit.
  2. A bid request is then sent to the data provider to get further user details (geolocation, age, and gender) for user targeting purposes. The data provider then returns the request with creative appropriate to the user, ad dimensions, and format.
  3. The ad server then sends this on to advertisers, and a bidding process will occur. Once this is complete, the advertiser will send the creative to the ad server.
  4. Finally, the ad server places the creative on the user's browser to fill the ad inventory space.

Types of Ad Tags

There are two main types of ad tags, synchronous ad tags, and asynchronous ad tags.

Synchronous ad tag: As the name suggests, a synchronous ad tag will load simultaneously to the rest of the webpage. When synchronous ad tags are used, if the tag is rejected or another technical issue occurs, this can significantly slow down page load time. 

In this case, the browser will continue to send requests to the ad server, which in some cases may mean the page will fail to load altogether, diminishing the page's user experience considerably. Due to this fact, many publishers prefer to use asynchronous ad tags.

Asynchronous ad tag: Advertising creative invoked by asynchronous ad tags loads separately to the rest of the web page, offering a significant advantage over synchronous tags. This means the ad tag does not affect the website load time. 

For this reason, Google AdSense uses asynchronous code by default. However, publishers can choose to use synchronous ad tags if they so choose.

What does an Ad Tag Look Like?

Modern digital ad tags are encoded in JavaScript code and consist of a URL from which the applicable browser will request content and info about the placement of the ad.

Synchronous Ad Tags source code will appear like the following example:

<script type="text/javascript">

/*<![CDATA[*/

supp_key = "001b3058ceb2d3effb32e1e548bee49c";

supp_time = new Date().getTime();

supp_channel = "";

supp_code_format = "ads-sync.js";

supp_click = "";

supp_custom_params = {};

/*]]>*/

</script>

<script type='text/javascript' src='//n101adserv.com/js/show_ads_supp.js?pubId=10471'></script>

‍

Conversely, an asynchronous ad tag source code snippet will appear like the following example:

<!-- BEGIN TAG - HEAD -->

<script type="text/javascript">

/*<![CDATA[*/

if(!(window.SuppConfig && window.SuppConfig.ads)) window.SuppConfig = {ads:[]};

SuppConfig.ads.push({

supp_key:"001b3058ceb2d3effb32e1e548bee49c",

supp_channel: "",

supp_code_format:"ads-async.js",

supp_click:"",

supp_custom_params:{},

supp_target_id:"supp-001b3058ceb2d3effb32e1e548bee49c-300x250"

});

(function () {

var sc = document.createElement("script");

sc.type = "text/javascript";

sc.async = true;

sc.src = (location.protocol == "https:" ? "https:" : "http:") + "//n101adserv.com\/js\/show_ads_supp.js?pubId=10471";

var s = document.getElementsByTagName("script")[0];

s.parentNode.insertBefore(sc, s);

})();

/*]]>*/

</script>

<!-- END TAG - HEAD -->

<!-- BEGIN TAG - BODY -->

<div id="supp-001b3058ceb2d3effb32e1e548bee49c-300x250"></div>

<!-- END TAG - BODY -->

The structure of a DoubleClick Ad Tag with the most commonly used key-value pairs will look like this:

Double Click Ad Tag Example

The above ad tag, or placement tag, can be broken down into its various elements to understand how the ad request works.

http://ad.doubleclick.net/ 

This part of the URL indicates that in this case, the ad server hosting the ad for the publisher is DoubleClick.

ADJ/

This section of the tag indicates the ad format requested by the ad unit. In this case, it is ADJ which is for image or XML files.

publisher/

This part of the URL instructs the ad servers - in this case, DoubleClick - to verify whether the 'publisher' is part of the DoubleClick network and whether to proceed with the ad requests.

zone/

This information allows publishers control over targeting their users.

topic=abc

This information informs the ad server as to the topic of the ad. An example here may be 'beauty’.

sbtpc=def

This refers to the subtopic of the ad tag. This allows an advertiser to get even more specific with their ad request. If we follow the above example, the subcategory may be 'skincare'.

kw=xyz 

This contains the keyword for the required ad creative. Multiple keywords can be used. For example, 'cleanser' and 'moisturizer'.

tile=1

This variable is the unique value for each ad call on a specific web page. If more than one tile appears with the same value, then the same ad will be displayed on both.

slot=728×90.1

This orders the ad slots on the web browser. If there are two-leaderboard (728×90) ad units on a page, these ad units will be assigning them numbers (like 728×90.1 and 728×90.2).

sz=728×90

Quite simply, this defines the size of the ad unit.

ord=7268140825331981

A random number is assigned to the ad tag to prevent the browser from showing the same ad rendered from the browser cache. This helps to ensure users see different ad content as they move around the web.

How to Generate an Ad Tag

While there are numerous ad servers and multiple ways that an ad tag can be created, the most common method is through the use of Google Ad Manager.

Web developers can generate ad tags in Google Ad Manager by following these steps:

  1. Firstly, you should log into your Google Ad Manager account.
  2. Next, click on the Inventory tab in the table of contents and navigate your way to the Ad Unit section, which can be found in the left panel.
  3. After selecting the ad unit for which you want to create an ad tag, click Generate Tags.
  4. This will present you with multiple options for the type of tags you would like to use,

including: Google publisher tag, mobile applications, audience pixel tag, accelerated mobile pages tag. Select the tag you wish to generate and continue.

  1. You can also append the tag with features and key values if required. 
  2. Once this is complete, the ad tag can be pasted directly into the source code of your intended web page.

When it comes to display advertising, understanding ad tagging is essential for publishers, advertisers, and ad networks in the ad serving process.

If you’re making more than $2,000 in monthly ad revenue, contact us today to learn more about how Publift can help increase your ad revenue and best optimize the ad space available on your website or app.

Share
Facebook Twitter LinkedIn Email
Facebook
Written by
Brock Munro
Brock is the Head of Product & Yield at Publift. He has been a pioneer in the business since he began his adtech journey in 2016. From starting as an Account Manager to now leading the Yield Management team, direction of our Product, and being in the industry for close to a decade, Brock has been able to observe the evolution of adtech and hone a deep understanding of the ecosystem.
Follow
Linkedin

Related

Publift Supported Identity Solutions

Discover how Publift’s identity solutions help publishers maintain ad revenue and relevancy in a cookie-less world using first-party data and contextual targeting.

All
All
Company Updates
All
Brock Munro
mins read
Best Affiliate Marketing Strategies To Follow In 2024

Improve your affiliate marketing game in 2024 by using effective strategies to increase revenue and engage your audience.

Insights
All
Publishers
All
All
All
Brock Munro
16
mins read
Back to all articles

Are you ready to power-up?

Get started

Publift Scoop

Publift Scoop

Sign up to the Publift newsletter for all the latest news, updates and insights from across the industry.
Sign up
Publift logo
Where you'll find us
Dublin

Level 2, Park House, 

Frascati Road,
Blackrock,
Dublin, Ireland
Sydney
Level 1, Building 5, 

The Mill 41-43 Bourke Rd

Alexandria, NSW 2015,
Australia
Product
Fuse TechnologyManaged with FuseFuse Enterprise
Use Cases
Direct and programmatic
Existing Ad Management
Retail Media
Using AdSense
Resources
AdTeachBlogAd FormatsCase StudiesJargon GlossaryFAQs
About
About PubliftHow It WorksCustomer ExperienceCareersNewsroomBook a DemoContact Us
Calculators
Conversion Rate Calculator
eCPM Calculator
CPM Calculator
CPA Calculator
CPC Calculator
CTR Calculator
Follow Us
LinkedInX(Twitter)FacebookInstagramYouTube
Privacy PolicyCookie NoticeTerms of Service