Skip to content

Commit

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

## 2021.10.29.2
* Update ad display failed error code.

## 2021.10.29.1
* Remove check for manual native ad assets.

Expand Down
2 changes: 1 addition & 1 deletion Line/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
private val versionMajor = 2021
private val versionMinor = 10
private val versionPatch = 29
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 @@ -108,7 +108,8 @@ public void initialize(final MaxAdapterInitializationParameters parameters, fina

//
// COPPA options
//
// NOTE: Adapter / mediated SDK has support for COPPA, but is not approved by Play Store and therefore will be filtered on COPPA traffic
// https://support.google.com/googleplay/android-developer/answer/9283445?hl=en
Boolean isAgeRestrictedUser = getPrivacySetting( "isAgeRestrictedUser", parameters );
if ( isAgeRestrictedUser != null )
{
Expand Down Expand Up @@ -167,7 +168,7 @@ public void showInterstitialAd(final MaxAdapterResponseParameters parameters, fi
if ( activityRef.get() != activity )
{
log( "Display error: Activity instance used in interstitial ad initialization is different from activity instance being used to display ad." );
listener.onInterstitialAdDisplayFailed( MaxAdapterError.INTERNAL_ERROR );
listener.onInterstitialAdDisplayFailed( new MaxAdapterError( -4205, "Ad Display Failed" ) );
return;
}

Expand Down Expand Up @@ -198,7 +199,7 @@ public void showRewardedAd(final MaxAdapterResponseParameters parameters, final
if ( activityRef.get() != activity )
{
log( "Display error: Activity instance used in rewarded ad initialization is different from activity instance being used to display ad." );
listener.onRewardedAdDisplayFailed( MaxAdapterError.INTERNAL_ERROR );
listener.onRewardedAdDisplayFailed( new MaxAdapterError( -4205, "Ad Display Failed" ) );
return;
}

Expand Down Expand Up @@ -349,7 +350,7 @@ public void onFiveAdLoadError(final FiveAdInterface ad, final FiveAdErrorCode er
public void onFiveAdViewError(final FiveAdInterface ad, final FiveAdErrorCode errorCode)
{
log( "Interstitial ad failed to show for slot id: " + ad.getSlotId() + " with error: " + errorCode );
MaxAdapterError error = toMaxError( errorCode );
MaxAdapterError error = new MaxAdapterError( -4205, "Ad Display Failed", errorCode.value, "Please Contact Us" );
listener.onInterstitialAdDisplayFailed( error );
}

Expand Down Expand Up @@ -450,7 +451,7 @@ public void onFiveAdLoadError(final FiveAdInterface ad, final FiveAdErrorCode er
public void onFiveAdViewError(final FiveAdInterface ad, final FiveAdErrorCode errorCode)
{
log( "Rewarded ad failed to show for slot id: " + ad.getSlotId() + " with error: " + errorCode );
MaxAdapterError error = toMaxError( errorCode );
MaxAdapterError error = new MaxAdapterError( -4205, "Ad Display Failed", errorCode.value, "Please Contact Us" );
listener.onRewardedAdDisplayFailed( error );
}

Expand Down Expand Up @@ -566,7 +567,7 @@ public void onFiveAdLoadError(final FiveAdInterface ad, final FiveAdErrorCode er
public void onFiveAdViewError(final FiveAdInterface ad, final FiveAdErrorCode errorCode)
{
log( adFormat.getLabel() + " ad failed to show for slot id: " + ad.getSlotId() + " with error: " + errorCode );
MaxAdapterError error = toMaxError( errorCode );
MaxAdapterError error = new MaxAdapterError( -4205, "Ad Display Failed", errorCode.value, "Please Contact Us" );
listener.onAdViewAdDisplayFailed( error );
}

Expand Down Expand Up @@ -680,7 +681,7 @@ public void onFiveAdLoadError(final FiveAdInterface ad, final FiveAdErrorCode er
public void onFiveAdViewError(final FiveAdInterface ad, final FiveAdErrorCode errorCode)
{
log( "Native " + adFormat.getLabel() + " ad failed to show for slot id: " + ad.getSlotId() + " with error: " + errorCode );
MaxAdapterError error = toMaxError( errorCode );
MaxAdapterError error = new MaxAdapterError( -4205, "Ad Display Failed", errorCode.value, "Please Contact Us" );
listener.onAdViewAdDisplayFailed( error );
}

Expand Down

0 comments on commit d0e9cbf

Please sign in to comment.