Skip to content
Get Help

Enable MediaMath (New)

Overview ​

MediaMath is a demand-side platform (DSP) whose platform is now operated by Infillion as Infillion MediaMath. Connect MediaMath to Branch to attribute clicks and installs and configure Postbacks.

For more information about integrating ad partners in general, visit our Ad Partner Integration Guide.

Note: this guide is for new Branch

Please note that this guide is about integrating MediaMath in the new Branch experience. For information on MediaMath in legacy Branch, visit our legacy guide.

Partner capabilities ​

CapabilityDetails
Company typeDSP
Deep linkingContact MediaMath for details.
AttributionContact MediaMath for details.
Ad campaign typesContact MediaMath for details.
Ad formatsContact MediaMath for details.
Click typesContact MediaMath for details.
Supported platformsContact MediaMath for details.
Link wrappingContact MediaMath for details.
Cost ingestion supportContact MediaMath for details.
Pricing modelsContact MediaMath for details.

Before you begin ​

To set up the MediaMath integration, you need:

  • Ad partner integrations enabled for your Branch account. Availability varies by Branch plan. See Branch pricing or contact your Branch representative.
  • A Branch account with access to Configuration > Ad Partners and admin permissions to enable and configure integrations.
  • A MediaMath account with admin access. You'll need the following credential, available from your MediaMath account manager: MediaMath Advertiser ID.

Enable MediaMath ​

To begin, navigate to Configuration > Ad Partners > MediaMath.

Enter your MediaMath Advertiser ID, then select Enable MediaMath on the MediaMath page. Contact your MediaMath account manager if you need this value.

Configure attribution ​

To configure attribution windows, select the Attribution windows tab on the MediaMath page.

To minimize discrepancies when comparing Branch and MediaMath reporting, match your Branch attribution windows to the settings in your MediaMath account.

Attribution typeDefaultMediaMath's recommendation
Click to start session1 day90 days
Click to install7 days30 days
Click to conversion event30 days90 days
Impression to start session1 day1 day
Impression to install1 day1 day
Impression to conversion event7 days1 day
Deep linking duration120 minutes—

For more information, follow Configure attribution in the general Ad Partner Integration Guide.

Configure postbacks ​

Enabling MediaMath automatically activates postbacks for INSTALL. The default postback URL template is:

https://pixel-s2s.mathtag.com/event/img?mt_id=${(ad_network.goal_ids["${(name)!}"])!}&mt_adid=${ (ad_network.credentials.mt_adid)! }&mt_uuid=${ (last_attributed_touch_data.~click_id)! }&auction_id=${ (last_attributed_touch_data.auction_id)! }&os_name=${ (user_data.os)! }&os_version=${ (user_data.os_version)! }&device_model=${ (user_data.model)! }&country=${ (user_data.geo_country_code)! }&device_id=<#if (user_data.os)! == "IOS" && (user_data.idfa)! != "">${(user_data.idfa)!}<#elseif (user_data.os)! == "IOS">${(user_data.idfv)!}<#elseif (user_data.os)! == "ANDROID">${(user_data.aaid)!}</#if>&product_id=${(custom_data.product_id)!}&product_name=${(commerce_data.name)!}&product_category=${(commerce_data.category)!}&product_brand=${(commerce_data.brand)!}&product_price=${(commerce_data.price)!}&product_quantity=${(commerce_data.quantity)!}&revenue=${ (event_data.revenue)! }&currency=${ (event_data.currency)! }&ip_address=${ (user_data.ip)! }&campaign_id=${ (last_attributed_touch_data.~campaign_id)! }&secondary_publisher=${ (last_attributed_touch_data.~secondary_publisher)! }&creative_id=${ (last_attributed_touch_data.~creative_id)! }&strategy=${ (last_attributed_touch_data.AD_ATTR.strategy)! }&conversion_timestamp=${ (timestamp/1000)?long }&mmp=branch&v1=${ (event_data.revenue)! }&v2=${ (event_data.currency)! }&attribution_source=<#if (last_attributed_touch_data.$3p)! == (ad_network.machine_name)!>1<#else>0</#if>&mobile_user_agent=${ (user_data.user_agent)! }&limit_ad_tracking=<#if (user_data.limit_ad_tracking)! >1<#else>0</#if>&ex_placement_id=${(last_attributed_touch_data.~placement_id)!}

To add postbacks for additional events or to customize behavior, follow Configure postbacks in the general Ad Partner Integration Guide.

Create a Branch Ad Link to use in your MediaMath campaigns. Branch uses the link to attribute clicks and deep link users into your app.

Follow Create Ad Links.

Verify your data ​

After your integration is connected and events are flowing, you can verify data is reaching Branch:

  • In Branch Liveview: confirm that events from your app appear in real time. This is the fastest way to confirm SDK events are firing.
  • In Branch Analysis dashboards: review attributed installs and events where Ad Partner Name = MediaMath.
  • In MediaMath: confirm that forwarded events are appearing in your MediaMath attribution reporting.

Data mappings ​

Campaign data ​

Branch populates the following fields from MediaMath campaign data.

Branch fieldPartner data
~advertising_partner_name"MediaMath" (static)