Bing Ads API v13 404 Status on SubmitRequestReport

Ed Tembo 6 Reputation points
2021-11-14T21:12:28.963+00:00

Getting a 404 status code and an empty response when submitting a request to the Reporting API . How can I fix this .

Thanks in advance!

url : https://clientcenter.api.sandbox.bingads.microsoft.com/Api/Reporting/v13/ReportingService.svc

<s:Envelope>
<s:Header>
<Action mustUnderstand="1">SubmitGenerateReport</Action>
<AuthenticationToken i:nil="false">token</AuthenticationToken>
<CustomerAccountId i:nil="false">customerAccountId</CustomerAccountId>
<CustomerId i:nil="false">customerId</CustomerId>
<DeveloperToken i:nil="false">sandboxDevToken</DeveloperToken>
</s:Header>
<s:Body>
<SubmitGenerateReportRequest>
<ReportRequest i:nil="false" i:type="AudiencePerformanceReportRequest">
<Aggregation>Daily</Aggregation>
<Columns i:nil="false">
<AccountPerformanceReportColumn>AudienceName</AccountPerformanceReportColumn>
<AccountPerformanceReportColumn>Spend</AccountPerformanceReportColumn>
</Columns>
<Filter i:nil="true">
<AccountStatus i:nil="true"/>
<AdDistribution i:nil="true"/>
<DeviceOS i:nil="true"/>
<DeviceType i:nil="true"/>
</Filter>
<Time i:nil="false">
<CustomDateRangeEnd i:nil="false">
<Day>14</Day>
<Month>11</Month>
<Year>2021</Year>
</CustomDateRangeEnd>
<CustomDateRangeStart i:nil="false">
<Day>12</Day>
<Month>11</Month>
<Year>2021</Year>
</CustomDateRangeStart>
<PredefinedTime i:nil="true"/>
<ReportTimeZone i:nil="false">CentralTimeUSCanada</ReportTimeZone>
</Time>
</ReportRequest>
</SubmitGenerateReportRequest>
</s:Body>
</s:Envelope>

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
416 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ed Tembo 6 Reputation points
    2021-11-14T21:17:43.67+00:00

    Just a follow-up. Copied an incorrect envelope in the original post. Here's the correct envelope with the namespaces.

    <s:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header xmlns="https://bingads.microsoft.com/Reporting/v13">
    <Action mustUnderstand="1">SubmitGenerateReport</Action>
    <AuthenticationToken i:nil="false">TOKEN</AuthenticationToken>
    <CustomerAccountId i:nil="false">CUSTOMER_ACCOUNT_ID</CustomerAccountId>
    <CustomerId i:nil="false">CUSTOMER_ID</CustomerId>
    <DeveloperToken i:nil="false">SANDBOX_DEV_TOKEN</DeveloperToken>
    </s:Header>
    <s:Body>
    <SubmitGenerateReportRequest xmlns="https://bingads.microsoft.com/Reporting/v13">
    <ReportRequest i:nil="false" i:type="AudiencePerformanceReportRequest">
    <Aggregation>Daily</Aggregation><Columns i:nil="false"><AccountPerformanceReportColumn>AudienceName</AccountPerformanceReportColumn><AccountPerformanceReportColumn>Spend</AccountPerformanceReportColumn></Columns><Filter i:nil="true"><AccountStatus i:nil="true"></AccountStatus><AdDistribution i:nil="true"></AdDistribution><DeviceOS i:nil="true"></DeviceOS><DeviceType i:nil="true"></DeviceType></Filter><Time i:nil="false"><CustomDateRangeEnd i:nil="false"><Day>14</Day><Month>11</Month><Year>2021</Year></CustomDateRangeEnd><CustomDateRangeStart i:nil="false"><Day>12</Day><Month>11</Month><Year>2021</Year></CustomDateRangeStart><PredefinedTime i:nil="true"></PredefinedTime><ReportTimeZone i:nil="false">CentralTimeUSCanada</ReportTimeZone></Time></ReportRequest></SubmitGenerateReportRequest>
    </s:Body>
    </s:Envelope>

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.