Hello,
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:
Code I am using:
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*
}
Exception:
System.ApplicationException: Failed to download report. --->
Google.Api.Ads.AdWords.Util.Reports.ReportsException: Report download
errors occurred, see errors field for more details. at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadReportToStream(String
downloadUrl, Nullable`1 returnMoneyInMicros, String postBody, Stream
outputStream) in
z:\Git\google3\third_party\dotnet_src\adsapi\compile\Util\Reports\ReportUtilities.cs:line
314 at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReportInternal(String
downloadUrl, String postBody, Nullable`1 returnMoneyInMicros, String path)
in
z:\Git\google3\third_party\dotnet_src\adsapi\compile\Util\Reports\ReportUtilities.cs:line
264 at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport(String
query, String format, Nullable`1 returnMoneyInMicros, String path) in
z:\Git\google3\third_party\dotnet_src\adsapi\compile\Util\Reports\ReportUtilities.cs:line
192 at
Google.Api.Ads.AdWords.Util.Reports.ReportUtilities.DownloadClientReport(String
query, String format, String path) in
z:\Git\google3\third_party\dotnet_src\adsapi\compile\Util\Reports\ReportUtilities.cs:line
170 at AdWordsDataScript.Program.LoadData(DateTime startDate, DateTime
endDate) in
c:\svn_trainee\AdWords\AdWordsDataScript\AdWordsDataScript\Program.cs:line
741
Please help me asap as this thing is creating a big delay in taking
decisions !
Thanks
Vandita
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
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
---
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 [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/d39f9e81-9950-4576-95b3-b9a12a243cd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.