let bannerView = DFPBannerView(adSize: kGADAdSizeMediumRectangle)
I am using the above ad format in my collection view as one of the cells.
Whenever the user scrolls to the cell the ads load very slow.
I want to prefetch the ad and keep ready when he comes to the cell.
Could you please help me with the flow.

We do have a UITableView example using BannerAds. You should certainly be able to reuse this for UICollectionView as well.
Let us know if you need anything else.
Regards,
Deepika Uragayala
Mobile Ads SDK Team
Hello Murali,
You can always prefetch the ad and hold it onto a dictionary with the IndexPaths as key and either insert the ad if exists or show a request a new one and insert when visible to the user. Exempt the AdView from being reused via prepareForReuse() callback and maintain it outside the purview of the UICollectionViewCell. The sample app provided does guide you on this approach. Let us know if you need anything else
Regards,
Deepika Uragayala
Mobile Ads SDK Team