IOS CocoaPods Support
Integrating and updating the Mobile Ads SDK just got easier. The Mobile Ads SDK is now available through CocoaPods. CocoaPods is a popular library dependency manager for various Apple OS platforms, including iOS. You can integrate the SDK by adding just a few lines of configuration to your app project's Podfile so it's always on the latest version.
The Amazon Mobile Ads API helps monetize apps and games on Android, iOS, and Fire OS phones and tablets. The network serves highly relevant ads from Amazon and other brand advertisers in the US, Europe, and Japan.
To get started:
- Install the CocoaPods command line tool. For information on how to install CocoaPods, follow this link.
- Navigate to your iOS application's root directory. The root directory should contain the
Create a new Podfile with the following text:
platform :ios, '8.0' target 'MyApp' do pod 'AmazonAd', '~> 2.2' end
The above Podfile text may differ depending on your application project. If you have an application project using CocoaPods already, simply add the following to your app target:
pod 'AmazonAd', '~> 2.2'
- F rom the command line, execute the command 'pod install'. By executing this command, CocoaPods will integrate the Amazon Ads SDK into the app project automatically.
- Your application project should now be configured with the Amazon Ads SDK. Open the project with the
*.xcworkspacefile in XCode instead of the
*.xcodeprojfile to begin development.