problem getting a report
- Hi,
I'm trying to get a report but I still have this error {https://adcenter.microsoft.com/v6}ReportFormat: cannot accept '' }. This is my ruby code :
accountId = XXXX;
uri = "https://adcenterapi.microsoft.com/api/advertiser/v6/";
xmlns = "https://adcenter.microsoft.com/v6";
reportProxy = uri + "Reporting/ReportingService.svc?wsdl";
action = "SubmitGenerateReport";
username = "XXXX";
password = "XXXX";
developerToken = "XXXXX";
applicationToken = "";
soap_client = SOAP::WSDLDriverFactory.new(reportProxy).create_rpc_driver
soap_client.generate_explicit_type = true
soap_client.wiredump_dev = nil
soap_client.headerhandler << Header.new('ApplicationToken',applicationToken)
soap_client.headerhandler << Header.new('DeveloperToken',developerToken)
soap_client.headerhandler << Header.new('UserName',username)
soap_client.headerhandler << Header.new('Password',password)
request = {'ReportRequest' => {'KeywordPerformanceReportRequest' => {'Format' => 'Xml', 'Language' => 'English', 'ReportName' => "My report", 'ReturnOnlyCompleteData' => false,
'Aggregation' => 'Daily', 'Time' => {'PredefinedTime'=>'LastSevenDays'},
'Columns' => ['AccountName',
'CampaignName',
'Keyword',
'TimePeriod',
'Impressions',
'Conversions'],
'Filter' => {'AdDistribution'=>'Search','LanguageAndRegion'=>'France'},
'Scope' => {'AccountIds'=> accountId}}}}
report_id = soap_client.call(action, {action + 'Request' => request})
i think the XML is good what do you think ? I hope you'll be able to help me.
Thanks in advance.
Melissa
답변
I would recommend opening a ticket with API Support, and providing the full SOAP request and response messages. HTTP/S packet sniffers like Fiddler are good for capturing the SOAP.
Once we have this information, we will investigate.
Thanks
Jeff Dillon, API Support- 답변으로 제안 취소됨djartsinc중재자2009년 8월 5일 수요일 오전 6:30
- 답변으로 표시됨djartsinc중재자2009년 8월 5일 수요일 오전 6:30
- 답변으로 제안됨Jeff Dillon - MSFT 2009년 6월 24일 수요일 오후 5:30
모든 응답
I would recommend opening a ticket with API Support, and providing the full SOAP request and response messages. HTTP/S packet sniffers like Fiddler are good for capturing the SOAP.
Once we have this information, we will investigate.
Thanks
Jeff Dillon, API Support- 답변으로 제안 취소됨djartsinc중재자2009년 8월 5일 수요일 오전 6:30
- 답변으로 표시됨djartsinc중재자2009년 8월 5일 수요일 오전 6:30
- 답변으로 제안됨Jeff Dillon - MSFT 2009년 6월 24일 수요일 오후 5:30

