The admob smart_banner is deprecated in java code. But it isn't mark as deprecated in XML.
my xml:
<com.google.android.gms.ads.AdView
xmlns:ads="http://schemas.android.com/apk/res-auto"
android:id="@+id/adView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
ads:adSize="SMART_BANNER"
ads:adUnitId="ca-app-pub-xxx">
</com.google.android.gms.ads.AdView>
My java:
AdView mAdView = findViewById(R.id.adView);
AdRequest adRequest = new AdRequest.Builder().build();
mAdView.loadAd(adRequest);
My question here is, will smart_banner work? Do I have to change my ads code? Am I doing something wrong? Thanks friends.