I am trying to run a Keyword Report. It runs fine until I add a column
for the Conversion Rate. Then I get the following message:

One or more report job parameters is invalid. The following columns
are not supported by the Report Type Keyword : [ConversionRate]

Does anyone know what is the matter?

The code I am using:

// Set up service connection.
                  ReportService service = new ReportService();
                  // Define SOAP headers.
                  service.emailValue = new email();
                  service.emailValue.Text = new String[] { email };
                  service.passwordValue = new password();
                  service.passwordValue.Text = new String[]
{password};

                  //get client value by either email or id
                  if (clientEmail != "")
                  {
                    service.clientEmailValue = new clientEmail();
                    service.clientEmailValue.Text = new String[]
{clientEmail};
                  }
                  else if (clientID != "")
                  {
                    service.clientCustomerIdValue = new
clientCustomerId();
                    service.clientCustomerIdValue.Text = new String[]
{ clientID };
                  }

                  service.useragentValue = new useragent();
                  service.useragentValue.Text = new String[]
{useragent};
                  service.developerTokenValue = new developerToken();
                  service.developerTokenValue.Text = new String[]
{developerToken};
                  service.applicationTokenValue = new
applicationToken();
                  service.applicationTokenValue.Text = new String[]
{applicationToken};

                  // Create report job structure.
                  DefinedReportJob job = new DefinedReportJob();
                  job.selectedReportType = "Keyword";
                  job.name = "Keyword Report";
                  job.aggregationTypes = new String[] {"Summary"};
                  job.adWordsType = AdWordsType.SearchOnly;
                  job.keywordType = KeywordType.Broad;
                  job.startDay = dStart;
                  job.endDay = dEnd;
                  if (crossClient == true)
                      job.crossClient = true;
                  else
                      job.crossClient = false;

                  job.selectedColumns = new String[]
                      { "Keyword","KeywordId",
"AdGroup","AdGroupStatus","AdGroupId","AdGroupStatus","AdWordsType",
 
"AveragePosition","BottomPosition","CPC","CPM","CTR","Campaign",
 
"CampaignId","CampaignStatus","Clicks","ConversionCost",//Conversion
Cost may need to be removed if there are problems
                      "Cost","DailyBudget","Impressions",
 
"KeywordDestUrlDisplay","KeywordMinCPC","KeywordStatus","KeywordTypeDisplay",
 
"MaxContentCPC","MaximumCPC","MaximumCPM","TopPosition","ConversionRate"};

                  // Validate report.
                  try {
                    service.validateReportJob(job);

                    // Schedule report.
                    long jobId = service.scheduleReportJob(job);

                    // Wait for report to finish.
                    ReportJobStatus status =
service.getReportJobStatus(jobId);
                    while(status != ReportJobStatus.Completed &&
                        status != ReportJobStatus.Failed)
                    {

                      Thread.Sleep(30000);
                      status = service.getReportJobStatus(jobId);
                    }

                    if(status == ReportJobStatus.Failed) {
                        return "Report Job failed";
                    }

                    // Download report.
                    String url = service.getReportDownloadUrl(jobId);
                    return url;
                  }
                  catch (SoapException e)
                  {
                      return e.Message;
                  }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to