Skip to content

Instantly share code, notes, and snippets.

Avatar

Gabor Cselle gaborcselle

View GitHub Profile
@gaborcselle
gaborcselle / gist:b18b693cfb6da2daa9ce
Created Dec 16, 2014
MPTableViewAdPlacer integration overview
View gist:b18b693cfb6da2daa9ce
// MoPub MPTableViewAdPlacer integration overview
// In table view controller:
self.adPlacer = [MPTableViewAdPlacer placerWithTableView:self.tableView
viewController:self
defaultAdRenderingClass:[SomeTableViewAdCell class]];
...
[self.adPlacer loadAdsForAdUnitID:@"mopub_ad_unit_id"];
// In format definition: