While i test Admob in simulator, it throws below error
To get test ads on this device, call: request.testDevices = [NSArray arrayWithObjects:GAD_SIMULATO
You have to add your test devices. With Swift, just replace
bannerView.load(GADRequest())
with
let request: GADRequest = GADRequest()
request.testDevices = [kGADSimulatorID]
bannerView.load(request)
If you have an iPhone, then run the application too and it will tell you the ID.
To get test ads on this device, call: request.testDevices = @[@"HERE IS THE ID"];
ID added:
let request: GADRequest = GADRequest()
request.testDevices = ["PUT HERE THE ID", kGADSimulatorID]
bannerView.load(request)