Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

sdk install tracking

Jasmine edited this page May 11, 2021 · 3 revisions

/*
Title: SDK Install Tracking
Sort: 20
*/

To run a cost-per-install (CPI) campaign using the Unity Ads for iOS network, you need to implement an install tracking mechanism to register installs to your application with Unity Ads.

Unity Ads provides ready-made solutions for both client- and server-side install tracking and you should choose the one that suits you best. The recommended method is to use server-side install tracking, as it does not require an app update to be sent to the AppStore.

Available Tracking Parameters

Currently the only user identifier supported by iOS is iOS IDFA - Identifier for Advertising. This is supported only on iOS 6.0.1 onwards. Install tracking is not supported for devices having iOS5 or earlier.

Client-side Install Tracking

If you do not collect any tracking information server-side about your users, you can integrate the install tracking directly to your game. Before you can accomplish this, you need a game ID for your game that you can get from the Unity Ads Admin Panel. The game ID’s are available in the “Advertisers” > “Campaigns” view.

To integrate the install tracking, download the Unity Ads iOS SDK by clicking here.

After you have downloaded the SDK, just drag and drop the UnityAds.framework and UnityAds.bundle into your Xcode project.

Note: You also need to include StoreKit.framework to your project to compile the project. If you are targeting iOS 6, you also need to drag and drop the AdSupport.framework to your project as well.

The next step is to add the UnityAds class to your app delegate. Firstly, you need to include the necessary headers:

#import <UnityAds/UnityAds.h>

Then, to your -application:didFinishLaunchingWithOptions: -method, add the initialization code for Unity Ads by passing your Unity Ads gameId, and your root view controller:

[[UnityAds sharedInstance] startWithGameId:YOUR_GAME_ID_HERE andViewController:myViewController];

Note: Replace the YOUR_GAME_ID_HERE section above with your Unity Ads game ID. You can find this in the Unity Ads Admin Panel under the section “Advertisers > Campaigns”.

That’s it, Unity Ads install tracking is now integrated to your game!

Server-Side Install Tracking

Unity Ads provides server-side install tracking as well. This is described in this document.

If you use a third-party install attribution service (such as HasOffers), please get in touch with us to see if it is supported, by emailing support@applifier.zendesk.com.

Clone this wiki locally