Ad Tags

An ad tag is a piece of HTML code that shows a creative, generally using a third-party ad server. You might receive the code from an agency or generate it yourself using a tool provided by the ad server.

Ad tags are powerful tools. Because the ad tag inserts code into publisher's web pages, there's a potential for trouble if the ad tag isn't properly created. It's very important to test your ad tags thoroughly before using them in a tactic.

Note: Because ad tags are so powerful and can be misused, they are not enabled by default. If you need ad tag support, talk to your customer success team.

Using Ad Tags

Ad tags work like any other creative type. After you add a creative for each ad tag you want to use, that creative can be used by any tactic in the system.  

Macros

When you add a creative, be sure to include the macros you need. These macros insert dynamic data into your ad tag when the impression is delivered, and they're essential for sending data from the DSPto your ad server.

JavaScript

JavaScript ad tags should always include a NOSCRIPT section, which controls what happens if a browser has JavaScript disabled. If your ad tag doesn't deliver an alternative creative when JavaScript is disabled, users won't see anything if they have JavaScript disabled and you may see impression tracking discrepancies (because the impression was delivered and counted, but the impression tracker inside the JavaScript was never deployed).  

Be sure to test both scenarios to ensure the creative is working in all cases. To test the NOSCRIPT section, you can use a browser extension like NoScript. Alternately, view the page source of the preview page, copy everything inside the <NOSCRIPT> ... </NOSCRIPT> tags (but omit the NOSCRIPT tags themselves), and paste on a site like JSFiddle to test it.

Was this article helpful?
0 out of 0 found this helpful