Disable MoPub Ad Placer


#1

I’m using MoPub Native Ads and have integrated using the MPTableViewAdPlacer.

Initializing the ad placer is very simple -

self.adPlacer = [MPTableViewAdPlacer placerWithTableView:self.tableView
viewController:self
defaultAdRenderingClass:[SomeTableViewAdCell class]];

[self.adPlacer loadAdsForAdUnitID:@“mopub_ad_unit_id”];

The app this is integrated in has a single view, so the tableview is only created once on launch. I’d like to be able to disable the ad placer after it’s been initialized. For example, for an in app purchase to disable the ads.

What is the best way to achieve this?


#2

Hi @betodave,

Thanks for reaching out! You can use keywords to achieve this. I would recommend reviewing our Passing Location and Keywords documentation as well as our Integrating Native Ads documentation for more information on how to set this up. If you have additional questions, I would recommend reaching out to the Support Team for more help at support@mopub.com.

Thanks!