Native Ad Integration Options
MoPub offers two major types of native ad placements on both iOS and Android. Native ads are typically shown in streams of content, aren’t limited to using HTML provided by the advertiser, and are shown and built using the same tools as your application.
iOS Integration Types
UITableView | UICollectionView | Custom Stream | Manual AdPlacer |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
UITableView
We recommend the MPTableViewAdPlacer
approach if your app uses a UITableView
. Consider this before using a different type of integration.
|
Features
|
UICollectionView
We recommend the MPCollectionViewAdPlacer
approach if you have a UICollectionView
. If you have a UICollectionView
, consider MPCollectionViewAdPlacer
before using a different type of integration.
|
Features
|
Custom Stream
We recommend the MPStreamAdPlacer
approach if you have a custom stream whose type is not supported through MPTableViewAdPlacer
or MPCollectionViewAdPlacer
. MPStreamAdPlacer
can be customized for any kind of stream-like integration, but takes more work to implement compared to the other integration types.
|
Features
|
Manual AdPlacer
For custom implementations where a native ad must be shown outside of the context of a stream, manually request native ads using the MPNativeAd
and MPNativeAdRequest
classes.
|
Features
|
Android Integration Types
List or Recycler Adapter | Custom Stream | Ad View |
---|---|---|
![]() |
![]() |
![]() |
List/Recylcer Adapter
MoPubAdAdapter
facilitates placing ads into an Android ListView
or other widgets that use an Android Adapter.
|
Features
|
Custom Stream
MoPubStreamAdPlacer
facilitates loading ads and placing them into a content stream for situations where the ad adapter doesn’t work.
|
Features
|
Manual AdPlacer
For custom implementations where a native ad needs to be shown outside of the context of a stream, manually integrate Native Ads with the MoPubNative
class.
|
Features
|
Last updated December 03, 2020
TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.
© 2020 MoPub (a division of Twitter, Inc.)