Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix samples to use new 3.1. constructors #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion NamoIOSSamples/CollectionViewAdPlacerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ - (void)viewDidLoad {
[self.collectionView registerClass:CollectionViewAdPlacerContentCell.class
forCellWithReuseIdentifier:[CollectionViewAdPlacerContentCell reuseIdentifier]];

self.adPlacer = [NAMOCollectionViewAdPlacer placerForCollectionView:self.collectionView];
self.adPlacer = [NAMOCollectionViewAdPlacer placerForCollectionView:self.collectionView
viewController:self];
[self.adPlacer registerAdFormat:CollectionViewAdPlacerAdCell.class];

[self.adPlacer requestAdsWithTargeting:nil];
Expand Down
2 changes: 1 addition & 1 deletion NamoIOSSamples/CustomStreamCollectionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ - (void)viewDidLoad {
[self.collectionView registerClass:CustomStreamCollectionAdCell.class
forCellWithReuseIdentifier:[CustomStreamCollectionAdCell formatIdentifier]];

self.adPlacer = [NAMOCustomStreamAdPlacer placer];
self.adPlacer = [NAMOCustomStreamAdPlacer placerForViewController:self];
[self.adPlacer registerAdFormat:CustomStreamCollectionAdCell.class];
self.adPlacer.delegate = self;

Expand Down
2 changes: 1 addition & 1 deletion NamoIOSSamples/CustomStreamGalleryController.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)viewDidLoad {
self.edgesForExtendedLayout = UIRectEdgeNone;
}

self.customStreamAdPlacer = [NAMOCustomStreamAdPlacer placer];
self.customStreamAdPlacer = [NAMOCustomStreamAdPlacer placerForViewController:self];
[self.customStreamAdPlacer registerAdFormat:[CustomStreamGalleryAdView class]];
[self.customStreamAdPlacer setDelegate:self];
[self.customStreamAdPlacer requestAdsWithTargeting:nil];
Expand Down
2 changes: 1 addition & 1 deletion NamoIOSSamples/TableViewAdPlacerController.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ - (void)viewDidLoad {
}

// Namo setup
self.adPlacer = [NAMOTableViewAdPlacer placerForTableView:self.tableView];
self.adPlacer = [NAMOTableViewAdPlacer placerForTableView:self.tableView viewController:self];
[self.adPlacer registerAdFormat:TableViewAdCell.class];

[self.adPlacer requestAdsWithTargeting:nil];
Expand Down