         super.viewDidLoad()
         let nib = UINib(nibName: "StickyTableViewCell", bundle: nil)
         tableView.register(nib, forCellReuseIdentifier: reuseIdentifier)
+        tableView.register(UITableViewCell.self, forCellReuseIdentifier: reuseIdentifierForAd)
         reloadData()
     }
 


import UIKit
import RealmSwift

class StickyTableViewController: UITableViewController {
    var cellHeight: CGFloat = 164
    let reuseIdentifier = "StickyTableViewCell"
    var stickies: Results<StickyEntity>!
    
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()

    }
    
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        if !PaymentManager.shared.isPremiumUser {
            return stickies.count + (stickies.count / frequencyAdsInCells)
        }
        return stickies.count
    }
    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        if indexPath.row % frequencyAdsInCells == 0 {
            let cell = tableView.dequeueReusableCell(withIdentifier: reuseIdentifierForAd, for:indexPath)
            let size = GADAdSizeFromCGSize(CGSize(width: view.frame.width, height: cellHeight))
            if cell.contentView.subviews.count == 0, let adView = GADNativeExpressAdView(adSize: size) {
                if let config = Config.default {
                    adView.adUnitID = config.admobTableViewCellAdUnitID
                }
                adView.rootViewController = self
                adView.load(GADRequest())
                cell.contentView.addSubview(adView)
                adView.snp.makeConstraints() { make in
                    make.top.equalTo(cell.contentView)
                    make.bottom.equalTo(cell.contentView)
                    make.left.equalTo(cell.contentView)
                    make.right.equalTo(cell.contentView)
                }
            }
            return cell
        }
        let cell = tableView.dequeueReusableCell(withIdentifier: reuseIdentifier, for: indexPath) as! StickyTableViewCell
        let sticky = getSticky(at: indexPath)
        cell.updateView(sticky)
        return cell
    }
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        if indexPath.row % frequencyAdsInCells == 0 {
            return
        }
        let sticky = getSticky(at: indexPath)
        if let page = sticky.page {
            let vc = WebViewController(page: page)
            navigationController?.pushViewController(vc, animated: true)
