我已经根据本指南设置了Mobclix (与SDK压缩文件中的SDK压缩文件相同)
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的服务选项卡下显示“禁用”按钮,而不是“挂起”按钮,所以我认为它们是启用的。我已经进入了设置和设置:
Ads Running: Yes
Test Mode: Yes但是几分钟后,当我检查仪表板时,“广告运行”又回到了“否”。我不明白为什么我不能打开广告。我尝试过测试模式:否,并将我的UDID添加到显影剂装置中。
我的帐户大概有两个小时了,所以我想知道我是否要等几天才能开始做广告呢?但是测试模式的意义是什么呢?Mobclix的票务系统坏了,所以我不能请求帮助。
我刚刚看到我可以在我输入UDID的地方启用电子邮件通知,所以如果它显示了解决方案,我会尝试并评论。我会继续张贴这个,以防其他人也有麻烦。
发布于 2014-03-01 22:16:04
我觉得这些人已经破产了..。http://finance.yahoo.com/news/mobclix-ceases-operations-files-voluntary-101300752.html
https://stackoverflow.com/questions/22025350
复制相似问题