Hi,

Are you running the code below as-is, with the selector fields and 
predicate commented out? Your request must at least have some fields 
specified on the selector.

If you run the DownloadCriteriaReport.cs 
<https://github.com/googleads/googleads-dotnet-lib/blob/master/examples/AdWords/CSharp/v201406/Reporting/DownloadCriteriaReport.cs>
 example 
without changing anything, does it succeed? If not, could you provide the 
*complete* error returned? There should be more detail in the *type* and 
*trigger* elements.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<reportDownloadError>
  <ApiError>
    <type>ReportDownloadError.....</type>
    <trigger>....</trigger>
    <fieldPath/>
  </ApiError>
</reportDownloadError>

Thanks,
Josh, AdWords API Team

On Friday, August 1, 2014 9:47:39 AM UTC-4, Ginger Jackson wrote:
>
> Hi,
>  
> I am trying to run the example code provided by the site with my account 
> with the below code, and getting an error back as "Report Downloaded in 
> error". My authentication is connecting. Is there a parameter to pass to 
> CRITERIA_PERFORMANCE_REPORT? 
>
>  
>
> public void Run(AdWordsUser user, string fileName)
>
> {
>
> ReportDefinition definition = new ReportDefinition();
>
>  definition.reportName = fileName;
>
> definition.reportType = ReportDefinitionReportType
> .CRITERIA_PERFORMANCE_REPORT;
>
> definition.downloadFormat = DownloadFormat.XML;
>
> definition.dateRangeType = ReportDefinitionDateRangeType.LAST_7_DAYS ;
>
>  // Create selector.
>
> Selector selector = new Selector();
>
> selector.fields = new string[] {"CampaignId", "AdGroupId", "Id", 
> "CriteriaType", "Criteria",
>
>   "CriteriaDestinationUrl", "Clicks", "Impressions", "Cost"};
>  
>               
>
>  
>
>  
>
>  
>
> // Predicate predicate = new Predicate();
>
> // predicate.field = "Status";
>
> // predicate.@operator = PredicateOperator.IN;
>
> // predicate.values = new string[] { "ENABLED", "PAUSED" };
>
> //// selector.predicates = new Predicate[] { predicate };
>  
>  definition.selector = selector;
>
> definition.includeZeroImpressions = false;
>
>  
>
> string filePath = "C:\\Users\\toldro.SPRAYTECH\\" + filename;
>
>  
>
> try
>
> {
>                 
>
> ReportUtilities utilities = new ReportUtilities(user);
>
> utilities.ReportVersion = "v201406";
>
>  
>
> utilities.DownloadClientReport(definition, filePath);
>
> Console.WriteLine("Report was downloaded to '{0}'.", filePath);
>
> }
>
> catch (Exception ex)
>
> {
>
> throw new System.ApplicationException("Failed to download report.", ex);
>
> }
>
> }
>
> }
>
> }
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to