Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show test ads on real device

Tags:

swift

admob

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.

like image 853
J. Doe Avatar asked Oct 17 '22 14:10

J. Doe


1 Answers

This fixed it for me!

Product -> Scheme -> Arguments -> Environment Variables if there is a key: OS_ACTIVITY_MODE, disable/remove it.

like image 142
Alex Ingram Avatar answered Oct 21 '22 06:10

Alex Ingram