enum CompanyError.Reason (v202408)
Stay organized with collections
Save and categorize content based on your preferences.
Enumerates all possible company specific errors.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202408
Enumeration |
Description |
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\u003e\u003ccode\u003eCompanyError.Reason\u003c/code\u003e enumerates potential errors specific to company operations within Google Ad Manager.\u003c/p\u003e\n"],["\u003cp\u003eThese errors encompass issues like invalid company types, incorrect contact assignments, and incompatible third-party integrations.\u003c/p\u003e\n"],["\u003cp\u003eThe provided table outlines each error reason with a detailed description, clarifying the cause and context of the error.\u003c/p\u003e\n"],["\u003cp\u003eErrors related to labels, billing settings, and cross-selling configurations are also addressed in the enumeration.\u003c/p\u003e\n"]]],["The document outlines potential errors related to company management within the `CompanyService` and `InventoryService`. Key actions leading to errors include: setting incorrect third-party company types, changing company types, assigning primary contacts from outside the company, designating users with incorrect roles as third-party stats providers, applying labels to unsupported company types, using unsupported types with billing settings, incorrect billing format, and trying to remove the config of a company with active share assignments. It also mentions that some unkown errors may return the `UNKNOWN` value.\n"],null,["# enum CompanyError.Reason (v202408)\n\n**Service** \n[CompanyService](/ad-manager/api/reference/v202408/CompanyService.CompanyError.Reason) **InventoryService** **Dependencies** \n[CompanyError](/ad-manager/api/reference/v202408/InventoryService.CompanyError) \n▼\n**CompanyError.Reason**\n\nEnumerates all possible company specific errors.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202408`\n\n| Enumeration | Description |\n|----------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n| `CANNOT_UPDATE_COMPANY_TYPE` | Indicates that an invalid attempt was made to change a company's type. |\n| `INVALID_COMPANY_TYPE` | Indicates that this type of company is not supported. |\n| `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. |\n| `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. |\n| `INVALID_LABEL_ASSOCIATION` | Labels can only be applied to [Company.Type.ADVERTISER](/ad-manager/api/reference/v202408/CompanyService.Company.Type#ADVERTISER), [Company.Type.HOUSE_ADVERTISER](/ad-manager/api/reference/v202408/CompanyService.Company.Type#HOUSE_ADVERTISER), and [Company.Type.AD_NETWORK](/ad-manager/api/reference/v202408/CompanyService.Company.Type#AD_NETWORK) company types. |\n| `INVALID_COMPANY_TYPE_FOR_DEFAULT_BILLING_SETTING` | Indicates that the [Company.Type](/ad-manager/api/reference/v202408/CompanyService.Company.Type) does not support default billing settings. |\n| `INVALID_DEFAULT_BILLING_SETTING` | Indicates that the format of the default billing setting is wrong. |\n| `COMPANY_HAS_ACTIVE_SHARE_ASSIGNMENTS` | Cannot remove the cross selling config from a company that has active share assignments. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]