ComScore Api的学习
数据源:如谷歌 bing 雅虎等媒体的数据库
搜索领域:比如人口普查(这些搜索词是有限制的,并非所有的东西都涵盖在该api中)
调用该api(ComScore api:实现了IReport和IManagement两个接口),调用相应的方法,填入对应参数,就能够获取到该xml形式的数据信息
注:该api是由第三方提供的,使用该api的webService需要登录用户名密码,需要付费使用。(ComScore:美国互联网流量监测机构)
DiscoverParameters(找参数):
DiscoverParameterValue(通过值找参数):
FetchMedia(取得媒体):
SubmitReport(提交报告):
QueryReport(查询报告):
PingReport(ping报告):
PingReportStatus(ping报告状态):
FetchReport(取得报告):
FetchStringReportResponse(取得报告的字符串返回值):
GetReportDetails(获得报告细节):
GetReportUsageByClient(通过客户端获得报告的使用率):
GetReportUsageByUser(通过用户获得报告的使用率):
GetActiveReports(获得激活的报告):
GetReports(获得报告):
GetAllReportUsageByClient(通过客户端获得所有报告的使用率):
GetAllReportUsageByUser(通过用户获得所有报告的使用率):
GetAllActiveReports(获得所有激活的报告):
GetAllReports(获得所有的报告):
MediaId(媒体的Id号):
TargetId(目标的Id号[枚举值:-1|0|1]):
Duration(时间段:1-365):
Impressions(使用FetchPageViews方法获得最大值):
FrequencyCap(零上不封顶正数):
ReachFactor(0-100):
CPM(任意正数):
FetchPageViews(方法:检索总页数)
Key Measures(主要措施):
Audience Duplication(受众重叠):
Media Trend(媒体趋势):
Target Trend(目标趋势):
Cross Visiting(跨域访问):
Long Term Media Trend(长期媒体趋势):
Demographic Profile(人口概况):
Source/Loss(源/亏损):
Change Media Trend改变媒体趋势:
Change Target Trend:改变目标趋势:
Multi-Country key Measures:多国关键措施
Key Measures-Panel Only:关键措施-仅面板对比
Ad Metrix Publisher(Metrix广告发布商):
Ad Metrix Demographic Profile(Metrix广告人口状况):
Ad Metrix Publisher Trend(Metrix广告发布商趋势):
Ad Metrix Advertiser(Metrix广告主):
Video Metrix Demographic Profile(Metrix视频人口状况):
Video Metrix Media Trend(Metrix视频媒体的发展趋势):
Video Metrix Key Measures(Metrix 视频媒体的主要措施):
Plan Metrix Key Measures(Metrix计划的主要措施):
Plan Metix Site Audience Profile(Metrix计划的网站受众情况):
Plan Metrix Consumer Target Profile(Metrix计划的目标客户情况):
Plan Metrix Cross Visiting(Metrix计划的交叉访问):
Plan Metrix Key Measures Multi Target(Metrix计划的多目标的主要措施):
GSMA Ranking(GMSA排名):
MobiLens Audience Profile(MobiLens受众情况):
MobiLens Trend(MobiLens 发展趋势):
Mobile Metrix Key Measures(移动Metrix的主要措施):
Mobile Metrix Media Tend(移动Metrix媒体的发展趋势):
Mobile Metrix Demographic Profile(移动Metrix的人口情况):
以KeyMeasures这个报告为例:1.根据https://api.comscore.com/KeyMeasures.asmx 创建KeyMeasure的webservice,获得KeyMeasures这个类,调用方法DiscoverParameters:
KeyMeasure.KeyMeasures service=new KeyMeasure.KeyMeasures();
DiscoverParametersResult result= Service.DiscoverParameters();
通过string strXml= XMLHelper< DiscoverParametersResult>.Serialize(result);序列化为xml格式数据,在写入到浏览器中
String fileName=Path.GetTempFileName();
Using(TextWriter writer=new StreamWriter(fileName)){
Writer.Write(strXml);
}
browser.Navigate(fileName);
获得的报告:ReportId=”2” ReportName=” Demographic Report”
参数列表:
1.Geography
Parameter: Name=”Geography” id=”geo” Required=”true” 2.Location
Parameter: Name=”Location” id=”loc” Description=”Location” Required=”true” SupportsMultiple=”true”
3.Time Types
Parameter: Name=”Time Types” id=”timeType” Description=”Time Types” Required=”true”
Dependency: ParameterId=”geo”
4.Time Period
Parameter:Name=”Time Period” id=”timePeriod” Description=”TimePeriod” Required=”true”
Dependency:ParamterId=”geo”
Dependency:ParameterId=”timeType”
5.Base Target Group
Paramter:Name:” Base Target Group” Id=”targetGroupBase” Description=”TimePeriod” Required=”true”
Dependency:ParameterId=”geo”
Dependency:ParameterId=”timeType”
Dependency:ParameterId=”timePeriod”
6.Target
Parameter:Name=”Target” Id=”targetBase” Description=”Base Target”
Dependency:ParameterId=”geo”
Dependency:ParameterId=”timeType”
Dependency:ParameterId=”timePeriod”
7.Media Set Type
Parameter:Name=”Media Set Type” id=”mediaSetType” Description=”used for media queries only,not required by report.”
Dependency:ParameterId=”geo”
Dependency:ParameterId=”timeType”
Dependency:ParamterrId=”timePeriod”
8.Media
Paramter:Name=”Media” id=”media” Description=”Media”
Dependency:ParameterId=”geo”
Dependency:ParameterId=”timeType”
Dependency:ParameterId=”timePeriod”
De[endency:ParameterId=”mediaSetType”
9.Measures
Parameter:Name=”Measures” Id=”measure” Description=”Measure” Required=”true” SupportsMultiple="true"
Dependency:ParameterId="geo"
Dependency:ParameterId="timeType"
10. Nesting Options
Parameter:Name=” Nesting Options” id=” nestingOptions” Description="Nesting Options"
Dependency:ParameterId=”loc”