Java Code Examples for com.mopub.mobileads.MoPubErrorCode#NETWORK_INVALID_STATE

The following examples show how to use com.mopub.mobileads.MoPubErrorCode#NETWORK_INVALID_STATE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AppLovinCustomEventBanner.java    From SDK-Network-Adapters with MIT License 6 votes vote down vote up
private static MoPubErrorCode toMoPubErrorCode(final int applovinErrorCode)
{
    if ( applovinErrorCode == AppLovinErrorCodes.NO_FILL )
    {
        return MoPubErrorCode.NETWORK_NO_FILL;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.UNSPECIFIED_ERROR )
    {
        return MoPubErrorCode.NETWORK_INVALID_STATE;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.NO_NETWORK )
    {
        return MoPubErrorCode.NO_CONNECTION;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.FETCH_AD_TIMEOUT )
    {
        return MoPubErrorCode.NETWORK_TIMEOUT;
    }
    else
    {
        return MoPubErrorCode.UNSPECIFIED;
    }
}
 
Example 2
Source File: AppLovinCustomEventRewardedVideo.java    From SDK-Network-Adapters with MIT License 6 votes vote down vote up
private static MoPubErrorCode toMoPubErrorCode(final int applovinErrorCode)
{
    if ( applovinErrorCode == AppLovinErrorCodes.NO_FILL )
    {
        return MoPubErrorCode.NETWORK_NO_FILL;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.UNSPECIFIED_ERROR )
    {
        return MoPubErrorCode.NETWORK_INVALID_STATE;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.NO_NETWORK )
    {
        return MoPubErrorCode.NO_CONNECTION;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.FETCH_AD_TIMEOUT )
    {
        return MoPubErrorCode.NETWORK_TIMEOUT;
    }
    else
    {
        return MoPubErrorCode.UNSPECIFIED;
    }
}
 
Example 3
Source File: AppLovinCustomEventInterstitial.java    From SDK-Network-Adapters with MIT License 6 votes vote down vote up
private static MoPubErrorCode toMoPubErrorCode(final int applovinErrorCode)
{
    if ( applovinErrorCode == AppLovinErrorCodes.NO_FILL )
    {
        return MoPubErrorCode.NETWORK_NO_FILL;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.UNSPECIFIED_ERROR )
    {
        return MoPubErrorCode.NETWORK_INVALID_STATE;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.NO_NETWORK )
    {
        return MoPubErrorCode.NO_CONNECTION;
    }
    else if ( applovinErrorCode == AppLovinErrorCodes.FETCH_AD_TIMEOUT )
    {
        return MoPubErrorCode.NETWORK_TIMEOUT;
    }
    else
    {
        return MoPubErrorCode.UNSPECIFIED;
    }
}