0

在我的应用程序中,我集成了 ad-whirl,在 ad-whirl 设置中,我配置了 3 个广告网络,如 iad、ad-mob 和 Millennial Media,但广告仅来自 ad-mob 网络。即使我在 ad-whirl 的广告网络设置中关闭了 iad 和 ad-mob 网络。

我已经集成了所有 3 个广告网络 sdk

在此处输入图像描述

我已经在 adwhirlViewController 中返回了这段代码

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];

    adView=[AdWhirlView requestAdWhirlViewWithDelegate:self];

    [self.view addSubview:adView];  
}

- (void)adWhirlDidReceiveAd:(AdWhirlView *)adWhirlView {
    NSLog(@"Ad received");
    CGSize adSize = [adView actualAdSize];
    NSLog(@"Net work Name %@",[adWhirlView mostRecentNetworkName]);
    CGRect newFrame = adView.frame;
    newFrame.size = adSize;

    newFrame.origin.x = (self.view.bounds.size.width - adSize.width)/ 2;

    newFrame.origin.y=385;
    NSLog(@"frame size %f,%f",newFrame.origin.x,newFrame.origin.y);
    adView.frame = newFrame;

}

- (NSString *)adWhirlApplicationKey {
        // return your SDK key  
    return kSampleAppKey;

}

-(void)adWhirlDidFailToReceiveAd:(AdWhirlView *)adWhirlView usingBackup:(BOOL)yesOrNo
{
    NSLog(@"Ad not Received");
    NSLog(@"Net work Name %@",[adWhirlView mostRecentNetworkName]);
    CGRect tempFrame = adView.frame;
    tempFrame.origin.y = -adView.frame.size.height;
    adView.frame = tempFrame;

}

但广告仅来自 admob。请指导我解决此问题。

谢谢。

4

1 回答 1

0

kSampleAppKey 映射到什么 SDK 密钥?您确定它与您设置广告展示位置时 AdWhirl 控制台给您的键对应吗?

于 2012-10-05T19:38:58.410 回答