> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/ios-integration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/ios-integration/start/setup/cocoapods.md).

# Cocoapods

CocoaPods is a dependency manager for Xcode projects (Swift and Objective-C). Please refer to [cocoapods.org](http://cocoapods.org/) for general information on how to set up Podfiles.

### Integration Steps <a href="#integration-steps" id="integration-steps"></a>

* 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 [release notes](https://aatkit.gitbook.io/release-notes/) for the latest stable version):

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

{% tabs %}
{% tab title="Swift" %}

```swift
import AATKit
```

{% endtab %}

{% tab title="Objective-C" %}

```
#import <AATKit/AATKit.h>
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
The above steps describe adding AATKit with all its default ad network SDKs.
{% endhint %}

### Configure Google Ads SDK <a href="#add-an-optional-a-d-network" id="add-an-optional-a-d-network"></a>

Please configure your Google Mobile Ads SDK as described [here](/ios-integration/ad-networks/google-mobile-ads-sdk.md).

### Add An Optional Ad Network <a href="#add-an-optional-a-d-network" id="add-an-optional-a-d-network"></a>

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 <a href="#aatkit-default-and-optional-a-d-networks" id="aatkit-default-and-optional-a-d-networks"></a>

| Default Ad Networks     | Optional Ad Networks / Libraries |
| ----------------------- | -------------------------------- |
| GraviteRTB              | AmazonHB                         |
| Google Partner Bidding  | Teads                            |
| Admob (Google AdMob)    | DisplayIO (Display.io)           |
| DFP (Google AdManager)  | AppHarbr                         |
| AppLovin                | UTIQ                             |
| AppNexus (Xandr)        | GoogleCMP                        |
| Inmobi                  | SourcePoint                      |
| Mintegral               | AppConsent (SFBX)                |
| PubNative               |                                  |
| Tappx                   |                                  |
| Unity                   |                                  |
| Vungle                  |                                  |
| IronSource              |                                  |
| Prebid                  |                                  |
| Meta Bidding            |                                  |
| Moloco Bidding          |                                  |
| Vungle Bidding          |                                  |
| Digital Turbine Bidding |                                  |

### Remove ad network SDKs <a href="#add-or-remove-a-d-network-sdks" id="add-or-remove-a-d-network-sdks"></a>

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/Unity' 
pod 'AATKit/Vungle'
```

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