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