#Pegasi Ads iOS-SDK
Pegasi Ads iOS-SDK is a mobile advertising SDK that serves monitization for publishers.
Currently supported ad formats:
Ad types | Notes |
Native Ads | Native news feed/mini-Native news feed/Native triple image ads/Native small image ads |
Interstitial Ads | Supported by elements of native ads |
Banner Ads | Ad size: 320x50&300x250, supported by elements of native ads |
Splash Ads | Ad size ratio: 1.4:1 |
Video Ads | Video size ratio: 4:3&16:9 |
- Download Pegasi-Ads-iOS-SDK on Github
- Read the "Guide for Cheetah Mobile Pegasi-Ads-iOS-SDK"
- If you need help, use Issue. (Tag 'Pegasi-SDK')
- If you'd like to ask a general question, e-mail cmcm.ads@gmail.com.
Pegasi-Ads-iOS-SDK supports multiple methods for installing the library in a project.
##Manual Installation
Adding the SDK to your Xcode project(manually)
If you do not have CheetahMobileAds downloaded already, grab it from Github(https://github.com/CMAdSDK/pegasi-ios-sdk)and unzip it.
Step 1. Add the SDK to your Xcode project
Right-click on the CheetahMobileAdsDemo project, and choose“Add Files To CheetahMobileAdsDemo” ,to add files to CheetahMobileAdsDemo.
Add the SDK under the CheetahMobileAds file:Step 2. Add other frameworks that the SDK required
The SDK depends on the following iOS development frameworks which may not already be part of your project:
- AdSupport
- CoreTelephony
- StoreKit
- CoreLocation
- Security
- SystemConfiguration
Navigate to Project Settings > Build Phases
Select "Link Binary with Libraries" Option
Click "+" to add other frameworks required
Step 3. Change settings of static library
Navigate to Target>Build Settings>Linking
Select“Other Linker Flags”option and add-ObjC(as shown below)
Step 4. Modify AppTransportSecurity settings of info.plist(for iOS 9)
Now that iOS 9 has introduced AppTransportSecurity(ATS) characteristic, Developers are expected to add NSAppTransportSecurity settings in their projects, in order to support http requesting. The detailed settings are as follows:
| Pegasi Version | Minimum iOS Target | Notes | |:--------------------:|:---------------------------:|:----------------------------:|:----------------------------:|:----------------------------:|:-------------------------------------------------------------------------:| | 1.5.0 | iOS 7 | Native ads, Interstitial ads, Splash screen ads, Banner ads[32050]&[300250] are supported in V 1.5.0 |
(OS X projects must support 64-bit with modern Cocoa runtime).