-
Notifications
You must be signed in to change notification settings - Fork 8
Location Tracking
Adform Advertising SDK has the ability to track user location and serve advertisement based on its current position. This feature is enabled globally through AdformSDK class singleton object. By default user location tracking is disabled. This setting doesn't persist between application launches, therefore you need to enable location tracking on every app launch. The best place to do this is application:didFinishLaunchingWithOptions: application delegate method.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
AdformSDK.setAllowUseOfLocation(true)
return true
}It is important that you define NSLocationWhenInUseUsageDescription key in your application's info.plist file, if you don't have one. Otherwise, location tracking won't work. You should set its value to "Your location will be used to show relevant ads nearby." or its translation.
Basic integrations
- Integrating Inline Ad
- Integrating Full Screen Overlay Ad
- Integrating AdHesion Ad
- Integrating Interstitial Ad
- Video Ad Integration
- Debug mode
- Troubleshooting
Advanced integrations
- Advanced Inline Ad Integration
- Integrating Inline Ads in UITableView
- Advanced Full Screen Overlay Ad Integration
- Advanced Interstitial Ad Integration
- Instream Video Ads
Other
- Adding Custom Values
- Adding Keywords
- Adding Key Value Pairs
- Adding Search Words
- Location Tracking
- Security
- Ad Tags
- Header Bidding
- Changing ADX Domain
- Specifying banner loading behaviour
- Customizing in app browser
- GDPR
- US Privacy
- Localization
- In app deeplinks
- Native Ads
- OpenRTB Taxonomy parameters and Multibid