From f551ba16ea8d1fea98364d11c903c367d017ee78 Mon Sep 17 00:00:00 2001 From: Kamil Rykowski Date: Sat, 22 Oct 2016 15:05:28 +0200 Subject: [PATCH] Fix displaying test ads on iOS devices This closes #13 where it's impossible to test ads on the iOS devices due to the fact that testDevices should be set to lowercase according to the debug message. --- src/ios/CDVAdMob.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ios/CDVAdMob.m b/src/ios/CDVAdMob.m index a8c3a4f4..fd02cd8c 100644 --- a/src/ios/CDVAdMob.m +++ b/src/ios/CDVAdMob.m @@ -410,7 +410,7 @@ - (GADRequest*) __buildAdRequest { if (self.isTesting) { NSString* deviceId = [self __getAdMobDeviceId]; - request.testDevices = @[ kGADSimulatorID, deviceId ]; + request.testDevices = @[ kGADSimulatorID, deviceId, [deviceId lowercaseString] ]; NSLog(@"request.testDevices: %@", deviceId); } if (self.adExtras) {