Android 如何在版面上放置方形广告

Android 如何在版面上放置方形广告,android,Android,我想在我的应用程序布局上放置方形广告我尽了最大努力,但没有得到任何关于方形广告的信息我正在添加图片,请给我一些建议你可以将ConstraintLayout与应用程序一起使用:布局\u constraintDimensionRatio: <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

我想在我的应用程序布局上放置方形广告我尽了最大努力,但没有得到任何关于方形广告的信息我正在添加图片,请给我一些建议

你可以将ConstraintLayout与应用程序一起使用:布局\u constraintDimensionRatio:

<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<ImageView
    android:id="@+id/imageView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="8dp"
    android:layout_marginEnd="8dp"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintDimensionRatio="H,1:1" />


我想添加像这样的admob广告,这有可能吗?你可以放任何你想要的视图。app:layout_constraintDimensionRatio适用于放置在ConstraintLayout中的任何视图,但它是什么样的广告横幅,原生?