question

sachingupta-1921 avatar image
0 Votes"
sachingupta-1921 asked sachingupta-1921 commented

Invalid client data. Check the SOAP fault details for more information. TrackingId: bc4ceb42-6127-49a6-b72d-29c75b2e3885

Hello,

I am trying to consume the Bing Ads Reporting services in Postman as below:

endpoint: https://reporting.api.bingads.microsoft.com/Api/Advertiser/Reporting/V13/ReportingService.svc

Header:
Content-Type:text/xml
SOAPAction:SubmitGenerateReport
Accept:application/json

Body:

<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">MY_ACCESS_TOKEN</AuthenticationToken>
<CustomerAccountId i:nil="false">XXXXX</CustomerAccountId>
<CustomerId i:nil="false">XXXXX</CustomerId>
<DeveloperToken i:nil="false">XXXXX</DeveloperToken>
</s:Header>
<s:Body>
<SubmitGenerateReportRequest xmlns="https://bingads.microsoft.com/Reporting/v13">;
<SubmitGenerateReportRequest xmlns="https://bingads.microsoft.com/Reporting/v13">;
<ReportRequest i:nil="false" i:type="AdExtensionByKeywordReportRequest">
<ExcludeColumnHeaders i:nil="false">false</ExcludeColumnHeaders>
<ExcludeReportFooter i:nil="false">false</ExcludeReportFooter>
<ExcludeReportHeader i:nil="false">false</ExcludeReportHeader>
<Format i:nil="false">csv</Format>
<FormatVersion i:nil="false">2.0</FormatVersion>
<ReportName i:nil="false">Ad Report</ReportName>
<ReturnOnlyCompleteData i:nil="false">false</ReturnOnlyCompleteData>
<!--These fields are applicable if the derived type attribute is set to AccountPerformanceReportRequest-->
<Aggregation>Summary</Aggregation>
<Columns i:nil="false">
<AdExtensionByKeywordReportColumn>Impressions</AdExtensionByKeywordReportColumn>
<AdExtensionByKeywordReportColumn>Clicks</AdExtensionByKeywordReportColumn>
<AdExtensionByKeywordReportColumn>Keyword</AdExtensionByKeywordReportColumn>
</Columns>
<Filter i:nil="false">
<AccountStatus i:nil="false"></AccountStatus>
<AdDistribution i:nil="false"></AdDistribution>
<DeviceOS i:nil="false"></DeviceOS>
<DeviceType i:nil="false"></DeviceType>
</Filter>
<Scope i:nil="false">
<AccountIds i:nil="false" xmlns:a1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">;
<a1:long>XXXXX</a1:long>
</AccountIds>
</Scope>
<Time i:nil="false">
<CustomDateRangeEnd i:nil="false">
<Day></Day>
<Month></Month>
<Year></Year>
</CustomDateRangeEnd>
<CustomDateRangeStart i:nil="false">
<Day></Day>
<Month></Month>
<Year></Year>
</CustomDateRangeStart>
<PredefinedTime i:nil="false">ThisWeek</PredefinedTime>
<ReportTimeZone i:nil="false"></ReportTimeZone>
</Time>
</ReportRequest>
</SubmitGenerateReportRequest>
</s:Body>
</s:Envelope>




Response:

     <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
     <s:Body>
         <s:Fault>
             <faultcode>s:Server</faultcode>
             **<faultstring xml:lang="en-US">Invalid client data. Check the SOAP fault details for more information. TrackingId: bc4ceb42-6127-49a6-b72d-29c75b2e3885.</faultstring>**
             <detail>
                 <AdApiFaultDetail xmlns="https://adapi.microsoft.com" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                     <TrackingId>bc4ceb42-6127-49a6-b72d-29c75b2e3885</TrackingId>
                     <Errors>
                         <AdApiError>
                             <Code>109</Code>
                             <Detail i:nil="true"/>
                             <ErrorCode>AuthenticationTokenExpired</ErrorCode>
                             <Message>Authentication token expired. Please renew it or obtain a new token.</Message>
                         </AdApiError>
                     </Errors>
                 </AdApiFaultDetail>
             </detail>
         </s:Fault>
     </s:Body>
 </s:Envelope>


Please see the error in bold which I am getting in the response. I am not able to understand what I am missing here. My authentication is successful and able to generate the refresh token and using refresh token I am getting access token as well. Can someone please help on this.
Appreciate your help!

Thanks





advertising-api
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@SaurabhSharma-msft @ShaikMaheer-MSFT anyone can help on this?

0 Votes 0 ·

0 Answers