Denis81


Hi Everyone,

I am stuck with KeywordPerformanceReportRequest.

When I am asking for a KeywordPerformanceReportRequest with the following SOAP envelope, I get an empty file :

< xml version="1.0" encoding="UTF-8" >
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsTongue TiedOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<ApiUserAuthHeader xmlns="http://adcenter.microsoft.com/syncapis">
<UserName>XXX</UserName>
<Password>XXX</Password>
<UserAccessKey>XXX</UserAccessKey>
</ApiUserAuthHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RequestBIReport xmlns="http://adcenter.microsoft.com/syncapis">
<request xsi:type="KeywordPerformanceReportRequest">
<AccountId>XXX</AccountId>
<ReportAggregation>Day</ReportAggregation>
<ReportDateRange>CustomizedDataRange</ReportDateRange>
<StartDate>2007-01-01T00:00:00</StartDate>
<EndDate>2007-02-02T00:00:00</EndDate>
<ReportLanguage>English</ReportLanguage>
<Format>XML</Format>
<AllNone>0</AllNone>
</request>
</RequestBIReport>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

If I use this SOAP envelope, it works :

< xml version="1.0" encoding="UTF-8" >
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlnsTongue TiedOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlnsTongue TiedOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<ApiUserAuthHeader xmlns="http://adcenter.microsoft.com/syncapis">
<UserName>XXX</UserName>
<Password>XXX</Password>
<UserAccessKey>XXX</UserAccessKey>
</ApiUserAuthHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RequestBIReport xmlns="http://adcenter.microsoft.com/syncapis">
<request xsi:type="KeywordPerformanceReportRequest">
<AccountId>XXX</AccountId>
<ReportAggregation>Day</ReportAggregation>
<ReportDateRange>Last6Months</ReportDateRange>
<ReportLanguage>English</ReportLanguage>
<Format>XML</Format>
<AllNone>0</AllNone>
</request>
</RequestBIReport>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

It seems that I did not understand something with customized "ReportDateRange". Can anyone help

Regards,

Denis



Re: Help with KeywordPerformanceReportRequest

Jeff Dillon - MSFT


Do you get reports generated for these same date ranges from the web UI Also, keep in mind, you are only querying for one month in your first example, and for 6 months in your second.

The CustomizedDataRange value indicates that the report is for a contiguous date range, using StartDate and EndDate

Hope this helps,


Jeff Dillon, Microsoft adCenter API Technical Support






Re: Help with KeywordPerformanceReportRequest

Denis81

Hi Jeff,

Thank you for your help. Yes, there are some datas available for the one month period I choose.

I do not understand what is wrong with my SOAP request. I always get an empty files (I do not event get the column names...)

Any idea

Denis





Re: Help with KeywordPerformanceReportRequest

Jeff Dillon - MSFT

Denis,

I would encourage you to forward this request to msnacapi@microsoft.com where we can look into it further.

Empty files without column names could be expected if there is no data for the date range. So you are saying that if you run the same report from the Web UI, you *DO* get data

Jeff Dillon, Microsoft adCenter API Technical Support




Re: Help with KeywordPerformanceReportRequest

Denis81

Hi jeff,

Thank you for your help : you were right.

I inverted two accounts when I was checking through the web interface and through the API. it now works like a charm Smile

Sorry for the waste of time...

Regards,

Denis




Re: Help with KeywordPerformanceReportRequest

Jeff Dillon - MSFT

Never a waste of time! Glad you got it working. I'll be here if you find any other issues.

Jeff