我刚完成我的第一个ios应用程序,并且想在新应用程序上试用一些广告。但是,当我注册到admobs时,他们首先要我在appstore中搜索我的应用程序,但是我还没有上传它。有什么方法可以在上传之前仍然检查广告?
GADBannerView *bannerView = [[GADBannerView alloc]
initWithFrame:CGRectMake(0.0,
self.view.frame.size.height -
GAD_SIZE_320x50.height,
GAD_SIZE_320x50.width,
GAD_SIZE_320x50.height)];//Set Position
bannerView.adUnitID = @"12331255421245";//Call your id
// Let the runtime know which UIViewController to restore after taking
// the user wherever the ad goes and add it to the view hierarchy.
bannerView.rootViewController = self;
[self.view addSubview:bannerView];//Your attempt to add bannerview
// Initiate a generic request to load it with an ad.
[bannerView loadRequest:[GADRequest request]];
我看到了这篇关于ios模拟器的文章,但我还没有找到,我添加了一些代码来指示我的意思。谢谢你 !
您也可以手动添加应用程序。
接下来是搜索按钮。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句