我已在我的应用上设置了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.
我已将构建配置更改为发布模式并构建了项目,但是我的Admob仍然显示test ad
如何在模拟器上构建项目,以使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;