如何解决博览会和Admob:“错误Domain = com.google.admob代码= 1”帐户尚未获得批准...
我尝试将expo-ads-admob
与Expo
一起使用,但出现以下错误:Error Domain=com.google.admob Code=1 "Account not approved yet. <https://support.google.com/admob/answer/9905175#1>" UserInfo={NSLocalizedDescription=Account not approved yet. <https://support.google.com/admob/answer/9905175#1>
我已完成的步骤:
这是我的代码:
<AdMobBanner
bannerSize="mediumRectangle"
adUnitID={ Platform.OS === 'ios' ? "ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx" : "ca-app-pub-xxxxxxxxxxxxxxxx/xxxxxxxxxx" } // Test ID,Replace with your-admob-unit-id
servePersonalizedAds
onDidFailToReceiveAdWithError={(err) => console.log("error : ",err)}
/>
这是我的app.json
。
{
"expo": {
"name": "catch3","slug": "catch3","version": "1.0.0","orientation": "portrait","icon": "./assets/icon.png","splash": {
"image": "./assets/splash.png","resizeMode": "contain","backgroundColor": "#ffffff"
},"updates": {
"fallbackToCacheTimeout": 0
},"assetBundlePatterns": [
"**/*"
],"ios": {
"supportsTablet": true,"userInterfaceStyle": "light","config": {
"googleMobileAdsAppId": "ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx"
}
},"userInterfaceStyle": "automatic","android": {
"useNextNotificationsApi": true,"userInterfaceStyle": "dark","web": {
"favicon": "./assets/favicon.png"
}
}
}
有人可以帮我弄清楚我在做什么错吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。