Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do i find Test Device iD for AdMob

Today i signed up with Google's Admob program. To integrate admob's test ads i need a test device iD.

 GADRequest *request =[GADRequest request];
 request.testDevice = @"[GAD_SIMULATOR_ID, @"MY_TEST_DEVICE_ID"];
 [self.bannerView loadRequest:request];

Where do i get a test device ID? I'm looking around my account with Google's Admob and I can't seem to find any test device iD.

like image 648
Bergy Avatar asked Jan 10 '15 01:01

Bergy


People also ask

What is test device in AdMob?

Test devices allow you to more rigorously test your implementation code by returning production-looking ads in test mode to your app. You can configure your device as a test device and use your own ad unit IDs that you've created in your AdMob account.

Is there any AdMob dummy ID?

There aren't dummy ID's per se. You need to setup the XML or the JAVA code to get test ads. To get Test Ads during testing, add the following to your XML where you have the AdView declared.


1 Answers

If you build and run your project on Xcode, show below message on console. You can use that test device id.

2015-01-10 09:11:32.593 VineUploader[662:60b] <Google> To get test ads on this device, call: request.testDevices = @[ @"944537259734b6f30367fad2271a8c6a" ];
like image 151
Hu Cheng Jin Avatar answered Oct 25 '22 07:10

Hu Cheng Jin