我没有看到任何 admob 制作广告。在本机反应

I do not see any admob production ads. In react native

我使用 'react-native-firebase' 库连接了 admob。 我们计划只应用插页式广告。 目前,我们已经在每个平台上成功 运行 个带有测试 ID 的插页式测试广告(ios、android)。

但是,如果您应用 "ad unit" ID,Admob 控制面板不会调用任何广告。

也许,生产广告只在应用发布时出现?我的应用尚未在商店注册,正在开发中。

目前,AdMob 的中介和广告活动项目未受影响。我一定要写这个吗?

我们如何生成制作广告? 我需要帮助!!!

controlAdInterstitial = () => {
    // this is production unit id
    const interStialId = Platform.select({
      ios: staticData.admobIds.iosInterstitialId,
      android: staticData.admobIds.androidInterstitialId,
    });
    // run intersitital
    AdInterstitial(interStialId);
    // test id, it's completed
    // AdInterstitial(staticData.admobIds.testInterstitialId);
  };

广告插播

const AdIntersitial = (id) => {
  const { AdRequest } = firebase.admob;
  const request = new AdRequest();
  const adVert = firebase.admob().interstitial(id);

  adVert.on('onAdLoaded', () => {
    adVert.show();
  });

  adVert.loadAd(request.build());

  adVert.on("onAdOpened", () => {
    console.log('Advert ready to show.');
  });

  const ad = setInterval(() => {
    if (adVert.isLoaded()) {
      adVert.show();
      clearInterval(ad);
    } else {
    }
  }, 2000);
};

When apps are newly registered with AdMob, it takes some time and a few ads requests to allow inventory to build. Because of this, you may not see live impressions immediately. Once your app starts making more requests, you should see more consistent results. Please note that test ads operate through the same channels as live ads. Being able to return a test ad ensures that your application is communicating properly with our network. Be patience it will work after some days.

按照建议,等待几个小时或一天,如果广告 ID 是新创建的,则需要一些时间才能在您的广告 ID 中分配一些广告。