Android Question Where to use AdBanner.Resume


Active Member
Licensed User
Longtime User
What is the use of AdBanner.Resume and AdBanner.Pause found in Admob library and where exactly we should use it?

i have received 'Modified ad code: Resizing Ad Frames' policy violation email for few of my apps. wondering if we need to pause or hide the ads if we are on different activity or showing a msgbox on main activity.

is this code correct?
Sub Activity_Resume
    If AdBanner.IsInitialized = True Then
    End If
End Sub

Sub Activity_Pause (UserClosed As Boolean)
    If AdBanner.IsInitialized = True Then
    End If
End Sub