Is it possible to present GADInterstitial on a full-screen UICollectionViewCell?

169 views Asked by At

I wonder if there's a way to present a GADInterstitial over a full-screen UICollectionViewCell. I've looked up for GADInterstitial delegate methods and the interstitial.present(fromRootViewController:) is the only method to display it, but in case of collection view cell the ad will be left under it, as it needs a rootViewController to be displayed on. So how's that can be reached?

1

There are 1 answers

0
Sam Bing On BEST ANSWER

It is possible by using a Container View.

Container View: Defines a region of a view controller that can include a Child View Controller

So you can add a Container View to the UICollectionViewCell.

Worth mentioning is that depending on the implementation you may be violating the rules on how Interstitial ads can be used.