Android Question Where to use AdBanner.Resume

abhishek007p

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?
B4X:
Sub Activity_Resume
    If AdBanner.IsInitialized = True Then
        AdBanner.Resume
    End If
End Sub

Sub Activity_Pause (UserClosed As Boolean)
    If AdBanner.IsInitialized = True Then
        AdBanner.Pause
    End If
End Sub
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…