AppLovin听众不工作

时间:2016-10-06 06:39:17

标签: android applovin

我已在我的应用中集成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();
            }

0 个答案:

没有答案