Native Ads Integration

Idil Canal edited this page Dec 19, 2016 · 13 revisions

Native Ads Integration for iOS

This document outlines the high level requirements for native ads integration.

Native ads let you easily monetize your app in a way that’s consistent with its existing design. The MoPub SDK gives you access to an ad’s individual assets so you can design the ad layout to be consistent with the look and feel of your app. The SDK automatically handles image caching and metrics tracking so you can focus on how, when, and where to display ads.

Prerequisites

Before integrating native ads in your app, you’ll need to go through the steps in our Getting Started Guide, create an account on MoPub and integrate the SDK into your project.

Read the best practices article for guidelines on how native ads can be displayed in your app.

Privacy Information Icon

Your native ads must display the privacy information icon. Integrating a privacy information icon into your cells is outlined in the documents describing how to implement native ads below.

Choose an Integration Method

MoPub offers two integration methods for native ads - AdPlacer and Manual integration. The AdPlacer integration automatically wraps the TableView and CollectionView data source and delegate, takes fewer than 10 lines of code to integrate and allows you to control the location of the ad from the MoPub interface.

The Manual integration is best for cases where you want to insert an ad into something other than a TableView or CollectionView. With the manual integration, you have to manually request and receive ads, handle caching and handle not showing empty spaces in case the ad request doesn’t fill.

You can view the ad placer native ads integration document here.

You can view the manual native ads integration document here.