locked
problem getting a report RRS feed

  • Question

  • 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
    Wednesday, June 24, 2009 2:57 PM

Answers

  • 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

    Wednesday, June 24, 2009 5:30 PM