XCODE 6/Swift - 是否可以在未发布的IOS应用程序中预览admobs?
问题描述:
我刚刚完成了我的第一个iOS应用程序,并且我想在新应用程序上尝试一些广告。但是当我注册到admobs时,他们首先要求我在appstore上搜索我的应用, 但我还没有上传它。有没有办法在上传之前检查广告?XCODE 6/Swift - 是否可以在未发布的IOS应用程序中预览admobs?
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模拟器,但我还没有发现它,我加入了一些代码给方向我的意思是什么。谢谢 !
答
您也可以手动添加您的应用程序。
接下来是搜索按钮。
手动从我的comupter? – 2014-11-03 12:07:34
在adMob网站上,您的计算机是。 – 2014-11-03 12:27:03
指南在目标c中的问题,我如何使用swift完成它?有没有指导? – 2014-11-03 12:39:36