I have a snackbar which overlays the banner ad. It has a LENGTH_INDEFINITE because I have some functionality I need to complete after the snackbar is displayed.
Would this be considered a violation of the admob's banner policy described here -
CodePudding user response:
Anchor your Snackbar on the AdView, then it will be always displayed above the AdView.
Call below on your SnackBar before displaying it to the user.
setAnchorView(findViewById<AdView>(R.id.your_adview_id))
More details here: SnackBar Android