2014-03-04 55 views
0

是否有人使用适用于Windows 7和Windows 8 AdMob的Windows Phone应用程序的InMobi SDK?如果是,程序是什么?Windows phone 7和8 AdMob

我已经尝试过这个下面的代码

<InMobiSDK:IMAdView 
        Name="AdView1" 
         DisplayText="Test Ad" 
         AdSize="15" 
         RefreshInterval="20" 
         AnimationType="FLIP_FROM_LEFT" 
         AdTextColor="#131212" 
         AdBackgroundColor="#E40707" 
         AppId="xxxxxxxxxxxxxxx" 
         Background="#73808080" 
         Foreground="Black" 
         Height="50" 
         Width="320" 
         AdRequestFailed="AdView1_AdRequestFailed" 
         AdRequestLoaded="AdView1_AdRequestLoaded" 
         DismissFullAdScreen="AdView1_DismissFullAdScreen" 
         LeaveApplication="AdView1_LeaveApplication" 
         ShowFullAdScreen="AdView1_ShowFullAdScreen"> 
         <!-- Set IMAdRquest Properties--> 
      <InMobiSDK:IMAdView.IMAdRequest> 
       <InMobiSDK:IMAdRequest IsInTestMode="True" > 
        <InMobiSDK:IMAdRequest.UserInfo > 
         <InMobiSDK:UserInfo 
          Age="20" 
          AreaCode="110" 
          Education="MastersDegree" 
          Ethnicity="Asian" 
          Gender="Male" 
          Income="10000" 
          PostalCode="11001" 
          > 
         </InMobiSDK:UserInfo> 
        </InMobiSDK:IMAdRequest.UserInfo> 
       </InMobiSDK:IMAdRequest> 
      </InMobiSDK:IMAdView.IMAdRequest> 
     </InMobiSDK:IMAdView>  

请帮助我一样..

回答

1

根据提供的代码片段,它的旧SDK版本具有“IsInTestMode”属性,不再显示测试广告。但是,要使用较新的SDK接收测试广告,应使用诊断流向inmobi注册测试设备。

要获得测试广告:

  1. here

  2. 下载新的SDK包按照提供here

  3. 完整的Windows SDK集成指南遵循的步骤提供here注册您装置with inmobi

+0

你能帮我做全屏添加吗? – user3378953

相关问题