-
Notifications
You must be signed in to change notification settings - Fork 8
Getting Started
As you may be aware, with the upcoming introduction of iOS 9, Apple will be urging application developers towards greater security. This is a program called App Transport Security (ATS) and is documented in more detail in an Apple tech note.
Applications built for iOS 9 will be asked to choose one of the following four security models for external resources:
- ATS for all resources (the default)
- ATS for all, with exceptions: the app will allow insecure http requests to a limited set of whitelisted domains.
- ATS disabled, with exceptions: the app will allow insecure http requests to all domains, except for a set of listed domains for which https is required
- ATS fully disabled
Adform Advertising SDK is fully compatible with Apple security requirements and supports ATS, so no additional changes required for that.
In iOS 9 you must whitelist any URL schemes that your App wants to query. Our sdk uses "sms" and "tel" URL schemes to determine if device can send sms and make phone calls. Therefore, to avoid possible problems on IOS9 we recommend you to add "sms" and "tel" schemes to the white-list. To do so, developers should add the following to their plist:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>sms</string>
<string>tel</string>
</array>
The use of Adform SDK requires the following:
- Xcode 6.0 or later.
- iOS SDK 8.0 or later.
- Requires deployment target 7.0 or later
SDK is Automatic Reference Counting (ARC) compliant.
Adform Advertising SDK is now available via CocoaPods. CocoaPods is a very popular Objective-C dependency management tool.
- To use CocoaPods, you should first install the CocoaPods Ruby Gem (CocoaPods is built with Ruby):
$ sudo gem install cocoapods
- Next, you need to create a
Podfile
, which describes what dependencies you project has. This file should be placed in your project directory.
$ pod init
- Next, edit
Podfile
and add the platform identifier and the list of libraries you want to use in the project.
platform :ios, '8.0'
target :test do
pod 'AdformAdvertising'
end
- Finally, you have to install the selected libraries.
pod install
Thats it!
Just dont forget that after installing cocoapods you have to open your project through App.xcworkspace.
For more information about CocoaPods visit CocoaPods site.
- Download the latest build version of Adform Advertising SDK.
- Drag AdformAdvertising.framework to your project.
- When asked select Copy items into destination group's folder.
- Go to your application targets configuration > General > Linked Frameworks and Libraries section and add these frameworks to your project:
- UIKit.framework
- CoreGraphics.framework
- QuartzCore.framework
- AdSupport.framework
- EventKit.framework
- EventKitUI.framework
- MediaPlayer.framework
- CoreTelephony.framework
- SystemConfiguration.framework
- CoreLocation.framework
- CoreMedia.framework
- AVFoundation.framework
- AssetsLibrary.framework
- Finally import AdformAdvertising.h and you are ready to use Adform mobile banners:
#import <AdformAdvertising/AdformAdvertising.h>
- To start coding check basic AdInline integration guide.
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
Mediation adapters