code property

int? code
final

Gets the error code. Possible error codes:

  • App Id Missing (The ad request was not made due to a missing app ID): 8
  • Invalid request (The ad request was invalid; for instance, the ad unit ID was incorrect): 1
  • Network error (The ad request was unsuccessful due to network connectivity): 2
  • No fill (The ad request was successful, but no ad was returned due to lack of ad inventory): 3

See this for more info

If this comes from Full-screen ads, the possible error codes are:

  • Ad Reused (You're reusing an ad. This will rarely happen because this error is handled by the plugin): 1
  • Ad not ready (The ad is not ready to be shown): 2
  • App Not In Foreground (The app must be in foreground so the ad can be shown): 3

See this for more info

Global error codes:

  • Internal error (Something happened internally; for instance, an invalid response was received from the ad server): 0

For more info, read the documentation

Implementation

final int? code;