Android Layout XML Example
Add a custom view FuseAdView
to your XML layout.
You specify the zone code of the banner by adding the custom attribute ad_zone_code
in the XML attributes of the view.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
...
<com.publift.fuseappsdk.ads.FuseAdView
android:id="@+id/fuse_ad_view_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:ad_zone_code="<zone_code>"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.constraintlayout.widget.ConstraintLayout>