Microsoft Developer Network >
Página Inicial dos Fóruns
>
Microsoft adCenter: Development
>
problem getting a report
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
Respostas
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- Não Sugerido como RespostadjartsincModeradorquarta-feira, 5 de agosto de 2009 6:30
- Marcado como RespostadjartsincModeradorquarta-feira, 5 de agosto de 2009 6:30
- Sugerido como RespostaJeff Dillon - MSFT quarta-feira, 24 de junho de 2009 17:30
Todas as Respostas
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- Não Sugerido como RespostadjartsincModeradorquarta-feira, 5 de agosto de 2009 6:30
- Marcado como RespostadjartsincModeradorquarta-feira, 5 de agosto de 2009 6:30
- Sugerido como RespostaJeff Dillon - MSFT quarta-feira, 24 de junho de 2009 17:30

