enum CrossSellError.Reason (v202502)
Stay organized with collections
Save and categorize content based on your preferences.
The reason of the error.
- Namespace
-
https://www.google.com/apis/ads/publisher/v202502
Enumeration |
Description |
COMPANY_IS_NOT_DISTRIBUTION_PARTNER
|
A company for cross-sell partner must be of type Company.Type.PARTNER.
|
CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED
|
The network code of a cross-sell partner cannot be changed.
|
MISSING_DISTRIBUTOR_PARTNER_NAME
|
A cross-sell partner must have a partner name.
|
DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE
|
The cross-sell distributor publisher feature must be enabled.
|
CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE
|
The cross-sell publisher features must be enabled on the partner's network.
|
INVALID_DISTRIBUTOR_PARTNER_NAME
|
The cross-sell partner name conflicts with an ad unit name on the partner's network.
|
INVALID_CONTENT_PROVIDER_NETWORK
|
The network code of a cross-sell partner is invalid.
|
CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK
|
The content provider network must be different than the distributor network.
|
CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING
|
The same network code was already enabled for cross-sell in a different company.
|
DISTRIBUTOR_RULE_VIOLATION_ERROR
|
A rule defined by the cross selling distributor has been violated by a line item targeting
a shared ad unit. Violating this rule is an error.
|
DISTRIBUTOR_RULE_VIOLATION_WARNING
|
A rule defined by the cross selling distributor has been violated
by a line item targeting a shared ad unit. Violating this rule is a
warning.
By setting LineItem.skipCrossSellingRuleWarningChecks, the content partner can suppress the warning
(and create or save the line item).
This flag is available beginning in V201411.
|
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."],[],["The provided content outlines potential `CrossSellError.Reason` errors within various services like `CompanyService`, `ForecastService`, and `OrderService`. These errors occur when managing cross-sell partnerships, and they are part of a defined enumeration. Key actions involve ensuring the company is a valid partner, has a correct partner name, and that relevant cross-sell publisher features are enabled. Other checks ensure the validity and uniqueness of the partner's network code and compliance with distributor rules, with warnings or errors given based on violations.\n"],null,["# enum CrossSellError.Reason (v202502)\n\n**Service** \n[CompanyService](/ad-manager/api/reference/v202502/CompanyService.CrossSellError.Reason) [ForecastService](/ad-manager/api/reference/v202502/ForecastService.CrossSellError.Reason) [InventoryService](/ad-manager/api/reference/v202502/InventoryService.CrossSellError.Reason) [LineItemCreativeAssociationService](/ad-manager/api/reference/v202502/LineItemCreativeAssociationService.CrossSellError.Reason) [LineItemService](/ad-manager/api/reference/v202502/LineItemService.CrossSellError.Reason) [LineItemTemplateService](/ad-manager/api/reference/v202502/LineItemTemplateService.CrossSellError.Reason) **OrderService** **Dependencies** \n[CrossSellError](/ad-manager/api/reference/v202502/OrderService.CrossSellError) \n▼\n**CrossSellError.Reason**\n\nThe reason of the error.\n\n*** ** * ** ***\n\nNamespace\n:\n `https://www.google.com/apis/ads/publisher/v202502`\n\n| Enumeration | Description |\n|--------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `COMPANY_IS_NOT_DISTRIBUTION_PARTNER` | A company for cross-sell partner must be of type [Company.Type.PARTNER](/ad-manager/api/reference/v202502/CompanyService.Company.Type#PARTNER). |\n| `CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED` | The network code of a cross-sell partner cannot be changed. |\n| `MISSING_DISTRIBUTOR_PARTNER_NAME` | A cross-sell partner must have a partner name. |\n| `DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE` | The cross-sell distributor publisher feature must be enabled. |\n| `CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE` | The cross-sell publisher features must be enabled on the partner's network. |\n| `INVALID_DISTRIBUTOR_PARTNER_NAME` | The cross-sell partner name conflicts with an ad unit name on the partner's network. |\n| `INVALID_CONTENT_PROVIDER_NETWORK` | The network code of a cross-sell partner is invalid. |\n| `CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK` | The content provider network must be different than the distributor network. |\n| `CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING` | The same network code was already enabled for cross-sell in a different company. |\n| `DISTRIBUTOR_RULE_VIOLATION_ERROR` | A rule defined by the cross selling distributor has been violated by a line item targeting a shared ad unit. Violating this rule is an error. |\n| `DISTRIBUTOR_RULE_VIOLATION_WARNING` | A rule defined by the cross selling distributor has been violated by a line item targeting a shared ad unit. Violating this rule is a warning. By setting [LineItem.skipCrossSellingRuleWarningChecks](/ad-manager/api/reference/v202502/ForecastService.LineItem#skipCrossSellingRuleWarningChecks), the content partner can suppress the warning (and create or save the line item). This flag is available beginning in V201411. |\n| `UNKNOWN` | The value returned if the actual value is not exposed by the requested API version. |"]]