Hi,
I'm using the following code to try to define a report:
ReportDefinition l_Report = new ReportDefinition();
l_Report.reportName = "My Landing Page report";
l_Report.reportType =
ReportDefinitionReportType.DESTINATION_URL_REPORT;
l_Report.reportTypeSpecified = true;
l_Report.dateRangeType =
ReportDefinitionDateRangeType.YESTERDAY;
l_Report.dateRangeTypeSpecified = true;
l_Report.downloadFormat = DownloadFormat.GZIPPED_CSV;
l_Report.downloadFormatSpecified = true;
l_Report.crossClient = true;
l_Report.crossClientSpecified = true;
l_Report.selector = new Selector();
l_Report.selector.fields = new string[] { "CampaignId",
"CampaignStatus", "AdGroupId", "AdGroupStatus",
"EffectiveDestinationUrl", "Impressions" };
// -
ReportDefinitionOperation l_Operation = new
ReportDefinitionOperation();
l_Operation.@operator = Operator.ADD;
l_Operation.operatorSpecified = true;
l_Operation.operand = l_Report;
// -
ReportDefinitionService l_Service = new
ReportDefinitionService();
l_Service.RequestHeader = new RequestHeader();
l_Service.RequestHeader.authToken =
GoogleAuthorization.Current.AuthToken;
l_Service.RequestHeader.userAgent = MASTER_ACCOUNT_NAME;
l_Service.RequestHeader.developerToken = DEVELOPER_TOKEN;
l_Service.RequestHeader.clientEmail =
MASTER_ACCOUNT_EMAIL;
ReportDefinition[] l_Result = l_Service.mutate(new
ReportDefinitionOperation[] { l_Operation });
And the following code to try to download it:
HttpWebRequest l_Request =
(HttpWebRequest)HttpWebRequest.Create("https://adwords.google.com/api/
adwords/reportdownload?__rd=" + p_ReportId.ToString() + "&qt=new");
l_Request.Headers.Add("Authorization: GoogleLogin
auth=" + GoogleAuthorization.Current.AuthToken);
l_Request.Headers.Add("clientEmail:
blahb...@mydomain.com");
HttpWebResponse l_Response =
(HttpWebResponse)l_Request.GetResponse();
etc... etc...
By I'm receiving the following response instead of the report:
!!!2|||21739507|||Sorry, My Client Center reports are not supported???
What the above message mean? Does it mean that cross-client reports
are not supported (despite the documentation saying it does)?
Am I missing something?
Thanks in advance for any help on this.
Kind regards,
Orly
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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