CommonUtilsAds 1.1.0

CommonUtilsAds 1.1.0

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
发布最新发布2016年3月

Karen Lusinyan维护。



  • 作者
  • Karen Lusinyan

CommonUtilsAds

CI Status Version License Platform

用法

要运行示例项目,请克隆仓库,并为位于Example目录中的项目运行pod install

步骤 1

Storyboard/programmatically: [create RootViewController "CommonBannerController" as a container]

Put this in your AppDelegate.m

...

[CommonBanner regitserProvider:[CommonBannerProvideriAd class]
                  withPriority:CommonBannerPriorityHigh
                 requestParams:nil];

[CommonBanner regitserProvider:[CommonBannerProviderGAd class]
                  withPriority:CommonBannerPriorityLow
                 requestParams:@{keyAdUnitID    : @"ca-app-pub-3940256099942544/2934735716",
                                 keyTestDevices : @[kGADSimulatorID]}];

//[CommonBanner setDebugMode:NO];
[CommonBanner startManaging];

...

步骤 2

In your "ViewController.m" #import CommonBanner.h 

步骤 3

To present ads SIMPLY CALL self.canDisplayAds = YES

步骤 4

That's it! 
Enjoy

新功能

Comming soon :-)

要求

Requires iOS 7 and later
Written in ARC

安装

CommonUtilsAds可以通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中:

pod "CommonUtilsAds"

作者

Karen Lusinyan, [email protected]

许可证

CommonUtilsAds可使用MIT许可证获得。有关更多信息,请参阅LICENSE文件。