I am not able to access the Campaign spend data from the bing api.

Gaurav Phandan 0 Reputation points
2025-09-09T07:00:48.02+00:00

Getting this response:
Endpoint:https://clientcenter.api.bingads.microsoft.com/CustomerManagement/v13/User/Query

{
    "Errors": [
        {
            "Code": 105,
            "Message": "Authentication failed. Either supplied credentials are invalid or the account is inactive",
            "Detail": null,
            "ErrorCode": "InvalidCredentials"
        }
    ],
    "TrackingId": "c29fc751-5a6e-4694-b3df-1ac4f07f8630",
    "Type": "AdApiFaultDetail"
}
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.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MS Advertising - Arsen 150 Reputation points Microsoft External Staff Moderator
    2025-09-10T09:43:05.0033333+00:00

    Hello Gaurav Phandan,

    Thank you for using our Microsoft Advertising Learn Q&A Platform! 

    I understand that you are not able to access the campaign spend data using Bing API. Please check the information below, this should resolve the issue, you are having.

    1. Verify Credentials - Ensure that: Your Developer Token, Customer ID, and Account ID are correct. You are using the correct environment (Production vs Sandbox). Credentials valid in one may not work in the other.
    2. Check Authentication Method - If you're using OAuth: Confirm that the access token is valid and not expired. Refresh the token if needed. Make sure the token has the correct scope, such as msads.manage.
    3. Account Status - Confirm that the Microsoft Advertising account is active. If the account was paused or suspended, it may trigger this error even if credentials are correct.
    4. Identity Verification - Some accounts may require identity verification before API access is granted. Even if other accounts work, this one may be blocked until verified.
    5. SOAP Request Format - If you're using SOAP, ensure there are no extra characters or malformed headers in your request. This has been known to cause error 105.

    I hope the information provided here will at least partly answer your question.  If you have any additional questions, please do not hesitate to reach out to our support. I have also sent you a private message asking for further details. You are more than welcome to respond to me to that I can begin the investigation on my end.

     

    Kind regards, 

    Arsen D. | Microsoft Advertising Support Specialist | 800-518-5689

    0 comments No comments

Your answer

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