MicrosoftDocs / Advertising

Public sync with MicrosoftDocs/Advertising-pr
Creative Commons Attribution 4.0 International
13 stars 33 forks source link

InternalServiceFault when calling bing ads reporting with no details to what the actual error is. #93

Open michaeldereje-simplybusiness opened 1 year ago

michaeldereje-simplybusiness commented 1 year ago
D, [2023-03-22T18:36:05.776124 #1] DEBUG -- : HTTPI /peer POST request to reporting.api.bingads.microsoft.com (httpclient)
I, [2023-03-22T18:36:06.041355 #1]  INFO -- : SOAP response (status 200)
D, [2023-03-22T18:36:06.042613 #1] DEBUG -- : <?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <s:Fault>
      <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:InternalServiceFault</faultcode>
      <faultstring>The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the &lt;serviceDebug&gt; configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.</faultstring>
    </s:Fault>
  </s:Body>
</s:Envelope>

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

michaeldereje-simplybusiness commented 1 year ago

This is what the request looks like.

 <?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="https://bingads.microsoft.com/Reporting/v13" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ins0="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:ins1="https://adapi.microsoft.com" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
 <env:Header>
    <tns:DeveloperToken>ANOTHER_TOKEN</tns:DeveloperToken>
    <tns:AuthenticationToken>SOME_TOKEN</tns:AuthenticationToken>
  </env:Header>
  <env:Body>
    <tns:SubmitGenerateReportRequest>
      <tns:ReportRequest>
        <tns:Format>Csv</tns:Format>
        <tns:ReportName>AdPerformanceReport</tns:ReportName>
        <tns:Aggregation>Daily</tns:Aggregation>
        <tns:Columns>
          <tns:AdPerformanceReportColumn>AccountId</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AccountName</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AccountNumber</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdId</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdType</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdGroupId</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdGroupName</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdGroupStatus</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdTitle</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdDescription</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AdDistribution</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>BidMatchType</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>CampaignId</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>CampaignName</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>CampaignStatus</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>DeliveredMatchType</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>DestinationUrl</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>DeviceType</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Network</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Path1</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Path2</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>TitlePart1</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>TitlePart2</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>TimePeriod</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>AveragePosition</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Clicks</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Impressions</tns:AdPerformanceReportColumn>
          <tns:AdPerformanceReportColumn>Spend</tns:AdPerformanceReportColumn>
        </tns:Columns>
        <tns:Scope>
          <tns:AccountIds>
            <arr:long>123123</arr:long>
          </tns:AccountIds>
        </tns:Scope>
        <tns:Time>
          <tns:CustomDateRangeEnd>
            <tns:Day>21</tns:Day>
            <tns:Month>3</tns:Month>
            <tns:Year>2023</tns:Year>
          </tns:CustomDateRangeEnd>
          <tns:CustomDateRangeStart>
            <tns:Day>14</tns:Day>
            <tns:Month>3</tns:Month>
            <tns:Year>2023</tns:Year>
          </tns:CustomDateRangeStart>
        </tns:Time>
      </tns:ReportRequest>
      <tns:attributes>
        <tns:ReportRequest>
          <xmlns:i>http://www.w3.org/2001/XMLSchema-instance</xmlns:i>
          <i:type>tns:AdPerformanceReportRequest</i:type>
        </tns:ReportRequest>
      </tns:attributes>
    </tns:SubmitGenerateReportRequest>
  </env:Body>
</env:Envelope>
nghuuquyen commented 1 year ago

I got the same problem :( I have no ideas because don't know what is cause of error.

timjnz commented 1 year ago

Same problem. Look's like it's a internal error in their API.

russfisher0 commented 11 months ago

Same here. Even after implementing their suggested 1, 5, and 20 minute retries I can't get this to succeed between 04:00-05:00 UTC. Works more reliably around 14:00 UTC, but still with sporadic failures.

https://learn.microsoft.com/en-us/advertising/transaction-message/error-codes-messages