我在应用程序中添加了应用商店 URL。但我想从 xcode 测试我设备中的广告。广告正在加载但未在屏幕上显示。我在印度,是这个地方的具体问题还是 Inmobi 不提供测试广告。
问问题
417 次
1 回答
2
您是否将其作为子视图添加到屏幕上?
inmobiAdView = [[IMAdView alloc] initWithFrame:CGRectMake(0, 0, 320, 50) imAppId:INMOBI_APP_ID imAdSize:IM_UNIT_320x50];
inmobiAdView.delegate = self;
IMAdRequest *request = [IMAdRequest request];
/**
* additional targeting parameters. these are optional
*/
request.gender = kIMGenderMale;
request.education = kIMEducationBachelorsDegree;
// etc ..
inmobiAdView.imAdRequest = request;
[self.view addSubview:inmobiAdView]; // Did you added this line? this line add the adView as a subview
[inmobiAdView loadIMAdRequest];
于 2013-09-10T08:09:51.350 回答