Integration via Kochava

Overview

Introduction

Criteo serves personalized ads to mobile app users that have a high probability of clicking through and either installing your app or making an in-app purchase. Criteo technology is based on real-time product recommendation optimization and prediction engines.

In order to enable its technology, Criteo needs:

  • App Events - App events and relevant data correctly captured on your mobile app
  • Catalog Feed - A CSV or XML file (called a Catalog Feed) containing product information of a large portion of your mobile app’s offers
  • (For Retargeting) Deeplink and Universal Link capability - Product level deep link capabilities in app to take users to the products they clicked on

About this Guide

This document provides detailed information on the following integration stages:

  • App events and parameters
  • Kochava dashboard configuration, including postbacks
  • Generation of tracking links
  • Catalog feed integration (for product-level ads)
  • Deeplinking & Universal Linking (for Retargeting)
  • Testing process

Integration Steps

The table below describes the steps to follow during this integration.

Steps to Follow Where to Integrate
Integration Questionnaire Client
Integration Kickoff Call Criteo & client technical teams
Dashboard Configuration Client-side or (recommended) on call
(for product-level ads) Catalog Feed Integration Criteo & client technical teams
(only if needed) Criteo Event Integration Client-side
(only if needed) Testing events Criteo & client technical teams
(only if needed) App Submission & Release Client-side
Pre-Launch Checks Criteo
Campaign Launch Criteo (with client’s authorization)

App Events & Data

If you already have Kochava events configured, please skip this section.

To integrate the Kochava SDK and events from scratch, or add additional ones, please expand this section.

Expand

SDK Initialization

Please ensure the ‘language’ parameter in the identity link is the two character language code (lower case) and matches the language of the app to ensure the events are sent to the correct endpoint.

Use the following code snippet at app launch:

NSDictionary *identityLinkDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                                        @"TEST_USER_ID", @"myInternalUserID",
                                        @"1235467890123456", @"service ID",
                                        @"en", @"language",
                                        @"46457bb078c674176a72c3a9ac40ba666244652f1b813f8bd839d529285cfa47", @"email_sha256",
                                        nil];
NSDictionary *initDict = [NSDictionary dictionaryWithObjectsAndKeys:
                              @"REPLACE_WITH_YOUR_KOCHAVA_APP_ID", @"kochavaAppId",
                              @"USD", @"currency", // optional - usd is default
                              @"0", @"limitAdTracking", // optional - 0 is default
                              @"1", @"enableLogging", // optional - 0 is default
                              identityLinkDictionary, @"identityLink", // optional
                              nil];
kochavaTracker = [[KochavaTracker alloc] initKochavaWithParams:initDict];

Events Implementation in the App

Below are examples of the different event types Criteo recommends that you integrate using the Kochava SDK:

Kochava event Description
SessionBegin App open/brought to the foreground
View Listing View of a list of products
View Product View of a specific product
View Basket View of the shopping basket, or an addition made to it
Purchase Purchase of one or more products
Level Achieved User Level (for Gaming apps)
Status User’s Subscription Status (i.e. subscriber, free, premium)
Achievement Unlocked Major milestone reached within a game (for Gaming apps)

SessionBegin

The sessionBegin event should be sent to Kochava with each new session, after Kochava SDK initialization. SessionBegin is a standard event supported by the Kochava SDK.

Use the following code snippet to implement:

[delegate.kochavaTracker trackEvent:@"SessionBegin":@"{}"];

View Listing

The viewListing event should be triggered on pages displaying product lists like a category page or a search results page. You should include in the array the IDs of the top 3 products (it’s fine to include more). These IDs must match those passed in the catalog feed. Note that viewListing is not supported out of the box using Kochava’s SDK and must be implemented as a custom event.

Use the following code snippet to implement:

NSMutableDictionary * viewListing = [[NSMutableDictionary alloc] init];
[viewListing setObject:[NSArray arrayWithObjects:@"1", @"2", nil] forKey: @"product"];

jsonData = [NSJSONSerialization dataWithJSONObject:viewListing options:0 error:nil];

[delegate.kochavaTracker trackEvent: @"viewListing": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

View Product

The View event should be triggered on all product details pages. You should include the ID of the product detailed on the page by the Event Item name, and send the Event Item with the event. It must be the same ID as used in the catalog feed, and must be unique. The Kochava event corresponding to the Criteo Event Type viewProduct is View. View is a standard event supported by the Kochava SDK.

Use the following code snippet to implement:

NSDictionary * viewProduct = @{@"product": @"1"};
jsonData = [NSJSONSerialization dataWithJSONObject:viewProduct options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"View": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

View Basket

The viewBasket event should be triggered on the basket-details pages. You must include the IDs, prices, and quantities of the basket’s products by the Event Items array. Note that viewBasket is not supported out of the box using Kochava’s SDK and must be implemented as a custom event.

Use the following code snippet to implement:

NSDictionary * viewBasket = @{
                @"currency": @"USD",
                @"product": @[
                    @{@"id": @"1",@"price": @"2.95",@"quantity": @"5"},
                    @{@"id": @"2",@"price": @"19.99",@"quantity": @"1"}
                ],
                @"din": @"2026-09-07",@"dout": @"2026-09-10" // optional for Travel booking apps
            };

jsonData = [NSJSONSerialization dataWithJSONObject:viewBasket options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"viewBasket": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];
din/dout parameters are only required for Travel apps (Flights/Hotels/Car Booking) clients.

Purchase

The Purchase event should be triggered on order confirmation pages. You should include a unique transaction ID and place the IDs, prices, and quantities of the products bought in the transaction into the Event Items array. Purchase is a standard event supported by the Kochava SDK.

Use the following code snippet to implement:

NSDictionary * trackTransaction = @{
                @"nc": @"1",
                @"id": @"transaction_id",
                @"currency": @"USD",
                @"product": @[
                    @{@"id": @"1",@"price": @"2.95",@"quantity": @"5"},
                    @{@"id": @"2",@"price": @"19.99",@"quantity": @"1"}
                ],
                @"din": @"2026-09-07",@"dout": @"2026-09-10" // optional for Travel booking apps
            };

jsonData = [NSJSONSerialization dataWithJSONObject:trackTransaction options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"Purchase": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

Level Achieved

The userLevel event allows Kochava to identify the highest level achieved by a user. This event is specific to Gaming vertical. It should be triggered every time the user levels up. userLevel is a standard event supported by the Kochava SDK.

Use the following code snippet to implement:

NSDictionary * userLevel = @{@"ui_level": 5};
jsonData = [NSJSONSerialization dataWithJSONObject:userLevel options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"userLevel": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

Status

The userStatus event allows Kochava to identify a user’s subscription status (free, subscriber, premium). This event should be triggered to initialize user’s status, and every time when user status changes. Note that userStatus is not supported out of the box using Kochava’s SDK and must be implemented as a custom event.

Use the following code snippet to implement:

NSDictionary * userStatus = @{@"ui_status": @"subscriber"};
jsonData = [NSJSONSerialization dataWithJSONObject:userStatus options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"userStatus": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

Achievement Unlocked

The achievementUnlocked event allows Kochava to identify wheter a user has reached a specific milestone within the game. achievementUnlocked is a standard event supported by the Kochava SDK.

Use the following code snippet to implement:

NSDictionary * userAchievement = @{@"ui_achievement": @"Gold_Medal"};
jsonData = [NSJSONSerialization dataWithJSONObject:userAchievement options:0 error:nil];
[delegate.kochavaTracker trackEvent: @"achievementUnlocked": [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]];

Clients have the option of sending Criteo the email address of app users when available. This will enable the cross-device Criteo targeting feature.

Expand

To generate an SHA256 hash of an email address:

  1. Convert all characters to lower case
  2. Remove any blank spaces
  3. Convert to UTF-8
  4. Hash using SHA256 algorithm


The email can be sent to Criteo by associating with the identity link during SDK initialization.


Use the following code snippet below as an example on sending SHA256 hashed email.

kTracker = new Feature(getApplicationContext(), datamap);
NSDictionary *identityLinkDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                          @"CriteoKochavaTest", @"myInternalUserID",
                          @"1235467890123456", @"service ID",
                          @"en", @"language",
                          @"46457bb078c674176a72c3a9ac40ba666244652f1b813f8bd839d529285cfa47", @"email_sha256",
                          nil];

NSDictionary *initDict = [NSDictionary dictionaryWithObjectsAndKeys:
                          @"komobile-in--app-events5565020f2e19b",
                          @"kochavaAppId",
                          @"USD", @"currency", // optional - usd is default
                          @"0", @"limitAdTracking", // optional - 0 is default
                          @"1", @"enableLogging", // optional - 0 is default
                          identityLinkDictionary, @"identityLink",
                          nil];

Kochava’s SDK also allows client apps an option to send email in clear text. Kochava servers will hash this email address before forwarding it to Criteo.


Use the following code snippet as an example of how to send raw email addresses:

kTracker = new Feature(getApplicationContext(), datamap);
NSDictionary *identityLinkDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
                          @"CriteoKochavaTest", @"myInternalUserID",
                          @"1235467890123456", @"service ID",
                          @"en", @"language",
                          @"kochava@criteo.com", @"email_raw",
                          nil];

NSDictionary *initDict = [NSDictionary dictionaryWithObjectsAndKeys:
                          @"komobile-in--app-events5565020f2e19b",
                          @"kochavaAppId",
                          @"USD", @"currency", // optional - usd is default
                          @"0", @"limitAdTracking", // optional - 0 is default
                          @"1", @"enableLogging", // optional - 0 is default
                          identityLinkDictionary, @"identityLink",
                          nil];

Kochava Dashboard Configuration

Adding the ‘Criteo New’ Network

To add ‘Criteo New’ as a partner on Kochava’s dashboard:

  1. Login to Kochava Dashboard
  2. Select your App
  3. Under App Configurations, go to the Partner Configurations tab
  4. Click Add Configuration button

 

Finally, input 'Criteo New' into the Media Partner text field and select the 'Criteo New' network option when it appears below the text field. To save Criteo as a partner, click on the Go button.

 

Configuring Criteo Postbacks

Once the partner is configured, postbacks can be setup for each event type.

  1. Expand the ‘Criteo New’ module and go to the Postbacks tab.

  2. Install is automatically listed and its status is Configured Postback, however, it still needs additional setup (please see step 4 below for details). SessionBegin and the other post-install events will be listed once received by Kochava. All the events (except Install) are initially in status Active Event, meaning the postback is available but is not sending to Criteo yet. Once a postback is configured, its status becomes Configured Postback.

  3. Click the + icon next to an event to create a postback for it.

    • The postbacks need to be configured for: Install, SessionBegin, and all other relevant events for the campaign, such as post-install KPI events.
    • For Retargeting, it’s highly recommended to also postback the key stages of the purchase funnel (for a retail app this would be events similar to SessionBegin, Search/Category Results, Item Details, Add to Cart, Basket View, Purchase Confirmation).

  4. All the following settings are required for postbacks to function well:

    • CRITEO BUNDLE ID: Unique bundle ID of the app (this uniquely identifies the app to Criteo)

    • SEND ALL EVENT DATA: Switch the toggle ON to send all data to Criteo. Essential for harnessing Criteo’s machine learning at its full potential (predictive bidding and product recommendations), and useful for other use cases such as audience segmentation and custom reporting.

    • DELIVERY DELAY: Select Realtime Delivery

    • DELIVERY METHOD: Select All to send attributed, unattributed and organic events to Criteo. Essential for the same machine learning purposes mentioned above, and also to better suppress installed users from your App Install campaigns.

    Then, click Save.

    For Install, there is no Send All Event Data option to toggle.

Attribution Settings - Partner Level

  1. Under App Configurations, go to Partner Configurations
  2. To the right side of the ‘Criteo New’ module, select the three-dots menu
  3. Click Reconciliation

  4. Configure the windows below according to your attribution model, or these suggested defaults:

  • [Optional] Impression Reconciliation
    The Impression Reconciliation settings control how Kochava attributes installs/conversions to impression (view-through) ads when no click is available.

    • Device Lookback - Uses a device identifier to match an ad impression to an install/conversion. If the install/conversion happens within 24 hours after the impression, attribution is allowed.
    • Fingerprint Lookback - Uses device fingerprinting when a device ID isn’t available. Attribution is allowed if the install/conversion occurs within 24 hours of the impression.
    • IP Lookback - Matches users using only the full IP address. Disabled here, meaning Kochava will not use IP-only matching for impression attribution.
    • Partial IP Lookback - Uses a less precise version of the IP address. Disabled to avoid less accurate attributions.
    • Device Attribution Behavior - Setting it to Standard means that Kochava uses its default attribution logic and prioritization rules.
    Setting up Impression based attribution is optional and should be enabled only if taken into account.

  • Click Reconciliation
    The Click Reconciliation settings control how Kochava attributes install/conversions to actual ad clicks.

    • Device Lookback - Uses device IDs to match clicks to installs/conversions. If the install/conversion happens within 30 days after clicking the ad, attribution is allowed.
    • Fingerprint Lookback - Uses fingerprinting when device IDs aren’t available. Attribution is allowed if the install/conversion occurs within 7 days after the click.
    • IP and Partial IP Lookback - Set to disabled means that Kochava won’t use IP-only or partial-IP matching for click attribution.
    • Device Attribution Behavior - Setting it to Standard means that Kochava uses its default attribution logic and prioritization rules.
    • Fingerprint Attribution Behavior - Setting it to Standard means that Kochava uses its default fingerprint attribution logic. No special prioritization or custom matching rules.

Install Tracking

Click to Expand

  1. Add Tracking to the Campaign

    • Log in to Kochava
    • Select the desired App
    • Go to Engagement > Campaign Manager
    • Click ‘Add a Tracker’ or Select Segment > ‘Add a Tracker’

  2. Set the Tracking

    • Required:

      • Select Campaign
      • Select Segment
      • Set Tracker Name
      • Select Tracker Type: Acquisition
      • Select Media Partner: Criteo New - iOS
      • Check the box for Share with Publisher
      • Set Destination URL: Custom / Landing page / Google Referrer

    • Optional:

      • Agency Partner
      • UTM Parameters
      • Custom Parameters
      • Pricing

  3. Copy Click URL and Impression URL

Retargeting Tracking

Click to Expand

  1. Add Tracking to the Campaign

    • Log in to Kochava
    • Select the desired App
    • Go to Engagement > Campaign Manager
    • Click ‘Add a Tracker’ or Select Segment > ‘Add a Tracker’

  2. Set the Tracking

    • Required:

      • Select Campaign
      • Select Segment
      • Set Tracker name
      • Select Tracker Type: Reengagement
      • Select Media Partner: Criteo New - iOS
      • Check the box for Share with Publisher
      • Set Destination URL: Custom / Landing page / Google Referrer

      • Select Event(s) for Reengagement: ‘All’
        (if All is not selected and an event is not in the list, Criteo will not be able to effectively optimize toward the KPI events).

    • Optional:

      • Agency Partner
      • UTM Parameters
      • Custom Parameters
      • Pricing

  3. Set a custom lookback window

    • Tracker-level lookback windows can be set within Power Editor –> Tracker Overrides, however this is a paid feature of Kochava.
  4. Copy Click URL and Impression URL and send to your Criteo contact

Catalog Feed

A catalog feed is an XML or a CSV file containing product information (name, price, deep link, image link…) that allows Criteo to dynamically generate product-level banners tailored to each user. Therefore, it is important to keep this file up to date in order for Criteo to show the right data in your banners.

The following points need to be kept in mind:

  • Each product must have a unique ID that must be identical to the one passed in the events.
  • The catalog feed must contain all or at least most of your apps’ products for Retail apps, and hotels/airline routes for Travel apps.
  • Recommended image resolution is 300x300 pixels to 400x400 pixels.

Note: In some instances (i.e live campaigns on mobile web or desktop), Criteo will already have the catalog feed.

For more information, please request the dedicated guide from your contact.

Universal Links & Deeplinks

Deep linking consists of a hyperlink that links to a specific, generally searchable, or indexed piece of content on an App.

Criteo requires custom native deeplinks to run a App campaign utilizing dynamic creative. These deeplinks use a custom protocol (e.g. sampleadvertiser:// ) and, in most cases, optional parameters. The optional parameters may consist of a path and/or query parameters. (e.g. sampleadvertiser://product/sku123 or sampleadvertiser://product?sku=123).

For iOS, we also strongly recommend Advertisers use Universal Links. For Universal Links, when users click a banner, they’ll be seamlessly redirected to your app without going through Safari. If the app isn’t installed, clicking the App banner will take them to your mobile website in Safari. For more information on Universal Links, please see Apple’s Supporting Universal Links article.

Criteo requires two kinds of Universal Links & custom native deeplinks:

  1. Opens to the homepage of the App.
  2. Opens to each product-details page.

Pass deep link events to Kochava using this method. After receiving the URI from your application via openURL:(NSURL *)url sourceApplication: in your application delegate, just pass the url and sourceApplication parameters to the sendDeepLink method. You can learn more about deep linking for iOS here.

Following is the sample code to capture and forward deeplink to Kochava:

-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(nonnull id)annotation {
    [KochavaTracker.shared sendDeepLinkWithOpenURL:url sourceApplicationString:sourceApplication];

    return YES;
}

Note that you will also need to register your URL scheme. Information can be found here.

Testing process

Once all events and postbacks have been implemented, you should contact your Criteo representative to begin the testing phase.

If you are adding/updating Kochava app events, this will require a release to the app store. In this case, please allow sufficient time (at least a week) for testing prior to the app submission in order to ensure that the data you are sending is complete.

Criteo requires the following elements:

  • App build to test the collection of events on Criteo side.
  • If testing remotely, the IDFA of the test device.
  • (For Retargeting) Deeplink and Universal Link examples - homepage & product details page.