Curious about how to update AndroidManifest.xml in Unity

1,219 views
Skip to first unread message

umair...@gmail.com

unread,
May 3, 2019, 1:12:53 AM5/3/19
to Google Mobile Ads SDK Developers
Hi, I am using unity 2017 & unity 2018.
recently you have mentioned that if you are using "If your app uses Ad Manager instead of AdMob, add the following <meta-data> tag to the AndroidManifest.xml file in the Assets/Plugins/Android/GoogleMobileAdsPlugin directory of your Unity app, instead of the tag shown above."
then add this line, otherwise add AppId in manifest. what does it means, 
As I am making mediation of different ad networks. which technique should I use
https://developers.google.com/admob/unity/start
Kindly help me out from this issue

mobileadssdk...@google.com

unread,
May 3, 2019, 2:59:53 AM5/3/19
to google-adm...@googlegroups.com, umair...@gmail.com
Hi Umair,

Thank you for reaching out to us. We are here to assist you with your concern.

To answer your question: if you are using the Google Ad Manager SDK along with the Mobile Ads SDK, then you must use the second set of metadata as described in this page. Specifically:
<manifest>
    <application>
        <meta-data
            android:name="com.google.android.gms.ads.AD_MANAGER_APP"
            android:value="true"/>
    </application>
</manifest>

However, if you are only using the Mobile Ads SDK by itself, then you must use only the first set of metadata. Specifically:
<manifest>
    <application>
        <!-- Your AdMob app ID will look similar to this
        sample ID: ca-app-pub-3940256099942544~3347511713 -->
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="YOUR_ADMOB_APP_ID"/>
    </application>
</manifest>

Let us know if you have any other questions.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/685cd310-8108-4cb7-acbb-e921e1d9013e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages