Skip to content

If you like this plugin, please, rate it on Fab. Thank you!

Ad load errors

When an ad fails to load, an OnFailedToLoad delegate is broadcast which provides a LoadAdError struct.

The following example shows the information available when an ad fails to load:

#include "GoogleAdMobAdError.h"
// ...
void UYourClass::OnFailedToLoad(const FGoogleAdMobAdError& LoadAdError, const FGoogleAdMobResponseInfo& ResponseInfo)
{
    LoadAdError.Code;
    LoadAdError.Message;
    LoadAdError.Domain;
    LoadAdError.Cause.Code;
    LoadAdError.Cause.Message;
    LoadAdError.Cause.Domain;
    LoadAdError.FullError;
}

For errors under the domain com.google.admob on iOS and com.google.android.gms.ads on Android, the message can be looked up in the Resolve common onboarding issues article for a more detailed explanation and possible actions that can be taken to resolve the issue.