Help Center Manage Your Account Ad Tag
What is the serving code or ad tag?
Ad Tag (serving code, invocation code) is a small piece of HTML code that you copy and paste into your web pages where you want to display advertising.The ad tag looks like this:
<!-- Ad Tag 8.1 - Standard HTML Code -->
....
<!-- End -->
There are two types of ad tag. You can get the ad tag for each zone or for each ad:
Generate the Ad Tag
- Sign into your account, follow the menu Ads/All or Zones/All
- Click on an ad or a zone name
- Click on the Ad Tag tab
- On this page, you can change ad serving settings and the HTML serving code will be generated so that you can copy and paste it into your website. Please note that ad serving settings do not automatically affect any existing ad tags already on your website.
The advanced settings will help you set up: ad spot number, number of ads, reloading ad automatically after a number of seconds, SSL security, turning off error messages, generating XHTML compliant code and Custom Parameters.
Performance
Performance can be different between ad tag formats. JavaScript ad tag will be loaded in sequence within the web page's HTML code while IFrame ad tag will be loaded independently (or in parallel) with the rest of the page. For multiple ad placements, the fastest and best method is loading multiple zones within a single request. Learn more about additional ad tag formats.You can use one ad tag to serve ads of any dimension and mixing multiple ad dimensions together. Press Ctrl/Command key and select the dimension(s). Text link ads can also be mixed with image ads.
Other Articles in Ad Tag
This section describes the ad tag (serving code) with basic and advanced settings. It includes common ad serving setup instructions and answers frequently asked questions when integrating the ad tag into your site, blog or app.
- Accelerated Mobile Pages Project - AMP Ad Tag
- Can I have ads refresh automatically without a page reload?
- How can I avoid document.write warning in Chrome?
- How can I avoid duplicate ads on the same page?
- How can I combine multiple ads in the same placement?
- How can I defer ads until after the page has finished loading?
- How can I display an ad only when it is visible on screen?
- How can I measure ad viewability?
- How can I mix ad dimensions or mix banners with text-link ads?
- How can I put ads into my blog/website?
- How can I serve multiple ad dimensions in the same place?
- How can I serve multiple zones with a single server request?
- How can I support click tracking for external ad servers?
- How can I turn off ad serving error messages?
- How do I add current timestamp into the serving code?
- How do I display mobile ads using Android WebView?
- How do I display mobile ads using Apple iOS WKWebView?
- How do I integrate AdSpeed mobile ad serving API?
- How do I make ads responsive on mobile devices?
- How do I pass custom data and variables into the ad?
- How do I set up advertising on WordPress?
- How do I setup a companion ad in video ad serving?
- How do I setup a passback ad tag?
- How do I switch to secure SSL/https ad serving?
- Should I use protocol-relative URLs in ad tags?
- What are custom ad serving settings and variables?
- What are different formats of serving code?
- What are different types of ad tag?
- What are the effects of ad blocking software?
- What is the pop-up and pop-under ad tag?
- What is WMODE for SWF ads? How can I change it?
- Where is the publisher-side file for iframe busting?
- Why doesn't the provided HTML serving code work?
Cannot find an answer for your question? Ask our Customer Care team
Related
- Ad Tag and Serving Code
"Rotating Multiple Ads or Serving One Specific Ad You can choose between two types of rotation: rotate multiple ads within ..."
- How can I serve multiple ad dimensions in the same place?
"When generating the serving code for a zone, you can choose to display: Any dimension (default) A specific dimension. For ..."
- What are different types of ad tag?
"There are 2 types of ad tag: for each Zone and for each ad. For a specific Zone This ad ..."
- How can I serve multiple zones with a single server request?
"This method is highly recommended if you have 3 or more ad placements on a page. It combines all ad ..."
- Skin Background Ad
"A skin ad (also called a background ad, a site takeover ad, or a bookend ad) appears in the background ..."
in Ad Gallery