Trying to get ClickType and ConvertedClicks in Campaign Performance Report (C# Examples)

5 views
Skip to first unread message

rpay...@gmail.com

unread,
Mar 6, 2015, 12:13:24 PM3/6/15
to adwor...@googlegroups.com, turnpi...@gmail.com
Hi,

I'm trying to get a campaign performance report to download, using an adapted version of the DownloadCriteriaReport.cs from the 201409 code examples.  All of the fields below are working fine, except for ClickType and Converted Clicks, for some reason. Could you tell me why this might be?


Thanks,
Mike

public string Run(AdWordsUser user, string fileName)
        {
            ReportDefinition definition = new ReportDefinition();

            definition.reportName = "Last 7 days CAMPAIGN_PERFORMANCE_REPORT";
            definition.reportType = ReportDefinitionReportType.CAMPAIGN_PERFORMANCE_REPORT;
            definition.downloadFormat = DownloadFormat.CSV;
            definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS;

            // Create selector.
            Selector selector = new Selector();
            selector.fields = new string[] {"AccountDescriptiveName", "Date", "Device", 
          //"ClickType",
          "CampaignName",
          "ExternalCustomerId",
          "CampaignStatus", "Clicks", "Impressions",
          "Cost", "AveragePosition",
          //"ConvertedClicks", 
            "ViewThroughConversions"
      };
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages