type CompanyError (v202411)
Stay organized with collections
Save and categorize content based on your preferences.
A list of all errors associated with companies.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202411
Field
|
ApiError (inherited)
|
fieldPath
|
xsd:string
The OGNL field path to identify cause of error.
|
fieldPathElements
|
FieldPathElement[]
A parsed copy of the field path. For example, the field path "operations[1].operand"
corresponds to this list: {FieldPathElement(field = "operations", index = 1),
FieldPathElement(field = "operand", index = null)}.
|
trigger
|
xsd:string
The data that caused the error.
|
errorString
|
xsd:string
A simple string representation of the error and reason.
|
CompanyError
|
reason
|
CompanyError.Reason
Enumerations
-
CANNOT_SET_THIRD_PARTY_COMPANY_DUE_TO_TYPE
- Indicates that an attempt was made to set a third party company for a
company whose type is not the same as the third party company.
-
CANNOT_UPDATE_COMPANY_TYPE
- Indicates that an invalid attempt was made to change a company's type.
-
INVALID_COMPANY_TYPE
- Indicates that this type of company is not supported.
-
PRIMARY_CONTACT_DOES_NOT_BELONG_TO_THIS_COMPANY
- Indicates that an attempt was made to assign a primary contact who
does not belong to the specified company.
-
THIRD_PARTY_STATS_PROVIDER_IS_WRONG_ROLE_TYPE
- Indicates that the user specified as the third party stats provider
is of the wrong role type. The user must have the third party stats
provider role.
-
INVALID_LABEL_ASSOCIATION
- Labels can only be applied to Company.Type.ADVERTISER,
Company.Type.HOUSE_ADVERTISER, and Company.Type.AD_NETWORK company types.
-
INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING
- Indicates that the Company.Type does not support default billing settings.
-
INVALID_DEFAULT_BILLING_SETTING
- Indicates that the format of the default billing setting is wrong.
-
COMPANY_HAS_ACTIVE_SHARE_ASSIGNMENTS
- Cannot remove the cross selling config from a company that has active share assignments.
-
UNKNOWN
- The value returned if the actual value is not exposed by the requested API version.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-06 UTC.
[null,null,["Last updated 2025-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCompanyError\u003c/code\u003e object, inheriting from \u003ccode\u003eApiError\u003c/code\u003e, outlines errors encountered when interacting with company data in Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompanyError\u003c/code\u003e includes fields like \u003ccode\u003efieldPath\u003c/code\u003e, \u003ccode\u003etrigger\u003c/code\u003e, and \u003ccode\u003eerrorString\u003c/code\u003e for detailed error information, along with a \u003ccode\u003ereason\u003c/code\u003e field indicating the specific company-related error encountered.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ereason\u003c/code\u003e field can indicate issues like invalid company type, incorrect primary contact assignment, or problems with third-party stats provider settings.\u003c/p\u003e\n"],["\u003cp\u003eThe provided table details the fields associated with \u003ccode\u003eCompanyError\u003c/code\u003e and their data types, offering developers insights into the structure of this error object.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for the \u003ccode\u003eCompanyError\u003c/code\u003e object is \u003ccode\u003ehttps://www.google.com/apis/ads/publisher/v202411\u003c/code\u003e, which is important for proper API interaction.\u003c/p\u003e\n"]]],["The core content outlines errors related to the `InventoryService` and `CompanyService` within an API. The `ApiError` is inherited and contains details like `fieldPath`, `fieldPathElements`, `trigger`, and `errorString`. `CompanyError` lists specific reasons, such as issues with company types, third-party settings, contact assignment, and default billing configurations. It details various error types like `CANNOT_SET_THIRD_PARTY_COMPANY_DUE_TO_TYPE`, `INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING`, and others, related to company-specific operations.\n"],null,[]]