quimacama Member Licensed User Longtime User Nov 6, 2015 #1 When I run in iOs Simulator my app with iAdmob in the log says: <Google> To get test ads on this device, call: request.testDevices = @[ kGADSimulatorID ]; Click to expand... How to implement this? I write: AdView1.SetTestDevices(Array("@[ kGADSimulatorID ]")) , but it appears normal ad.
When I run in iOs Simulator my app with iAdmob in the log says: <Google> To get test ads on this device, call: request.testDevices = @[ kGADSimulatorID ]; Click to expand... How to implement this? I write: AdView1.SetTestDevices(Array("@[ kGADSimulatorID ]")) , but it appears normal ad.
JanPRO Well-Known Member Licensed User Longtime User Nov 6, 2015 #2 I couldn't test it, but try Code: Copy AdView1.SetTestDevices(Array("Simulator")) Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 8, 2015 #3 The above code will work. Note that you can get it with this code: Code: Copy #if objc #import <GoogleMobileAds/GoogleMobileAds.h> - (NSObject*)simulatorId { return kGADSimulatorID; } #end if Dim no As NativeObject = Me ad.SetTestDevices(Array(no.RunMethod("simulatorId", Null))) The value of kGADSimulatorID is Simulator so you can just enter the string directly. Upvote 0
The above code will work. Note that you can get it with this code: Code: Copy #if objc #import <GoogleMobileAds/GoogleMobileAds.h> - (NSObject*)simulatorId { return kGADSimulatorID; } #end if Dim no As NativeObject = Me ad.SetTestDevices(Array(no.RunMethod("simulatorId", Null))) The value of kGADSimulatorID is Simulator so you can just enter the string directly.