I am using AWQL in my c# console application to download adwords report which was working fine since a year and suddenly I am getting Exception in downloading report:
string reportDate = startDate.ToString("yyyyMMdd");
string adQuery = "SELECT " +
"CampaignName, AdGroupName, Id " +
"FROM AD_PERFORMANCE_REPORT " +
"DURING " + reportDate + ", " + reportDate;
string query = "SELECT " +
"CampaignName, AdGroupName, PlacementUrl, MaxCpc, Impressions, Clicks, Conversions, Cost " +
"FROM PLACEMENT_PERFORMANCE_REPORT " +
"WHERE AdNetworkType1 = 'CONTENT' " + // 'CONTENT' indicated only Display Networs
"DURING " + reportDate + ", " + reportDate;
try
{
// Download the report
ReportUtilities utilities = new ReportUtilities(user);
utilities.ReportVersion = "v201406";
utilities.DownloadClientReport(query, DownloadFormat.CSV.ToString(), filePath);
utilities.DownloadClientReport(adQuery, DownloadFormat.CSV.ToString(), adFilePath);
}
catch (Exception ex)
{
throw new System.ApplicationException("Failed to download report.", ex); // I am getting exception here
}