2014/05/29

AdMob shows a banner for test

I’ll have my developing app show advertisements of AdMob. So I downloaded the latest sdk in Google web page. Its version seems to be 6.9.2
I added them to the project in Xcode and tried to build but failed. Yes, I should have added frameworks.
After I got some pieces of information to build, it succeeded to build and run. My device showed an advertisement banner as I expected.

But the debug area shows one message like :
To get test ads on this device, call: request.testDevices = @[ @“xxx" ];

Well? I did so as the warning message, then the banner changed to a version for test.

AdMob test banner

Oh, it is really nice. I don’t have to be afraid to tap wrongly while developing!
The property can have NSArray, so I added my devices.
Develop | Comments(0) | Trackback(0)
Comment

管理者のみに表示