Git Product home page Git Product logo

verve-hybid-x-ios-sample's Introduction

Get Started

This guide is for publishers who want to monetize an iOS app with Kwizzad RTA.

Integrating the Kwizzad RTA SDK into an app is the first step toward displaying ads and earning revenue.

Prerequisites

  • XCode

  • min deployment target 9.0

  • add those lines to Info.plist:

	<key>NSAppTransportSecurity</key>
	<dict>
		<key>NSAllowsArbitraryLoads</key>
		<true/>
	</dict>
    
     <key>GADApplicationIdentifier</key>
    <string>GOOGLE_AD_TOKEN_GET_FROM_SUPPORT</string>
    <key>GADIsAdManagerApp</key>
    <true/>
    

Add the SDK to your iOS project

  • Integrate KwizzadRTA framework into your project via cocoapods.

Add this lines to your Podfile:

pod 'KwizzadRTA'

Once that's done, save the file and perform a pod install.

  • Fix incompatible Dependency
sed -i '' 's/^module AATKit/framework module AATKit/' Pods/AATKit/aat/AATKit.framework/Versions/A/Modules/module.modulemap

This fixes the Compile Error: Include of non-modular header inside framework module 'KwizzadRTA' Alternative Manual Fix:

  • Open the file under Pods/AATKit/aat/AATKit.framework/Versions/A/Modules/module.modulemap
  • add the keyword 'framework' at the very begining.

Integration

Initialize

Before loading and showing ads, initialize the library by calling KwizzadRTA.shared.configre(with: token) . This will fetch the ad configuration. Additinaly, you can receive a completion bool to know if the SDK is finished configuring.

KwizzadRTA.configure(with: "token") { (status) in
    //KwizzadRTA is configured you can start loading ads.
}

Start loading rta objects in your view controller and conform it KwizzadRTADelegate protocol:

KwizzadRTA.shared.load(placement: "PLACEMENT_HERE", delegate: self)

// lifecycle callbacks
extension ViewController: KwizzadRTADelegate {

  func onAdAvailable(placementId: String) {}
  func onAdFailedToLoad(placementId: String) {}
  func onAdError(placementId: String, error: String) {}
  func onAdCanceled(placementId: String) {}
  func onAdFinished(placementId: String) {}
  //optionals callbacks
  func onAdOpened(placementId: String) {}
  func onAdClicked(placementId: String) {}
}

Show

If an ad is preloaded successfully you can show it by doing the following:

KwizzadRTA.shared.showAd(from: viewController)

You don't have to reload ads, it is done automatically. As soon as another ad is preloaded, you will receive onAdAvailable delegate function.

Ad providers

The Following providers are integrated within the SDK:

  • VAST/VPAID
  • AdMob (Interstitials, Rewarded Videos)
  • Facebook Audience Network (Interstitials, Rewarded Videos)
  • IronSource (Interstitials, Rewarded Videos)
  • Addapptr; including:
    • Google Ad Manager (Interstitials, Rewarded Videos)
    • SmartAdSErver (Interstitials)
    • MoPub (Interstitials)
    • Smaato (Interstitials)
    • Unity Ads (Interstitials, Rewarded Videos)
    • Vungle (Interstitials)
    • InMobi (Interstitials)
  • Hybid (Interstitials)
  • AdColony (Interstitials, Rewarded Videos)
  • AppLovin (Interstitials, Rewarded Videos)
  • Inneractive (Interstitials)
  • SpotX (VAST/VPAID)
  • FeedAd (Interstitials)

Known Issues:

  • Objective-C Sample app does not build for simulator.

verve-hybid-x-ios-sample's People

Contributors

faresbh avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.