0

I have integrated ads from google ad manager.Now the ad that is displayed is not from my inventory.

It shows random ads. Is this the actual behaviour because i would like to only show ad that i've created in Google Ad manager.

For Kotlin

val adRequest: AdRequest = AdRequest.Builder().build()
fragmentLiveDetailsBinding.adView?.loadAd(adRequest)

XML CODE:

`<com.google.android.gms.ads.AdView
            xmlns:ads="http://schemas.android.com/apk/res-auto"
            android:id="@+id/adView"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"
            ads:adSize="BANNER"
            ads:adUnitId="/21719602/32*****"
            app:layout_constraintEnd_toEndOf="parent"
            ads:layout_constraintStart_toStartOf="parent"
            ads:layout_constraintBottom_toBottomOf="@+id/video_view"/>`

0 Answers0