0

我已集成appLovin到我的应用程序中,并且广告显示良好。

问题是我dont receive any callbacks来自他们的听众

示例代码:

AppLovinSdk.initializeSdk(m_context.getApplicationContext());
    sdk = AppLovinSdk.getInstance(context.getApplicationContext());
    adDialog = AppLovinInterstitialAd.create(sdk, (Activity) m_context);
    adDialog.setAdDisplayListener(new AppLovinAdDisplayListener() {
        @Override
        public void adDisplayed(AppLovinAd appLovinAd) {
            Log.d(OutbidManager.TAG, "adDisplayed apploving");
        }

        @Override
        public void adHidden(AppLovinAd appLovinAd) {
            Log.d(OutbidManager.TAG, "adHidden apploving");
        }
    });
    adDialog.setAdLoadListener(new AppLovinAdLoadListener() {
        @Override
        public void adReceived(AppLovinAd appLovinAd) {
            Log.d(OutbidManager.TAG, "adReceived apploving");
        }

        @Override
        public void failedToReceiveAd(int i) {
            Log.d(OutbidManager.TAG, "failedToReceiveAd apploving");
        }
    });

    adDialog.setAdClickListener(new AppLovinAdClickListener() {
        @Override
        public void adClicked(AppLovinAd appLovinAd) {
            Log.d(OutbidManager.TAG, "adClicked apploving");
        }
    });

为了展示我使用的广告:

   if(adDialog.isAdReadyToDisplay())
            {
                Log.d(TAG, "Displaying applovin");
                adDialog.show();
            }
4

0 回答 0