# GetRewardAdLoadedAdMob

## Description

Returns 1 if there is an AdMob reward ad preloaded and ready to be displayed, otherwise 0. If so you can display it with ShowRewardAdAdMob. Adverts are preloaded as soon as you set your AdMob reward details and after every reward advert is dismissed by the user. If this command continues to return 0 then ad loading may have failed due to the provider running out of ads and AGK will stop trying to load them. In this case you should try your other ad providers instead. If you find all your ad providers are returning 0 then you can try calling ShowRewardAdAdMob anyway, it will not display anything as there is nothing loaded, but it will restart the loading process to see if any new adverts have become available.

## Definition

integer GetRewardAdLoadedAdMob()

int agk::GetRewardAdLoadedAdMob()