Now as it is a global variable (declared outside the class), it is accessible from all viewControllers. So now in each of the viewControllers I want to display the ad in I can just call in viewDidAppear() like this: