I have a ViewPager with 3 fragments,
![enter image description here](https://fooobar.com//img/55523fc5380ea370e44cef073c44d566.png)
At the bottom of each snippet, I posted a Banner ad.
What I would like is to have one ad at the bottom of the entire presentation, and not one in each snippet
![enter image description here](https://fooobar.com//img/70d7b4a0c9d6aa3c36a7ec8784aba4b4.png)
Thus, I need to load only one ad, and it always fits at the bottom of the screen.
My activity in ViewPager is where I think the banner ad should go, but I donβt know how to move it.
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:label="@string/app_name"
android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.v4.view.ViewPager>
ad that is currently in Frags
<com.google.android.gms.ads.AdView
android:id="@+id/adMainViewTrial"
android:layout_width="320dp"
android:layout_height="50dp"
android:layout_marginTop="16dp"
ads:adSize="BANNER"
ads:adUnitId="My Id" >
</com.google.android.gms.ads.AdView>
Hope I figured it out. I still have a subtle understanding of what I'm doing here, so all help is certainly appreciated.
![enter image description here](https://fooobar.com/undefined)
Here is a picture of my application as