【问题标题】:Not displaying Inmobi ads不显示 Inmobi 广告
【发布时间】:2013-09-23 20:23:30
【问题描述】:

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

【问题讨论】:

    标签: ios ads inmobi


    【解决方案1】:

    您是否将其作为子视图添加到屏幕上?

    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];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-28
      • 2017-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多