2014-02-25 34 views
0

我已经根据本指南(这是一样的,在SDK zip file Mobclix_SDK_iOS_61x_Guide.pdf)Mobclix无法打开? (错误代码-9999999)

https://developer.mobclix.com/help/advertising/quick

我创建的应用ID设置Mobclix的,并增加了下面的代码到我的AppDelegate类:

#define kMobclixAppID @"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" 

@interface AppDelegate : UIResponder <UIApplicationDelegate, MobclixAdViewDelegate> 
//... 
@end 

@implementation AppDelegate 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    [Mobclix startWithApplicationId:kMobclixAppID]; 

    MobclixAdView *adView = [[MobclixAdViewiPhone_320x50 alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 50.0f)]; 

    adView.delegate = self; 

    [((UINavigationController*) [self.window rootViewController]).view addSubview:adView]; 

    [adView resumeAdAutoRefresh]; 
    //[adView getAd]; 

    return YES; 
} 

#pragma mark - 
#pragma mark MobclixAdViewDelegate 

- (void)adView:(MobclixAdView*)adView didFailLoadWithError:(NSError*)error { 
    NSLog(@"Ad Failed: %@ %@.", NSStringFromCGSize(adView.frame.size), error); 
} 

@end 

当我跑我的iOS应用程序(包括在设备上,并在模拟器),我得到这个错误日志中:

Ad Failed: {320, 50} Error Domain=com.mobclix.ads Code=-9999999 "This ad unit size has been remotely disabled in the developer dashboard." UserInfo=0xa394560 {NSLocalizedDescription=This ad unit size has been remotely disabled in the developer dashboard.}. 

大多数广告服务在Mobclix的Services tab下显示“禁用”按钮,而不是“挂起”,所以我相信它们已启用。我已经进入安装和设置:

Ads Running: Yes 
Test Mode: Yes 

但是当我检查仪表板上的几分钟后,“广告暗战”已经恢复到“否”。我无法打开广告。我试过了测试模式:不,并将我的UDID添加到Developer Devices

我的帐户大概有两个小时的时间,所以我想知道是否必须等待几天才能投放广告?但那么测试模式有什么意义呢? Mobclix的票务系统已关闭,因此我无法请求帮助。

P.S.我刚刚看到我可以在输入UDID的地方启用电子邮件通知,因此我会尝试并发表评论,如果它显示解决方案。如果其他人遇到麻烦,我会继续发布。

回答