This is a banner format could be placed in scrolling content:
	
	
		
			
				
					
						 
					
				
			
			
				
					
						
							 developers.google.com
						
					
					developers.google.com
				
			
		
	
I tried to create the code base in this Erel's code (Adaptive Banner):
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
But I can't see this method "setAdsize" in Adview to set the height to the banner:
Alternatively, for an existing AdView, set the ad size using AdView.setAdSize(AdSize adSize).
Or, maybe, I couldn't figure out how to use it.
Any help to solved this issue are welcome.
Thanks in advance.
			
			 
					
				Inline adaptive banners | Android | Google for Developers
 developers.google.com
						
					
					developers.google.com
				I tried to create the code base in this Erel's code (Adaptive Banner):
			
				B4X:
			
		
		
		Sub GetInlineAdaptiveAdSize As Map
    Dim ctxt As JavaObject
    ctxt.InitializeContext
    Dim AdSize As JavaObject
    Dim width As Int = 100%x / GetDeviceLayoutValues.Scale
    Dim Native As JavaObject = AdSize.InitializeStatic("com.google.android.gms.ads.AdSize").RunMethod("getCurrentOrientationInlineAdaptiveBannerAdSize", Array(ctxt, width))
    Return CreateMap("native": Native, "width": Native.RunMethod("getWidthInPixels", Array(ctxt)), _
        "height": Native.RunMethod("getHeightInPixels", Array(ctxt)))
End SubAlternatively, for an existing AdView, set the ad size using AdView.setAdSize(AdSize adSize).
Or, maybe, I couldn't figure out how to use it.
Any help to solved this issue are welcome.
Thanks in advance.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		