1

I have a fragment with a ViewPager. I am showing an AdMob banner of the bottom of the fragment.

For a specific page I would like not to show the banner, as I want to use the whole screen space to display the information.

Is it allowed to setVisibility(View.GONE) on the banner for a specific page, then back to setVisibility(View.VISIBLE) for the other pages. Or is there a better way to do that?

Daniele B
  • 19,801
  • 29
  • 115
  • 173
  • 1
    In case the banner revenue is also based on the impression time, I am wondering if AdMob my think hiding the banner is a non-fair behaviour – Daniele B Nov 03 '14 at 14:06

2 Answers2

1

It's allowed.

What isn't allowed are 2 banners in one activity !

Daniel M.
  • 486
  • 5
  • 7
1

Be careful though, you should call adView.pause(), when not showing the banner and adView.resume() when showing it again. This way your app will not mess with your and Google's statistics

Michael
  • 815
  • 1
  • 6
  • 23