0

我如何使用 JAVA 编辑 Applovin maxads:adUnitId

        <com.applovin.mediation.ads.MaxAdView
            xmlns:maxads="http://schemas.applovin.com/android/1.0"
            maxads:adUnitId="YOUR_AD_UNIT_ID"
            android:id="@+id/banner_ad_view"
            android:layout_width="match_parent"
            android:layout_alignParentBottom="true"
            android:layout_height="@dimen/banner_height"
            android:background="@android:color/white" /> 

我尝试使用 setExtraParameter() 对其进行编辑,但没有成功

com.applovin.mediation.ads.MaxAdView AdUnitId = findViewById(R.id.banner_ad_view);
AdUnitId.setExtraParameter("adUnitId", "NEW_AD_UNIT_ID");
4

0 回答 0