Hi.
I have been trying to integrate admob banner into my game. So far I managed to get the test banner up and running. But the problem is that it is showing all the time. I want the banner to show during gameplay, but not in the main menu, because it overlaps my buttons. I tried to hide the banner using following code, but then the banner was not visible at all.
AdMob {
publisherId: "ca-app-pub-XXXX"
testDeviceId: "DD3DXXXX"
banner: AdMob.Smart
anchors.bottom: scene.bottom
anchors.horizontalCenter: scene.horizontalCenter
z: 5
//show ad everywhere except in state main_menu
visible: main.state == "main_menu" ? false : true;
}
How can I hide the banner in the menu and show it only during the gameplay? AdMob item is a child of Scene item. My game has only one Scene (used for both menu and game).
Thanks,
Mathias