The Nexverse SDK provides a powerful and flexible solution for monetizing your iOS application through various ad formats. This guide walks you through the integration process and demonstrates how to implement each ad type effectively.

Installation

Initialization

Before using any of the SDK’s features, you must initialize it with your account configuration. This one-time setup should be performed as early as possible in your app’s lifecycle, ideally right after launch.

Here’s how to initialize the SDK in your AppDelegate:

Additional Configuration

Location Permission (Optional)

To improve ad targeting and provide a better advertising experience, you can include location permission in your app. Add the following to your Info.plist:

  <key>NSLocationWhenInUseUsageDescription</key>
<string>A simple text that describes why your app needs the location</string>
  

Load & Render Ads

Nexverse provides all standard ad formats supported by market leaders. Each format is designed to maximize revenue while maintaining a great user experience.

Prerequisites

  • configId: A unique identifier based on the ad format and placement in your app. Obtain this from your Nexverse publisher dashboard. The SDK uses this ID to request and render appropriate ads for each placement.

Banner ads are a reliable way to monetize your app with minimal impact on user experience. The BannerView class handles the loading and display of banner ads, supporting various formats including image, video, and HTML (Rich Media).

Create and Load

Here’s how to implement a banner ad:

Delegate Events

Implement these delegate methods to handle banner ad events:


Interstitial Ads

Interstitial ads are full-screen advertisements that provide high-impact experiences at natural transition points in your app. The SDK supports both display and video formats through the InterstitialRenderingAdUnit class.

Create and Load

Here’s how to implement an interstitial ad:

Delegate Events

Handle interstitial ad events through these delegate methods:


Native Ads

Native ads offer the most customizable ad experience, allowing you to match your app’s look and feel perfectly. The SDK provides various classes to load and display native ads that integrate seamlessly with your UI.

Request Native Ad and Assets

Here’s a comprehensive implementation of native ads:

Delegate Events

Implement these methods to handle native ad events:


Rewarded Ads

Rewarded ads offer users in-app rewards for watching video advertisements. This format typically shows high engagement rates and provides a positive user experience through value exchange.

Create and Load

Here’s how to implement rewarded ads:

Delegate Events

Handle rewarded ad events through these delegate methods: