Closed likun123687 closed 11 months ago
When you unload proxy you remove this script component so admob_callback
doesn't exist anymore.
If you want to do it this way you have to set new callback again:
admob.set_callback(admob_callback)
something like:
function init(self)
admob.set_callback(admob_callback)
if initialized == false then
admob.set_privacy_settings(true)
admob.request_idfa()
admob.initialize()
admob.set_max_ad_content_rating(admob.MAX_AD_CONTENT_RATING_G)
end
admob.load_interstitial(self.interstitial_ad_unit)
end
Thanks your quick reply. It solve my problem.
One more question.Shoud I call admob.load_interstitial function after receive INITIALIZATION COMPLETE event?
@likun123687 you can. It's up to you to decide when you wanna load ads depends on when you gonna show it
@likun123687 you can. It's up to you to decide when you wanna load ads depends on when you gonna show it
What will happen if I call admob.load_interstitial before i get the INITIALIZATION COMPLETE event.
@likun123687 I'm not sure, I think an error . You can't load ads before initialization
Ok, many thanks
When use this extension in collection proxy, I use the api like this:
The first i load this proxy, i get the event admob.EVENT_LOADED successfully, but when i unload this proxy and load it again, I can never get the event admob.EVENT_LOADED again. Maybe the api usage like this is not right. Any help is welcome.Thanks