将vserv ads sdk集成到Windows Phone 8应用程序时,在何处添加应用程序ID和adUnitiD [英] where to add application id and adUnitiD while integrating vserv ads sdk to windows phone 8 application

查看:113
本文介绍了将vserv ads sdk集成到Windows Phone 8应用程序时,在何处添加应用程序ID和adUnitiD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已在我的应用程序中添加了此代码以获取vserv广告,并且还生成了广告单元ID和应用程序ID。

I have added this code in my app to get vserv ads and i have generated Ad unit id and application id as well.

VservAdControl VMB = VservAdControl.Instance;

public MainPage()   
   {   
        InitializeComponent();   

        VMB.DisplayAd(zoneID, LayoutRoot);        
        VMB.VservAdClosed += new EventHandler(VACCallback_OnVservAdClosing);
        VMB.VservAdNoFill += new EventHandler(VACCallback_OnVservAdNoFill);   
    }   

void VACCallback_OnVservAdClosing(object sender, EventArgs e)    
    {   
        MessageBox.Show("Ad close by user.");   
    }   
void VACCallback_OnVservAdNoFill(object sender, EventArgs e)   
    {    
        if (adGrid != null)    
            adGrid.Visibility = Visibility.Collapsed;   
    }

但是在我的代码中将这两个ID添加到哪里以请求广告?我需要设置VservAdControl实例的任何属性吗?

But where to add these two ids in my code to request the ads ?? Is there any property of VservAdControl Instance i need to set ??

推荐答案

我建议您使用测试ID代替ID你有。有一段时间,测试时没有广告可用。他们可能会让您相信即使您没有做错事。

I would recommend you to use test id's instead of the ID you have. Some time there are no ads available at the moment of testing. They may make you believe that you are doing something wrong even when you are not.

这是测试ID。首先测试这些。

here are the test ids. Test on these first.

广告牌测试区ID:8063

Billboard Test ZoneID: 8063

横幅测试区ID:20846

Banner Test ZoneID: 20846

来源: https: //docs.google.com/document/d/1UPyMmCD3GApJ-GauTKo53hjtTcnugF4YuUSA5d28GrI/edit?pli=1#

这篇关于将vserv ads sdk集成到Windows Phone 8应用程序时,在何处添加应用程序ID和adUnitiD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆