Banner ad make empty space when it is not loading or there is no an Internet

when I open my app without Internet and banner ad not load it makes empty space on screen
I want to make screen hide the space when the ad is not loading

Hi @Mahmoud_El_Shahed,
You can try this way:
You will use the network component:
if network1 . isconnected
set ad1.visible to true
set ad1.visible to false
Another way is to set ad1.visble to false onAdFaieldToLoad event.