googleads / googleads-mobile-android-native-templates

Apache License 2.0
116 stars 102 forks source link

Missing lifecycle methods #13

Closed arjunm8 closed 4 years ago

arjunm8 commented 4 years ago

The templateView doesn't seem to have methods like .pause(), .resume(), etc like other standard adViews.

Is this something that's natively handled now because it used to be practice to call these in the overriden activity lifecycle methods to prevent displaying ads when not in foreground.

Sorry if this is a dumb Q.

stowy commented 4 years ago

Hi @arjunm8 - no worries happy to clarify. Unlike banner ads, native ad views don't have such methods. Any such methods are on the native ads themselves.

If you consult our documentation you will find all the details around handling the ad lifecycle. Note that native ads do not have pause or resume methods but they do have a destroy() method.

arjunnvn commented 3 years ago

Ah makes sense, Thanks!