Important AppLovinMAX News

For anyone using the ApplovinMAX plugin and may have missed the change when the plugin was updated:

Your AppLovinSdkKey now needs to be part of applovinMax.init, not build.settings. If you do not make this change, the plugin will fail silently and not load ads.

2 Likes

Is ApplovinMax.hide() no longer a function?

When I loop through through the ApplovinMax function I am not seeing it.

Dec 04 21:15:05.465: AppLovinMax API:   setCreativeDebuggerEnabled
Dec 04 21:15:05.465: AppLovinMax API:   init
Dec 04 21:15:05.465: AppLovinMax API:   setIsAgeRestrictedUser
Dec 04 21:15:05.465: AppLovinMax API:   class
Dec 04 21:15:05.465: AppLovinMax API:   showDebugger
Dec 04 21:15:05.465: AppLovinMax API:   isLoaded
Dec 04 21:15:05.465: AppLovinMax API:   show
Dec 04 21:15:05.465: AppLovinMax API:   setUserDetails
Dec 04 21:15:05.465: AppLovinMax API:   version
Dec 04 21:15:05.465: AppLovinMax API:   publisherId
Dec 04 21:15:05.465: AppLovinMax API:   load
Dec 04 21:15:05.465: AppLovinMax API:   __metatableOrig
Dec 04 21:15:05.465: AppLovinMax API:   __index
Dec 04 21:15:05.466: AppLovinMax API:   name

Hide should still be there

Hi Scott,

Not sure how I am still missing it, I deleted all plugins, redownloaded but no luck.

Eventually I just manually added the following to the plugin locally and it works.

function lib.hide()
    showWarning("applovinMax.hide()")
end

Any hope we can get a manual placement for banner y position? (The safe area buffer is pushing the banner too far into app content)

It looks like the logic is already there (just defaults to 0):

// make sure the banner frame is visible.
        // adjust it if the user has specified 'y' which will render it partially off-screen
        NSUInteger ySnap = 0;
        if (newBannerY + bannerFrame.size.height > orientedHeight) {
          logMsg(L, WARNING_MSG, @"Banner y position off screen. Adjusting position.");
          ySnap = newBannerY - orientedHeight + bannerFrame.size.height;
        }
        bannerFrame.origin.y = 0;
      }
      else {          
        if (UTF8IsEqual(yAlign, BANNER_ALIGN_TOP)) {
          bannerFrame.origin.y = bannerTopY;
        }
        else if (UTF8IsEqual(yAlign, BANNER_ALIGN_CENTER)) {
          bannerFrame.origin.y = bannerCenterY;
        }
        else if (UTF8IsEqual(yAlign, BANNER_ALIGN_BOTTOM)) {
          bannerFrame.origin.y = bannerBottomY;
        }
      }

You should be able to set y offset, I updated docs and added hide method to lua stub

1 Like

Thank you Scott, much appreciated.