/Not-open

not open for publishers.

Primary LanguageObjective-C

#Pegasi Ads iOS-SDK

Pegasi Ads iOS-SDK is a mobile advertising SDK that serves monitization for publishers.

Currently supported ad formats

Ad typesNotes
Native AdsNative news feed/mini-Native news feed/Native triple image ads/Native small image ads
Interstitial AdsSupported by elements of native ads
Banner AdsAd size: 320x50&300x250, supported by elements of native ads
Splash AdsAd size ratio: 1.4:1
Video AdsVideo size ratio: 4:3&16:9

How To Get Started

Communication

Installation

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.

Pegasi

Add the SDK under the CheetahMobileAds file:

Pegasi

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)

Pegasi

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

Requirements

| 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).