Error 1125 "The specified customer life cycle status is invalid or not supported" when fetching accounts info via Bing Ads API

Fivetran D 1 Reputation point


we faced the error with the code which is not listed in documentation : "Error { code: 1125, errorCode: null, message: The specified customer life cycle status is invalid or not supported. }" when trying to fetch accounts info via Bing Ads API:

curl -X POST --data '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>  
<s:Envelope xmlns:i="" xmlns:s="">  
    <s:Header xmlns="">  
        <GetAccountsInfoRequest xmlns=""/>  
' -H 'SOAPAction: GetAccountsInfo' -H 'Content-Type: text/xml' -A 'Jersey/2.31' ''  

What can be a cause of such error?

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

1 answer

Sort by: Most helpful
  1. Amichay Miara 6 Reputation points

    Solved it by adding the optional (?!) request body element CustomerId.
    You can obtain the CustomerId by querying GetUser.

    1 person found this answer helpful.
    0 comments No comments