苹果拒绝admob展示测试广告

时间:2019-06-05 03:14:17

标签: react-native admob react-native-ios

我已在我的应用上设置了Admob。当用户在App Store上下载该应用时,它可以正常工作。

最近我被苹果公司拒绝了。

Guideline 2.2 - Performance - Beta Testing


Your app contains references to test, trial, demo, beta, pre-release or other incomplete content.

Specifically, your app screenshot contains test references.

https://iosapps-ssl.itunes.apple.com/itunes-assets/Purple113/v4/a3/ab/cc/a3abcc0e-69b6-173f-8c1c-07716933a0ae/attachment-66752438539533936683c19e90ffb50026a1d2e21ca03d27c11a9e0263d.jpg?accessKey=1559963066_1242390994602874516_epEnyHQyoIKWEA5D3Nf3s2B5eNb9GtPjRHYo2DGaSNZSsuf0ua%2FsHH1OQRBShQJoNXGVbqMhdxo%2BX2dtd5VX1dKRz2XlFu8eDvjbHrhfLTF34BIEuE1Zx2DDqdMydmvvpUDIHQLuk7d1kDijawIPFnHMD4ddRTaNCxEoKqIgImk6gk0aILONPnRY82TD92ioHkaTnjXIrVhedKdlg3CTe9H1n1bclwpAziZ3c63T5thvVtHe8U34rYR7n10qVCjA

我已将构建配置更改为发布模式并构建了项目,但是我的Admob仍然显示test ad enter image description here

如何在模拟器上构建项目,以使Admob展示真实的广告?

这是我的Admob组件:

import React from 'react';
import { Platform } from 'react-native';
import firebase from 'react-native-firebase';
import { serverData } from '../../api/ApiData';

const Banner = firebase.admob.Banner;
const AdRequest = firebase.admob.AdRequest;
const request = new AdRequest();

const unitId =
Platform.OS === 'ios'
  ? serverData.iosAdmobId
  : serverData.androidAdmobId;

const AdMobBanner = () => {
  return (
    <Banner
      unitId={unitId}
      size={'SMART_BANNER'}
      request={request.build()}
      onAdLoaded={() => {
      console.log('Advert loaded');
    }}
    />
  );
};

export default AdMobBanner;

0 个答案:

没有答案