The MoPub SDK offers a conversion tracking API that you can use to properly measure the effectiveness of cross-promotions and direct-sold advertisements.
Conversion tracking can be implemented by adding a single line to your application delegate, in
You will need to obtain your iTunes application ID. The easiest way to do this is to use the iTunes Link Maker tool to generate a URL, and extract the number that immediately follows the text “id”. As an example:
- The “HeadingOut” application has an iTunes URL
http://itunes.apple.com/sn/app/headingout/id399903812?mt=8, so its application ID is 399903812.
Next, import the
MPAdConversionTracker.h file in your application delegate, and place the following line in
[[MPAdConversionTracker sharedConversionTracker] reportApplicationOpenForApplicationID:@"<ITUNES_APPLICATION_ID>"];
If your application already reports installs to your own server, you can choose to use our server-side conversion tracking API instead of bundling this logic in your app.
Whenever you want to us to track conversions for you, simply ping the URL:
An example: To report a conversion for the Slide To Unlock application (http://itunes.apple.com/us/app/id359315994?mt=8) with raw IDFA
144C0177-9756-4FB2-8A4B-678BF5BE6220, the API call would look like:
To maintain the accuracy of conversion data on our servers, please limit your conversion calls to one per unique IFA.
The MoPub SDK will automatically record a “session” event whenever your application enters the foreground. If you would like to deactivate this, you can do so by setting the
SESSION_TRACKING_ENABLED flag to 0 in
Last updated February 19, 2018
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2018 MoPub Inc.