Skip to main content

Singular MMP Integration

Singular MMP Integration

J
Written by Jorge Rubia

Singular is a marketing attribution and analytics platform that unifies campaign data across ad networks, measures ROI, and provides fraud prevention. Integrating Singular with Aftrad allows you to send traffic through Singular-tracked offers and receive postback notifications in Aftrad when installs or in-app events occur.


Overview

The setup consists of two parts:

  1. Configure the offer in Aftrad — map Aftrad macros to the required Singular URL parameters

  2. Configure the postback URL in Singular — set up Aftrad's event endpoint in Singular so it can notify Aftrad of conversions


Part 1 — Configure the offer in Aftrad

Create or edit the offer in Aftrad and set the Singular tracking URL provided by the advertiser as the offer's Tracking URL.

Singular tracking URLs require specific parameters to receive attribution data. Add the following parameters to the URL, using the corresponding Aftrad macros as values:

Singular parameter

Aftrad macro

Description

idfa

{idfa}

iOS Identifier for Advertisers

andi

{gaid}

Google Advertising ID (Android)

psn

{source}

Publisher / source name

pcrn

{creative}

Creative identifier

ve

{os}

Operating system

ip

{client_ip}

User IP address

cl

{click_id}

Aftrad click ID — used by Singular to send postbacks back to Aftrad

psid

{source}

Publisher site ID

pca

{custom1}

Custom parameter 1

source_media_type

{aggregate_id}

Aggregated click ID

ua

{af_ua}

User agent

A typical Singular tracking URL with all parameters would look like:

https://singular.tracking-link.sng.link?[your-offer-params] &idfa={idfa} &andi={gaid} &psn={source} &pcrn={creative} &ve={os} &ip={client_ip} &cl={click_id} &psid={source} &pca={custom1} &source_media_type={aggregate_id} &ua={af_ua}

Not all parameters are required for every offer. Add only the ones relevant to your setup and that Singular is expecting for the given integration.


Part 2 — Configure the postback URL in Singular

In your Singular account, configure Aftrad's postback endpoint as the postback URL for this integration. This allows Singular to notify Aftrad whenever an install or in-app event occurs.

The postback URL to configure in Singular is:

https://[your-event-domain]/api/v1/events?click_id={cl}&event_parameter={EVTNAME}&payout={AMOUNT}

Replace [your-event-domain] with the event domain configured for the Advertiser in Aftrad.

The Singular macros used are:

Singular macro

Aftrad parameter

Description

{cl}

click_id

The Aftrad click ID passed in the original tracking URL — used to match the postback to the original click

{EVTNAME}

event_parameter

The event name as defined in Singular (e.g. install, purchase)

{AMOUNT}

payout

The revenue amount associated with the event

Network-specific click ID format

Singular supports a network-qualified format for the {cl} macro:

{cl?network-name}

Where network-name is the identifier of your network in Singular. Use this format if Singular requires it for your specific integration to ensure the click ID is correctly resolved.


Related articles

Did this answer your question?