【发布时间】:2020-10-04 13:16:38
【问题描述】:
昨天,我在 Google Play 上发布了我的第一个应用程序。它仍在等待审查。起初,我打算在应用程序中添加广告,为此我在 Android Studio 中使用了 Firebase 助手。所以它添加:
build.gradle [应用程序]
...
apply plugin: 'com.google.gms.google-services'
...
dependencies {
...
implementation 'com.google.android.gms:play-services-ads:19.4.0'
}
build.gradle[项目]
classpath 'com.google.gms:google-services:4.3.4'
在清单文件中:
<manifest ...>
<!-- Include required permissions for Google Mobile Ads to run. -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application ...>
<!--
This is the sample AdMob App ID. Insert your own AdMob App ID in quotes
https://googlemobileadssdk.page.link/admob-android-update-manifest
-->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />
....
</application>
</manifest>
最后,我决定从应用程序中删除广告,因此我从 gradle 文件中删除了这一行,并从代码中删除了所有用法:
implementation 'com.google.android.gms:play-services-ads:19.4.0'
我忘记删除其他行了:
这一行
apply plugin: 'com.google.gms.google-services'
这一行:
classpath 'com.google.gms:google-services:4.3.4'
还有这个(权限和元数据)
<!-- Include required permissions for Google Mobile Ads to run. -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application ...>
<!--
This is the sample AdMob App ID. Insert your own AdMob App ID in quotes
https://googlemobileadssdk.page.link/admob-android-update-manifest
-->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-3940256099942544~3347511713" />
....
</application>
在 google play 控制台中,当询问时: 您的应用是否包含广告?我选择否。
我的问题是因为这个错误,我的申请会被拒绝吗? 有没有办法在 Google 审核之前修复此错误?
【问题讨论】:
-
发送包含您的更改的新版本 :)
-
@ErenTüfekçi 感谢您的回复,即使应用程序尚未被接受,我可以更新它吗?
-
是的,你可以更新它
标签: android google-play ads