2014-06-12 8 views
0

Windows Mobile 8 앱 게임을 AdMob과 통합하려고하는데 어려움을 겪고 있습니다. (최신 광고 군부의 과부자 인 sdk - 6.5.11을 사용하고 있습니다.)삽입로드 중 오류가 발생했습니다.

AdMob 배너를로드하고 표시 할 수 있지만 삽입 광고를로드하려고하면 오류가 발생합니다.

기본적으로, 광고가 나는 다음과 같은 예외를 얻을로드 할 때 : Microsoft.Phone.Interop.ni.dll에서 발생

유형 'System.SystemException'의 예외를하고 관리하기 전에 처리되지/기본 경계 유형 'System.SystemException'의 예외가 Microsoft.Phone.Interop.ni.dll에서 발생하고

SO 오류 NoFill와 INT의 광고를 수신하지 못했습니다 관리/네이티브 경계 전에 처리되지 때 내가 추가 예외를 분명히 얻는 추가를 보여 주려고 노력하십시오 :

'System.SystemException'유형의 예외가 Microsoft.Phone.Interop.ni.dll에서 발생했으며 관리/네이티브 경계 전에 처리되지 않았습니다. GoogleAds.InterstitialAd 'TaskHost.exe'(CLR C : \ windows \ system32 \ coreclr.dll : Silverlight AppDomain) : 'C : \ windows \ system32 \ ko-US \ mscorlib.debug.resources.dll'을 (를)로드했습니다. 모듈은 기호없이 만들어졌습니다.

public static void LoadAdverts() 
     { 
      runInUIThread(
       () => 
       { 
        LoadGoogleInterstitialAd();  
       }); 
     } 


     private static void LoadGoogleInterstitialAd() 
     { 
      // Initialize the ad 
      mGoogleInterstitialAd = new InterstitialAd(mGoogleInterstitialAdUnitID); 

      // Attach the interstitial event handlers. 
      mGoogleInterstitialAd.ReceivedAd += OnGoogleInterstitialAdReceived; 
      mGoogleInterstitialAd.FailedToReceiveAd += OnFailedToReceiveGoogleInterstitialAd; 
      mGoogleInterstitialAd.DismissingOverlay += OnDismissingGoogleOverlay; 

      AdRequest mGoogleInterstitialAdRequest = new AdRequest(); 
      mGoogleInterstitialAdRequest.ForceTesting = true; 

      mGoogleInterstitialAd.LoadAd(mGoogleInterstitialAdRequest); 
     } 

loadAd에() 메소드는 초기 시스템 예외를 발생시키는 하나 'System.NullReferenceException'형식의 첫째 예외 여기 로딩 내 코드

GoogleAds.DLL

발생. 어떤 도움이 크게 감사합니다

public static void DisplayOverlayAdvert() 
     { 
      // Check that the overlay ad is not already displayed. 
      if (!mIsGoogleInterstitialAdActive) 
      { 
       runInUIThread(
        () => 
        { 
         DisplayGoogleInterstitialAd(); 
        }); 
      } 
     } 

     /// <summary> 
     /// This method displays an advert in the advert container grid. 
     /// </summary> 
     private static void DisplayGoogleInterstitialAd() 
     { 
      mGoogleInterstitialAd.ShowAd(); 

      // Set the flag to true as the ad is displayed. 
      mIsGoogleInterstitialAdActive = true; 
     } 

:

그런 다음 광고를 표시합니다.

답변

0

LoadGoogleInterstitialAd 전에 DisplayGoogleInterstitialAd이 호출되고있는 것 같아요.

+0

로드가 디스플레이 전에 호출되는지 확인할 수 있습니다.로드 방법을 디스플레이 메소드에 넣기까지 했는데도 여전히 동일한 오류가 발생합니다. admob windows phone sdk에 문제가 있습니까? –

+0

죄송합니다, 좋은 생각이 없습니다. 지난 7 년 동안 Windows 전화 코드를 작성하지 않았습니다. – William

관련 문제