Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michaeldereje-simplybusiness opened this issue Mar 22, 2023 · 4 comments

Comments

@michaeldereje-simplybusiness
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
Copy link
Author

michaeldereje-simplybusiness commented Mar 22, 2023

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
Copy link

nghuuquyen commented May 30, 2023

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

@timjnz
Copy link

timjnz commented Aug 21, 2023

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

@russfisher0
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants