[email protected]| US: +1-800-660-2818 | UK: +44-20-3318-8649 | IL: +972-9-768-1949 | www.appsflyer.com AF iOS SDK version 2.5.3.10 Table of Contents 1. What Is New In this Versio n - IMPORTANT ........................................................................................................... 2 2. Compatibility ......................................................................................................................................................... 2 3. Introduction .......................................................................................................................................................... 2 Initial Steps ......................................................................................................................................................... . 2 4. Embed the SDK into Your A pplication................................................................................................................... 2 iOS SDK API’s.................................................................................................................................... ................... 2 5. SDK initialization ................................................................................................................................................... 2 5.1. Set your App_ID and Dev_Key ...................................................................................................................... 2 5.2. Set currency code (optional) ......................................................................................................................... 3 5.3. Set customer user ID (Advance) .................................................................................................................... 3 5.4. Set HTTPs (Advance) ..................................................................................................................................... 3 6. Installation E vent (minimum requirement to enable tracking) ............................................................................ 3 7. In App Conversion Events Tracking API (optional) ................................................................................................ 3 7.1. Adding Registration/Login Event .................................................................................................................. 3 7.2. Adding Purchase Event ................................................................................................................................. 3 7.3. Adding Custom In-App Event ........................................................................................................................ 4 8. Customer User ID (Advanced) ............................................................................................................................... 4 9. Get AppsFlyer’s Unique Device UID (Advanced)................................................................................................... 4 10. Accessing AppsFlyer Attribution / Conversion Data from the SDK (Deferred Deep-linking) ............................ 4 11. End User Opt-out (Advanced) ........................................................................................................................... 4 12. Explicit opt-out from ID for Advertisers–IDFA/IFA (optional) ..................................................................... 4 13. Testing the SDK Integration .............................................................................................................................. 4
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
8/9/2019 AF IOS Integration Guide v2.5.3.10 New API (1)
Table of Contents1. What Is New In this Version - IMPORTANT ........................................................................................................... 2
4. Embed the SDK into Your Application ................................................................................................................... 2
5.1. Set your App_ID and Dev_Key ...................................................................................................................... 2
5.2. Set currency code (optional) ......................................................................................................................... 3
5.3. Set customer user ID (Advance) .................................................................................................................... 3
5.4. Set HTTPs (Advance) ..................................................................................................................................... 3
6. Installation Event (minimum requirement to enable tracking) ............................................................................ 3
7. In App Conversion Events Tracking API (optional) ................................................................................................ 3
8. Customer User ID (Advanced) ............................................................................................................................... 4
9. Get AppsFlyer’s Unique Device UID (Advanced) ................................................................................................... 4
10. Accessing AppsFlyer Attribution / Conversion Data from the SDK (Deferred Deep-linking) ............................ 4
11. End User Opt-out (Advanced) ........................................................................................................................... 4
12. Explicit opt-out from ID for Advertisers – IDFA/IFA (optional) ..................................................................... 4
13. Testing the SDK Integration .............................................................................................................................. 4
8/9/2019 AF IOS Integration Guide v2.5.3.10 New API (1)
Note: Event name “hotel-booked” will be added automatically to AppsFlyer analytics.
8.
Customer User ID (Advanced)
Setting your own custom ID will enable you to cross-reference your own unique ID with AppsFlyer’s user ID and the
other devices’ IDs. This ID will be available at AppsFlyer CSV reports along with postbacks APIs for cross-referencingwith you internal IDs. The ID must be set during the first launch of the app at the SDK initialization.
// The Customer User ID must be called in SDK initialization before any call to the SDK. See section #5.