设置AdColony

时间:2014-04-01 22:01:01

标签: ios iphone ads

我有一个应用程序,我即将提交到应用商店,但我无法展示广告。我只能使用您必须点击的按钮来展示广告,而不是让它自动启动。我正在使用AdColony。

AppDelegate.m

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [AdColony configureWithAppID:@"app465e35b9edd249a6af" zoneIDs:@[@"vzdc921461f3ca45049c"] delegate:nil logging:YES];
    // Override point for customization after application launch.
    return YES;
}

ViewController.m

-(IBAction)sa:(id)sender
{
    [AdColony playVideoAdForZone:@"vzdc921461f3ca45049c" withDelegate:nil];
} 

0 个答案:

没有答案