Skip to main content

Postback macros

Daria Mamchenkova avatar
Written by Daria Mamchenkova
Updated over 2 weeks ago

Postback macros

Postback links are the links to pass conversion information to partners. You can update conversion types postbacks and client postbacks with the Affise MMP macros.

The macros for these postbacks are the same as the parameters in the tracking link, for example {affise_ad}, {clickid}, {pid}, etc.

Also, there are some additional macros you can use in a postback.

{event_name}

Event name from the Affise SDK

{action_timestamp} or {event_timestamp}

Time of an event

{ip}

ipv4 / ipv6 address

{country}

Click country

{region}

Click region

{city}

Click city

{timestamp} or {click_timestamp}

Time of a click

{app_id}

Application ID on Affise

{app_name}

Application name

{affise_pkg_app_name}

Application package name

{random_user_id}

Random user ID in Affise SDK

{affise_device_id}

Random device ID in Affise SDK

{timezone}

Timezone (UTC+0400)

{sn_rev}

Net revenue

{sg_rev}

Gross revenue

{pub_click_id}

Click ID

{gaid_adid}

GAID

{adid}

IDFA

{p_customer_user_id}

Customer user ID (affise_p_customer_user_id parameter)

🔍 For any postback, it's possible to get the info if the event is organic or non-organic.
Add &their_is_organic={is_organic} to the postback link, and you'll get 0 - false, which means non-organic event or 1 - true, organic event.

Postback macros for Facebook integration

There are dedicated postback macros that you can use in the integration with Facebook.

{fb_ad_id}

Facebook Ad ID

{fb_ad_objective_name}

Facebook Ad Objective Name

{fb_adgroup_id}

Facebook AdGroup ID

{fb_adgroup_name}

Facebook AdGroup Name

{fb_campaign_id}

Facebook Campaign ID

{fb_campaign_name}

Facebook Campaign Name

{fb_campaign_group_id}

Facebook Campaign Group ID

{fb_campaign_group_name}

Facebook Campaign Group Name

{fb_account_id}

Facebook Account ID

Postback macros for Google Ads integration

There are dedicated postback macros that you can use in the integration with Google Ads.

{google_ad_name}

Google Ad Name

{google_ad_id}

Google Ad ID

{google_ad_type}

Google Ad Type

{google_ad_group}

Google Ad Group

{google_campaign_name}

Google Campaign Name

{google_campaign_id}

Google Campaign ID

{google_click_date}

Google Click Date

{google_ad_event_id}

Google Ad Event ID

{google_conversion_metric}

Google Conversion Metric

{google_timestamp}

Google Timestamp

{google_campaign_type}

Google Campaign Type

{google_external_customer_id}

Google External Customer ID

{google_location}

Google Location

{google_network_type}

Google Network Type

{google_network_subtype}

Google Network Subtype

{google_video_id}

Google Video ID

{google_keyword}

Google Keyword

{google_match_type}

Google Match Type

{google_placement}

Google Placement

{google_ad_group_id}

Google Ad Group ID

{google_ad_group_name}

Google Ad Group Name

{google_creative_id}

Google Creative ID

{google_interaction_type}

Google Interaction Type


Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].

Did this answer your question?