我已根据本指南设置了Mobclix(与SDK zip file中的Mobclix_SDK_iOS_61x_Guide.pdf相同)
https://developer.mobclix.com/help/advertising/quick
我已经创建了一个应用程序ID,并将以下代码添加到了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的票务系统已关闭,因此我无法请求帮助。
附言我刚刚看到可以在输入UDID的地方启用电子邮件通知,因此我将尝试使用它并发表评论,以显示解决方案。如果其他人也遇到麻烦,我将继续发布此消息。
最佳答案
我觉得这些家伙倒闭了...
http://finance.yahoo.com/news/mobclix-ceases-operations-files-voluntary-101300752.html