This is my code:
let request = GADRequest()
request.testDevices = [kGADSimulatorID, "XXXX2F32d69CCA859FFB559D0FEA3CF6483D08A6"]
adView.load(request)
Where XXXX is my UDID of my iPhone. Why do I get real ads and not test ads on my iPhone? Test ads on the simulator works. Thank you. Tried the UDID in uppercase and lowercase.
As mentioned in admob guide
while running the app in device you get the below log
use that id instead of
UDID
.As I understood your, I concate your UDID and ID in the log. This is wrong.
You this - pure ID :
https://firebase.google.com/docs/admob/ios/targeting
This fixed it for me!
Product -> Scheme -> Arguments -> Environment Variables if there is a key: OS_ACTIVITY_MODE, disable/remove it.