Created
April 19, 2022 20:49
-
-
Save saymanrifat/634a18e4725dfdcf4b01b2606a23f0db to your computer and use it in GitHub Desktop.
Banner Ads Best Practices
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View | |
android:layout_width="match_parent" | |
android:layout_height="5dp" | |
android:background="#FFEB3B" | |
app:layout_constraintBottom_toTopOf="@+id/linearLayout" /> | |
<LinearLayout | |
android:id="@+id/linearLayout" | |
android:layout_width="match_parent" | |
android:layout_height="60dp" | |
android:background="#FF5722" | |
android:gravity="center" | |
android:orientation="vertical" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent"> | |
<com.google.android.gms.ads.AdView | |
android:visibility="visible" | |
android:id="@+id/adView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_centerHorizontal="true" | |
app:adSize="BANNER" | |
app:adUnitId="ca-app-pub-7490895093814553/1122447152"> | |
</com.google.android.gms.ads.AdView> | |
</LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment