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:
# Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'MyApp' do pod 'AmazonAd' 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:
The above command will look for the latest
AmazonAdframework when searching for the artifact. Alternatively, you can specify a particular version to be downloaded such as:
pod 'AmazonAd', '~> 3.1.0'
- From the command line, run 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.