Analytics & Reporting

How does real time line item tracking work

Line Item Macros in DV360

Line item macros in DV360 are special placeholder codes (like \( {CAMPAIGN_ID} or \){CLICK_URL}) that you add inside third-party ad tags (e.g., when uploading third-party display or video creatives).

DV360 automatically replaces these placeholders with real values at the moment the ad serves (during an impression or click). This lets third-party ad servers or verification tools track exactly which line item, creative, campaign, user, etc., caused the view or click.

Explanation: How They Actually Work Step by Step

Add a new creative in DV360 - using 3rd party ad tag

You paste a third-party tag into a creative

Example: A tag from your ad server might look like this (fake example):

Click me

You save the creative in DV360

DV360 checks and "wraps" the tag (adds its own tracking if needed). The macro stays as-is for now.

assign that creative to one or more line items

Now the creative is linked to specific line items (each line item has its own ID, targeting, budget, etc.).

An impression or click happens

Someone sees or clicks your ad.

DV360 wins the auction for that specific line item.

Right before sending the ad to the user, DV360 quickly replaces every macro with the real info from that line item.

Example replacements:

The final tag fires with real values

The third-party server receives:

https://thirdpartytracker.com/impression?adv=123&camp=12345678&line=987654321

Now they know exactly which line item delivered the impression/click.

Hence, separate ad tags are not required. Using one ad tags 3rd party ad server tech understands which line item is serving an impression in real time. This only works in real time impressions. If you check the ad in the console it will not trigger the line item.

Key Points to Remember

Back to all guides