AI-generated Key Takeaways
-
CompanyCreditStatusError.Reasondescribes the reasons for errors related to company credit status within various services like CompanyService, ForecastService, LineItemService, LineItemTemplateService, and OrderService. -
Reasons include issues with user permissions to change credit status, network settings not being enabled for credit status editing, and unacceptable company credit status for creating or updating orders and line items.
-
Another reason is the inability to block a company if it has too many approved orders.
-
The
UNKNOWNvalue is returned if the actual error reason is not exposed by the requested API version.
The reasons for the target error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
| Enumeration | Description |
|---|---|
COMPANY_CREDIT_STATUS_CHANGE_NOT_ALLOWED
|
The user's role does not have permission to change Company.creditStatus from the default value. The default value is Company.CreditStatus.ACTIVE for the Basic credit status setting and Company.CreditStatus.ON_HOLD for the Advanced credit status setting. |
CANNOT_USE_CREDIT_STATUS_SETTING
|
The network has not been enabled for editing credit status settings for companies. |
CANNOT_USE_ADVANCED_CREDIT_STATUS_SETTING
|
The network has not been enabled for the Advanced credit status
settings for companies. Company.creditStatus must be either
ACTIVE or INACTIVE.
|
UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_ORDER
|
An order cannot be created or updated because the
Order.advertiserId or the Order.agencyId it is associated
with has Company.creditStatus that is not ACTIVE or
ON_HOLD.
|
UNACCEPTABLE_COMPANY_CREDIT_STATUS_FOR_LINE_ITEM
|
A line item cannot be created for the order because the
Order.advertiserId or {Order#agencyId} it is associated with has
Company.creditStatus that is not ACTIVE or
ON_HOLD.
|
CANNOT_BLOCK_COMPANY_TOO_MANY_APPROVED_ORDERS
|
The company cannot be blocked because there are more than 200 approved orders of the company. Archive some, so that there are less than 200 of them. |
UNKNOWN
|
The value returned if the actual value is not exposed by the requested API version. |