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.
415 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
@Eric Urban - MSFT can u help pls