C# 如何使用google.api.AdSense从google AdSense获取CTR值

C# 如何使用google.api.AdSense从google AdSense获取CTR值,c#,.net,google-api,adsense,C#,.net,Google Api,Adsense,我正在使用Google.api.AdSense从C#windows窗体获取AdSense数据。。 我可以获得adsense信息和度量报告,使用度量我可以选择一些值,例如 ["PAGE_VIEWS", "INDIVIDUAL_AD_IMPRESSIONS", "CLICKS","AD_REQUESTS_CTR", "INDIVIDUAL_AD_IMPRESSIONS_CTR", "COST_PER_CLICK","AD_REQUESTS_RPM", "INDIVIDUAL_AD_IMPRESSIO

我正在使用Google.api.AdSense从C#windows窗体获取AdSense数据。。 我可以获得adsense信息和度量报告,使用度量我可以选择一些值,例如

["PAGE_VIEWS",
"INDIVIDUAL_AD_IMPRESSIONS",
"CLICKS","AD_REQUESTS_CTR",
"INDIVIDUAL_AD_IMPRESSIONS_CTR",
"COST_PER_CLICK","AD_REQUESTS_RPM",
"INDIVIDUAL_AD_IMPRESSIONS_RPM",
"AD_REQUESTS_COVERAGE","EARNINGS"]
下面是此过程的代码:

public AdsenseReportsGenerateResponse GenerateReport(Account adSenseAccount, DateTime startDate, DateTime endDate)
{
    var reportRequest = service.Accounts.Reports.Generate(
        adSenseAccount.Id, startDate.ToString(DateFormat), endDate.ToString(DateFormat));

    reportRequest.Metric = new List<string>
    {
     "PAGE_VIEWS","INDIVIDUAL_AD_IMPRESSIONS", "CLICKS","AD_REQUESTS_CTR","INDIVIDUAL_AD_IMPRESSIONS_CTR",
     "COST_PER_CLICK","AD_REQUESTS_RPM","INDIVIDUAL_AD_IMPRESSIONS_RPM", "AD_REQUESTS_COVERAGE","EARNINGS"
    };
    reportRequest.Dimension = new List<string> { "DATE" };
    reportRequest.Sort = new List<string> { "+DATE" };

    // Run report.
    var reportResponse = reportRequest.Execute();
    ReportUtils.FillGapsDates(reportResponse, startDate, endDate);

    if (!reportResponse.Rows.IsNullOrEmpty())
    {
        ReportUtils.DisplayHeaders(reportResponse.Headers);
        Console.WriteLine("Showing data from {0} to {1}", reportResponse.StartDate, reportResponse.EndDate);
        return reportResponse;
    }
    else
    {
        return null;
    }
}
这是正确的吗

INDIVIDUAL_AD_IMPRESSIONS_CTR * 2 * 100