XCODE 6 / Swift-是否可以在未发布的IOS应用程序上预览admob?

陛下

我刚完成我的第一个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模拟器的文章,但我还没有找到,我添加了一些代码来指示我的意思。谢谢你 !

戴维(David'mArm'Ansermot)

您也可以手动添加应用程序。

接下来是搜索按钮。

在此处输入图片说明

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章