getAd() function added to display the ads