Skip to content

Commit

Permalink
Optimize mobile ads
Browse files Browse the repository at this point in the history
Enable manifest flags as recommended.
  • Loading branch information
pranavpandey committed Jan 9, 2025
1 parent 0b46dc3 commit 9142fc8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dynamic-ads/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022-2023 Pranav Pandey
Copyright 2022-2025 Pranav Pandey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -21,4 +21,18 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application>

<!-- Optimize Google Mobile Ads SDK initialization -->
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_INITIALIZATION"
android:value="true"/>

<!-- Optimize ad loading -->
<meta-data
android:name="com.google.android.gms.ads.flag.OPTIMIZE_AD_LOADING"
android:value="true"/>

</application>

</manifest>

0 comments on commit 9142fc8

Please sign in to comment.