I have a situation where i would like to disable an Adview and prefer from xml. The adview itself looks like this in my layout file:
<com.google.android.gms.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="ca-app-pub-12345678934343/85666666">
How can i disable this ? one way is to wrap it around a linearlayout and then hide that layout but i want to disable the actual network call too, so is there a attribute in adview i can use etc ? Its necessary to do it by xml because im going to incorporate data binding to turn the ad on and off.