Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
Fix displaying test ads on iOS devices
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vintage authored and ratson committed Oct 22, 2016
1 parent 47b703b commit f551ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ios/CDVAdMob.m
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f551ba1

Please sign in to comment.