Cocoapods

Add AATKit to your app using Cocoapods

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.

Integration Steps

  • 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:

target '<Target Name>' do
  use_frameworks!
  pod 'AATKit', '<AATKit_VERSION>'
end
  • 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:

import AATKit

The above steps describe adding AATKit with all its default ad network SDKs.

Configure Google Ads SDK

Please configure your Google Mobile Ads SDK as described here.

Add An Optional Ad Network

To add an optional ad network, you have to add the following to your Podfile:

pod 'AATKit', '<aatkit_version>' 
pod 'AATKit/SomeOptionalNetwork'

AATKit Default and Optional Ad Networks

Default Ad NetworksOptional Ad Networks / Libraries

GraviteRTB

AmazonHB

AdColony

GoogleCMP

Admob

Bluestack

AdX

SuperAwesome

AppLovin

SourcePoint

AppLovinMax

AppNexus

CriteoSDK

Pubnative

DFP

Facebook

FeedAd

Inmobi

OguryAds

Prebid

Smaato

SmartAdServer

Unity

Vungle

YOC

Tappx

IronSource

Mintegral

Remove ad network SDKs

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:

pod 'AATKit/Core', '<AATKit_VERSION>' 
pod 'AATKit/Admob' 
pod 'AATKit/SmartAd' 
pod 'AATKit/Facebook'

The above example will include AATKit-Core, Admob, SmartAd and Facebook SDKs only. It will exclude all other ad network SDKs.

Last updated