TapMind SDK Documentation logo

Error Reference

Error Reference for TapMind Orchestration SDK on Android.

The Orchestration SDK provides standardized error codes and messages to help diagnose initialization, configuration, network and ad-serving issues. Use the following reference to understand common error conditions and recommended troubleshooting steps.

SDK Error Codes & Messages

Error CodeError NameDescriptionRecommended Action
1001SDK_NOT_INITIALIZEDSDK initialization has not completed before an ad request was made.Initialize the SDK and wait for the onInitSuccess() callback before calling loadAd().
1002INVALID_PLACEMENTInvalid or empty placement code provided.Verify and match the placement code that provided by TapMind team.
1003NO_NETWORKNo network connection available.Check the device's internet connectivity and retry the ad request.
1004CONFIG_ERRORSDK configuration request failed or timed out.Retry the request. Contact TapMind support if the issue persists.
1005NO_FILLNo demand source returned an ad for the requested placement.This is a normal runtime condition. Retry later or use a fallback flow if applicable.
1006AD_EXPIREDThe ad has expired and can no longer to be displayed.No action required. This process is managed automatically by the SDK.
1007PKG_MISSINGPackage name is missing or invalid.Verify SDK initialization parameters and application configuration.
1008PLAY_SERVICE_MISSINGGoogle Play Services are unavailable or unsupported on the device.Ensure Google Play Services are installed, enabled, and up to date.
1009UNSUPPORTED_VERSIONThe Android version is not supported by the SDK.Upgrade the device OS or use a supported Android version.

Error Handling Best Practices

  • Always initialize the SDK before requesting ads.
  • Verify placement codes before making ad requests.
  • Handle network interruptions gracefully.
  • Implement onAdFailedToLoad() and onAdFailedToShow() callbacks for better error visibility.
  • Log error messages during development to simplify troubleshooting.
  • Use the error code and message together when contacting TapMind support.

Example Error Handling

override fun onAdFailedToLoad(error: OrchError) {
    Log.d("ORCH", "Error Code: ${error.code}")
    Log.d("ORCH", "Error Message: ${error.message}")
}

override fun onAdFailedToShow(error: OrchError) {
    Log.d("ORCH", "Error Code: ${error.code}")
    Log.d("ORCH", "Error Message: ${error.message}")
}