由android studio制作的应用仅在一部手机上显示广告,而在其他手机上则没有

时间:2019-01-17 06:39:35

标签: android

我在使用android studio源代码时遇到问题。 有一个华硕手机正在其中的广告来,但在其他手机广告不来....你能告诉我什么原因吗??。我有华硕zenfone max pro m1(牛轧糖android)上的admob广告在诸如vivo v3(棒棒糖android版本??)的其他手机上显示但未显示。我还用其他具有牛轧糖的手机测试了该应用程序,但存在相同的问题。请告诉我这个问题的可能原因。

1 个答案:

答案 0 :(得分:0)

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

    <!-- Required Permissions -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

    <!-- Change package name in below 2 lines of Permissions -->
    <uses-permission android:name="com.droidoxy.easymoneyrewards.permission.C2D_MESSAGE" />
    <permission android:name="com.cashbuddy.paytmcash.permission.C2D_MESSAGE" android:protectionLevel="signature" />

    <application
        android:name="com.cashbuddy.paytmcash.app.App"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <activity
            android:name="com.cashbuddy.paytmcash.AppActivity"
            android:configChanges="keyboardHidden|orientation"
            android:label="@string/app_name"
            android:theme="@style/AppLTheme"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Registering Additional Activities -->
        <activity android:name="com.cashbuddy.paytmcash.VideosActivity" />
        <activity android:name="com.cashbuddy.paytmcash.RecoveryActivity" />
        <activity android:name="com.cashbuddy.paytmcash.RedeemActivity" />
        <activity android:name="com.cashbuddy.paytmcash.InstructionsActivity" />
        <activity android:name="com.cashbuddy.paytmcash.EarningHistoryActivity" />
        <activity android:name="com.cashbuddy.paytmcash.RedeemHistoryActivity" />
        <activity android:name="com.cashbuddy.paytmcash.AboutActivity" />
        <activity android:name="com.cashbuddy.paytmcash.ReferActivity" />
        <activity android:name="com.cashbuddy.paytmcash.ErrorActivity" />
        <activity android:name="com.cashbuddy.paytmcash.MainActivity" android:theme="@style/AppLTheme" />
        <activity android:name="com.cashbuddy.paytmcash.LoginActivity" android:configChanges="keyboardHidden|orientation" android:screenOrientation="portrait" />
        <activity android:name="com.cashbuddy.paytmcash.SignupActivity" android:configChanges="keyboardHidden|orientation" android:screenOrientation="portrait" />
        <activity android:name="com.cashbuddy.paytmcash.IntroActivity" android:theme="@style/AppTheme.NoActionBar" />


        <!-- The Finest Artist Activities -->
        <activity android:name="com.thefinestartist.ytpa.YouTubePlayerActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:screenOrientation="sensor" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
        <meta-data android:name="com.thefinestartist.ytpa.YouTubePlayerActivity.ApiKey" android:value="AIzaSyAOfxiG4aV66h3XmssCEkP3qCvCqMbDGDI" />


        <!-- StartApp Components -->

        <activity
            android:name="com.startapp.android.publish.ads.list3d.List3DActivity"
            android:theme="@android:style/Theme" />
        <activity
            android:name="com.startapp.android.publish.adsCommon.activities.OverlayActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@android:style/Theme.Translucent" />
        <activity
            android:name="com.startapp.android.publish.adsCommon.activities.FullScreenActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@android:style/Theme" />
        <service android:name="com.startapp.android.publish.common.metaData.PeriodicMetaDataService" />
        <service android:name="com.startapp.android.publish.common.metaData.InfoEventService" />
        <receiver android:name="com.startapp.android.publish.common.metaData.BootCompleteListener" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

        <!-- End of StartApp activities integration -->

        <!-- Component that firebase needs -->
        <service android:name="com.cashbuddy.paytmcash.MyFirebaseMessagingService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
        <service android:name="com.cashbuddy.paytmcash.MyFirebaseInstanceIDService">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>

        <!-- the libraries that google play service configuration need to use -->
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
        <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="[ADMOB_APP_ID]"/>
    </application>
</manifest>