Skip to main content
The PubMatic Conversions API (CAPI) Connector sends conversion events from Narrative to PubMatic, enabling PubMatic to attribute conversions back to ad campaigns and optimize delivery against real outcomes.

Overview

The connector routes conversion data — purchases, signups, site visits, and more — from any dataset in Narrative to a PubMatic advertiser. Events are matched using hashed emails and mobile advertising IDs alongside your own user identifier. Unlike API-based conversion connectors, PubMatic ingests conversions as files: Narrative writes your events to compressed CSV files following PubMatic’s conversion data contract and uploads them to PubMatic over SFTP on a schedule you configure. One file is produced per advertiser. The Conversions API is a second interface of the same PubMatic app that delivers audience segments — one installed connector, one profile, two delivery paths.

Guides

Sending Conversion Events to PubMatic

Connect a dataset of conversion events

Prerequisites

  • A PubMatic advertiser account. The advertiser ID is the numeric ID your events route to.
  • A Narrative dataset containing the conversion data you want to send.

The pubmatic_conversion_event attribute

The pubmatic_conversion_event attribute is Narrative’s standardized Rosetta Stone schema for conversion events sent to PubMatic. When you map your dataset columns to this attribute, Narrative handles transformation, file generation, and SFTP delivery following PubMatic’s conversion data contract.

Top-level fields


Supported user identifiers

In addition to the pubmatic_conversion_event attribute, your dataset must include at least one of the following Rosetta Stone identifier attributes. They are delivered alongside your user_id as external user identifiers, which PubMatic uses to match the event to users.
Hashed identifiers must use SHA256. See Hashing PII for Upload for formatting requirements.

Reference

Event types

The event_type field accepts the following values.

File delivery

Events are written as gzip-compressed CSV files following PubMatic’s conversion data contract and uploaded to PubMatic’s SFTP endpoint:
  • Events are grouped by advertiser_id — one file per advertiser, with all event types mixed in the same file.
  • Files larger than 500 MB uncompressed are split into multiple files.

Privacy signals

PubMatic requires a privacy signal on every event. Each privacy entry carries a regulation type (e.g., gdpr, ccpa), whether it is_applicable to the event, and the associated consent_string. Include one entry per applicable regulation.

PubMatic Connector

Deliver audience segments to PubMatic for programmatic advertising

Meta Conversions API Connector

Send conversion events to Meta

Data Activation Overview

Understand how connectors deliver data

Hashing PII

Prepare identifiers for delivery