PubMatic
How to target a Classify Deal ID and set up impression tracking in PubMatic Activate.
You'll need a Deal ID from the Segment Activation API and a pixel campaign ID from Pixel Registration before starting.
Adding the Deal ID
Deal targeting in PubMatic Activate is configured at the line item level.
- Log into PubMatic Activate
- Navigate to your Campaign
- Open (or create) the Line Item where you want to target the Classify segment
- Go to the Targeting section
- Under Inventory, find Deals
- Click Add Deal
- Enter your Classify Deal ID or search for it in the deal library
- Select the deal and save the line item
If the Classify deal was pushed through PubMatic's own SSP, it may already appear in your deal library. For deals routed through other SSPs, you'll need to enter the Deal ID manually.
Adding the Classify pixel
Add the Classify pixel as a Third Party Pixel on your creatives.
- Navigate to the Creative associated with your line item
- In the creative settings, find Third Party Pixels or Third Party Tracking
- Select JavaScript as the pixel type
- Paste the full Classify pixel tag with PubMatic macros:
<script src="https://l.csfy.me/je?c={campaign_id}&deal_id=[DEAL_ID]&pub=[PUBLISHER_ID]&inv_domain=[INVENTORY_DOMAIN]&inv_source=[INVENTORY_SOURCE]"></script>
- Save the creative
PubMatic uses [MACRO] bracket syntax. For the full macro reference, see PubMatic's macro documentation and Pixel Code — Macros.
PubMatic click tracker
In addition to the Classify impression pixel, add PubMatic's click tracker to your creatives for complete attribution. Look for the Click Tracker field in your creative settings and add the PubMatic-provided click URL.
PubMatic-specific tips
- Click tracker: Always add the PubMatic click tracker alongside the Classify pixel.
- Formats: Confirm your creative formats (display, video, native) match what's available through the deal.
For general campaign settings (targeting philosophy, cookieless inventory, KPIs), see Best Practices.
Troubleshooting
Deal not delivering:
- Verify the Deal ID is entered correctly
- Confirm the deal is active — check
ttl_hoursin your activation response - Ensure your creative dimensions match the available inventory
- Check that your bid is above the deal floor
Missing macro data in reports:
- Verify macro names are spelled correctly with the
[BRACKET]format - Some macros only expand in certain inventory types — check PubMatic's macro documentation for availability