I'm using NativeLib by Dr. Moriarty.
applovin_max is in autoload.
loading interstitial (first arg should be replaced with ad unit id from Applovin MAX):
applovin_max.loadInterstitial("MAX AD UNIT ID", self.get_instance_id())
later function on loaded then show the ad:
func _on_interstitial_loaded(id):
applovin_max.showInterstitial(id)
finally call the function to show the ad (the id argument throws an error):
_on_interstitial_loaded(id)
i followed a tutorial on youtube by finepointcgi and it worked fine for him.