Cocoapods
Add AATKit to your app using Cocoapods
Last updated
Add AATKit to your app using Cocoapods
Last updated
CocoaPods is a dependency manager for Xcode projects (Swift and Objective-C). Please refer to cocoapods.org for general information on how to set up Podfiles.
Make sure you have CocoaPods installed: gem install cocoapods
.
In the terminal app, navigate to the project directory and call pod init
to create a podfile
.
Make sure you have an updated copy of the spec repository: pod repo update
.
In your Podfile, add AATKit like the following (see for the latest stable version):
Make sure you have quit Xcode.
In the terminal app, navigate to the project directory and call pod install
.
Now, open the new Xcode Workspace: open ProjectName.xcworkspace
.
Importing AATKit in the project files:
The above steps describe adding AATKit with all its default ad network SDKs.
Please configure your Google Mobile Ads SDK as described here.
To add an optional ad network, you have to add the following to your Podfile:
GraviteRTB
AmazonHB
AATAdMobDSPAdapter (GooglePartnerBidding)
GoogleCMP
Admob (Google AdMob)
BlueStack
AdX (Google AdX)
SuperAwesome
AppLovin
SourcePoint
AppLovinMax
FeedAd
AppNexus
CriteoSDK
PubNative
DFP (Google AdManager)
Inmobi
OguryAds
Prebid
Smaato
SmartAdServer
Unity
Vungle
YOC
Tappx
IronSource
Mintegral
If you would like to remove some ad network SDKs, you need to add AATKit’s core functionality plus the ad networks you’d like to use explicitly. Thus, unwanted ad networks are not getting included. Instead of using the above-mentioned single line pod 'AATKit', '<AATKit_VERSION>'
entry, please enter something like the following example:
The above example will include AATKit-Core, Admob, SmartAd and Facebook SDKs only. It will exclude all other ad network SDKs.