Integration & Setup

Adding Third-Party Ad Server Support

Adding Third-Party Ad Service Support

Third-party ad tags typically contain placeholders, known asmacros, which are dynamically replaced by a Demand-Side Platform (DSP) when the ad is served. Below are the key components:

Sample Adtag:-

1.Ad Tag Macros:

The ad tag contains macros such as:

2.Macro Replacement by DSP:

The DSP will replace these macros with actual values when serving the ad:

3.Ad server handling Final Click URL:

After replacing the macros, the ad server forms thefinal click URLby appending the landing page URL to the tracking URL. It then triggers a redirect, sending the user to the target page.Example:

letfinal_click_url = expanded_click_macro + landing_url;window.open(final_click_url,true);// DSP will track clicks and redirect to `redirect` param provided by adserver.

In this example,expanded_click_macrois the fully expanded tracking URL, andlanding_urlis the destination URL for the ad.

Back to all guides