# Hermoso: Microsoft Ads API error 2204: billing of the balance failed

> Machine-readable twin of https://hermoso.ai/errors/microsoft-ads-2204-billing-failed/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

# Microsoft Advertising API error 2204: "Billing of the balance amount in the account failed."

Microsoft tried to charge the account and could not. The API connection is fine; the payment method on the ad account is the problem, and it is fixed in Microsoft Advertising, not in code.

Code 2204 is the one clean, documented billing error in the Microsoft Advertising API, and one of only a few account billing codes any major ad platform publishes. That makes it easy to handle well, if you treat it as an account problem rather than a request problem.

## The exact error

From Microsoft's operation error codes:

Code ErrorCode Description

2204 Not applicable "Billing of the balance amount in the account failed."

{
"OperationErrors": [{
"Code": 2204,
"Message": "..."
}]
}

## What it means

Microsoft attempted to bill the outstanding balance on the ad account and the charge failed. The payment method on file was declined, has expired, or is missing. Microsoft adds a note: the error can occur when you try to delete an account, because "Before an account can be deleted the final billing must succeed."

Nothing is wrong with your API request, your OAuth token or your developer token. Retrying the same call before the payment method is fixed fails the same way, so stop and fix billing first.

Few ad platforms publish an error code for a billing failure at all. Most return generic text, which is why a documented code like this one is worth handling by number rather than by message.

## Why it happens

- The card on the account was declined or has expired.

- The payment method was removed.

- You are closing an account that still owes a balance.

- The account was never fully set up. A new account's `AccountLifeCycleStatus` is `Draft` until Microsoft validates the payment instrument, after which it changes to Active.

## How to fix it

- **Sign in to Microsoft Advertising** at ads.microsoft.com with a user who manages billing.

- **Go to Billing, then Payment methods,** and use "Add card" to add or replace the card.

- **Clear the balance.** Let Microsoft retry the charge, or pay the outstanding amount.

- **Check the account status** with the Customer Management service: `AccountLifeCycleStatus` should read Active, not Draft.

- **Retry the API call**, or the account deletion, once billing has succeeded.

## How Hermoso handles it

Hermoso maps code 2204 to a clear account message: Microsoft could not bill the balance on this account because the payment method on file was declined or is missing, your Microsoft Advertising connection is fine, and the fix is Billing, then Payment methods, in Microsoft Advertising. Microsoft's own message rides along underneath.

It is just as careful about what is not billing. An invalid id or field, such as Microsoft's invalid ad group id error, is reported as a problem with the request, never as a billing problem. Code 105 is never treated as billing either, even though one of its reasons is an inactive account. And because Microsoft reports some rejections inside an HTTP 200 response, Hermoso checks both partial error lists on every write instead of trusting the status. See [Microsoft Ads over MCP](https://hermoso.ai/microsoft-ads-mcp/).

## Related

- [Microsoft Advertising API error 105: InvalidCredentials](https://hermoso.ai/errors/microsoft-ads-105-invalidcredentials/)
- [X Ads API: INVALID_FUNDING_INSTRUMENT and FUNDING_INSTRUMENT_NOT_FOUND](https://hermoso.ai/errors/x-ads-invalid-funding-instrument/)

Every platform error we have documented is on the [error reference](https://hermoso.ai/errors/). For app reviews and access levels, see [how to get API access](https://hermoso.ai/api-access/).

## Sources

- [learn.microsoft.com/en-us/advertising/guides/operation-error-codes?view=bingads-13](https://learn.microsoft.com/en-us/advertising/guides/operation-error-codes?view=bingads-13)
- [help.ads.microsoft.com/apex/index/3/en-us/52091](https://help.ads.microsoft.com/apex/index/3/en-us/52091)

## Frequently asked questions

### What does Microsoft Advertising error 2204 mean?

Microsoft could not bill the balance on the ad account. The payment method was declined, expired or is missing.

### Why does 2204 appear when I delete an account?

Microsoft requires the final billing to succeed before an account can be deleted. Fix the payment method and clear the balance first.

### How do I know a new Microsoft Ads account is ready to bill?

Its AccountLifeCycleStatus changes from Draft to Active once Microsoft validates the payment instrument.

Skip the error hunting: connect your accounts to Hermoso free, no card.

[Start free →](https://app.hermoso.ai/?src=site-errors-microsoft-ads-2204-billing-failed&intent=create)

[See pricing](https://hermoso.ai/pricing)
