Bing Ads Api : daily spend invalid client data

Martech Labs 1 Reputation point
2021-06-24T08:55:58.913+00:00

Hello, we are getting error while we are trying to get daily Ad spend for each AdvertiserAccount returned by searchAcount

error : 'Invalid client data. Check the SOAP fault details for more information. TrackingId: 4200a241-897f-463e-b3b2-ba9af73c0f32.'
Soap request :
<

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">{accessToken}</AuthenticationToken>
        <CustomerAccountId i:nil="false">AdvertiserAccount.Id</CustomerAccountId>
        <CustomerId i:nil="false">AdvertiserAccount.ParentCustomerId</CustomerId>
        <DeveloperToken i:nil="false">{devToken}</DeveloperToken>
      </s:Header>
      <s:Body>
        <SubmitGenerateReportRequest xmlns="https://bingads.microsoft.com/Reporting/v13">
          <ReportRequest i:nil="false" i:type="AccountPerformanceReportRequest">
            <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">ValueHere</FormatVersion>
            <ReportName i:nil="false"> AdSpend report </ReportName>
            <ReturnOnlyCompleteData i:nil="false">false</ReturnOnlyCompleteData>
            <!--These fields are applicable if the derived type attribute is set to AccountPerformanceReportRequest-->
            <Aggregation>Daily</Aggregation>
            <Columns i:nil="false">

              <AccountPerformanceReportColumn>Spend</AccountPerformanceReportColumn>
              <AccountPerformanceReportColumn>AccountId</AccountPerformanceReportColumn>

            </Columns>
            <Filter i:nil="true" />
            <Scope i:nil="true" />

            <Time i:nil="false">
              <CustomDateRangeEnd i:nil="false">
                <Day>23</Day>
                <Month>6</Month>
                <Year>2021</Year>
              </CustomDateRangeEnd>
              <CustomDateRangeStart i:nil="false">
                <Day>1</Day>
                <Month>1</Month>
                <Year>2016</Year>
              </CustomDateRangeStart>
              <PredefinedTime i:nil="true" />
              <ReportTimeZone i:nil="true" />
            </Time>
          </ReportRequest>
        </SubmitGenerateReportRequest>
      </s:Body>
    </s:Envelope>

thank you

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.
399 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Martech Labs 1 Reputation point
    2021-06-27T01:00:49.777+00:00

    @Eric Urban - MSFT can u help pls

    0 comments No comments