PubMatic Android SDK provides a PubMaticSDK class you can use to debug your ads from PubMatic or to get more information about the ad flow. Enable these features by setting an appropriate log level using the setLogLevel(<PMLogLevel>) method from PubMaticSDK.
SDK Log Levels
Here is how you can set a log level for PubMaticSDK:
Setting SDK Log Level
//Set log level using static method of PubMaticSDK
The LogLevel values are:
SDK Error Codes
PubMatic SDK sends a callback on ad load failure in multiple cases. The failure callback method provides a PMError object that describes the reason for failure. PMError has both an error-code and an error-message. See the table below for details and descriptions of possible error codes.
Description of error
Invalid request. May be missing mandatory parameter in request.
No ads to show
There was an error loading data from the network.
The ad server experienced a failure processing the request.
The current device’s OS is below the minimum required version.
Ad request timed out
Will not send request because the interstitial object has already been used.