Skip to content

Commit

Permalink
Mintegral/16.1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed May 12, 2022
1 parent bdd2dcd commit 6dbd3ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Mintegral/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 16.1.11.2
* Add mapping for "load no ad" error message to MAX no fill.

## 16.1.11.1
* Update ad display failed error code.

Expand Down
2 changes: 1 addition & 1 deletion Mintegral/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
private val versionMajor = 16
private val versionMinor = 1
private val versionPatch = 11
private val versionAdapterPatch = 1
private val versionAdapterPatch = 2

val libraryVersionName by extra("${versionMajor}.${versionMinor}.${versionPatch}.${versionAdapterPatch}")
val libraryVersionCode by extra((versionMajor * 1000000) + (versionMinor * 10000) + (versionPatch * 100) + versionAdapterPatch)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public class MintegralMediationAdapter
private final static String NO_FILL_2 = "no ads available";
private final static String NO_FILL_3 = "no server ads available";
private final static String NO_FILL_4 = "no ads source";
private final static String NO_FILL_5 = "load no ad";
private final static String NETWORK_ERROR = "network exception";
private final static String BAD_REQUEST = "request parameter is null";
private final static String TIMEOUT = "load timeout";
Expand Down Expand Up @@ -631,8 +632,9 @@ private static MaxAdapterError toMaxError(final String mintegralError)
{
adapterError = MaxAdapterError.NOT_INITIALIZED;
}
else if ( NO_FILL_1.contains( mintegralError ) || NO_FILL_2.contains( mintegralError )
|| NO_FILL_3.contains( mintegralError ) || NO_FILL_4.contains( mintegralError ) || mintegralError.contains( EXCEPTION_RETURN_EMPTY ) )
else if ( mintegralError.contains( NO_FILL_1 ) || mintegralError.contains( NO_FILL_2 )
|| mintegralError.contains( NO_FILL_3 ) || mintegralError.contains( NO_FILL_4 )
|| mintegralError.contains( NO_FILL_5 ) || mintegralError.contains( EXCEPTION_RETURN_EMPTY ) )
{
adapterError = MaxAdapterError.NO_FILL;
}
Expand Down

0 comments on commit 6dbd3ad

Please sign in to comment.