不显示Inmobi广告

时间:2013-09-10 07:54:35

标签: ios ads inmobi

我在应用中添加了应用商店网址。但我想从xcode测试设备中的广告。广告已加载但未在屏幕上显示。我在印度,是这个地方特定的问题还是Inmobi不提供测试广告。

1 个答案:

答案 0 :(得分: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];