你的应用在尝试上传时不允许在清单中指定 'AD SERVICES CONFIG' 属性。

huangapple go评论65阅读模式
英文:

Your app is not allowed to specify 'AD SERVICES CONFIG' property in the manifest when trying to upload

问题

I am facing a problem. I added the test device using the request configuration class of AdMob.
我遇到了一个问题。我使用AdMob的请求配置类添加了测试设备。

I also remove the method. Now, I am facing this problem when I want to upload the app to the play store, what can I do now?
我还删除了这个方法。现在,当我想上传应用到Play商店时,我面临着这个问题,现在我该怎么办?

They showing
他们显示

Your app is not allowed to specify 'AD SERVICES CONFIG' property in the manifest
您的应用程序不允许在清单中指定'AD SERVICES CONFIG'属性

I have added some code in Manifest.
我在清单中添加了一些代码。

This my manifest file. I added all which was google suggest in there docs.
这是我的清单文件。我添加了Google在文档中建议的所有内容。

英文:

I am facing a problem. I added the test device using the request configuration class of AdMob.

I also remove the method. Now, I am facing this problem when I want to upload the app to the play store, what can I do now?

They showing

Your app is not allowed to specify 'AD SERVICES CONFIG' property in the manifest

I have added some code in Manifest.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION" />
    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_CUSTOM_AUDIENCE" />
    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_TOPICS" />
    <uses-permission android:name="android.permission.ACCESS_ADSERVICES_TOPICS"
        tools:node="remove" />

    <application
        android:allowBackup="true"
        android:dataExtractionRules="@xml/data_extraction_rules"
        android:fullBackupContent="@xml/backup_rules"
        android:icon="@drawable/app_logo_new"
        android:label="@string/app_name"
        android:roundIcon="@drawable/app_logo_new"
        android:supportsRtl="true"
        android:theme="@style/Theme.Orbaic"
        tools:targetApi="31">
        <activity
            android:name=".FirebaseDynamicLink"
            android:exported="true" >
            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data
                    android:host="example.com"
                    android:scheme="https"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".ReferralData"
            android:exported="false" />
        <activity
            android:name=".WebViewContent"
            android:exported="false" />
        <activity
            android:name=".MainActivity2"
            android:exported="false"
            android:label="@string/title_activity_main2"
            android:theme="@style/Theme.Orbaic.NoActionBar">
            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
        <activity
            android:name=".ForgetPassword"
            android:exported="false">
        </activity>
        <activity
            android:name=".UserRegister"
            android:exported="false">
            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
        <activity
            android:name=".LoginLayout"
            android:exported="false">
            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>
        <activity
            android:name=".MainActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <meta-data
                android:name="android.app.lib_name"
                android:value="" />
        </activity>

        <service
            android:name=".FirebasePushNotification"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>

        <property android:name="android.adservices.AD_SERVICES_CONFIG"
            android:resource="@xml/ad_services_config" />

        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-" />

    </application>

</manifest>

This my manifest file. I added all which was google suggest in there docs

答案1

得分: 1

根据Android隐私沙箱文档所述:

> 注意:要访问最新的AdServices SDK Extension版本和开发者预览版本中的隐私沙箱API,您需要完成注册过程。

在您可以使用该API之前,您需要注册

英文:

As it says on the Android Privacy Sandbox documentation:

> Note: To access the Privacy Sandbox APIs in the latest AdServices SDK Extension release and in the Developer Preview release, you need to complete the enrollment process.

You will need to enroll before you can use that API.

huangapple
  • 本文由 发表于 2023年5月10日 11:29:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76214698.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定