public enum CrossSellErrorReason extends Enum<CrossSellErrorReason>
Java class for CrossSellError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="CrossSellError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="COMPANY_IS_NOT_DISTRIBUTION_PARTNER"/>
<enumeration value="CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED"/>
<enumeration value="MISSING_DISTRIBUTOR_PARTNER_NAME"/>
<enumeration value="DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE"/>
<enumeration value="CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE"/>
<enumeration value="INVALID_DISTRIBUTOR_PARTNER_NAME"/>
<enumeration value="INVALID_CONTENT_PROVIDER_NETWORK"/>
<enumeration value="CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK"/>
<enumeration value="CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING"/>
<enumeration value="DISTRIBUTOR_RULE_VIOLATION_ERROR"/>
<enumeration value="DISTRIBUTOR_RULE_VIOLATION_WARNING"/>
<enumeration value="UNKNOWN"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED
The network code of a cross-sell partner cannot be changed.
|
COMPANY_IS_NOT_DISTRIBUTION_PARTNER
A company for cross-sell partner must be of type
Company.Type#PARTNER. |
CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING
The same network code was already enabled for cross-sell in a different company.
|
CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK
The content provider network must be different than the distributor network.
|
CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE
The cross-sell content provider publisher feature must be enabled on the partner's network.
|
DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE
The cross-sell distributor publisher feature must be enabled.
|
DISTRIBUTOR_RULE_VIOLATION_ERROR
A rule defined by the cross selling distributor has been violated by a line item targeting
a shared ad unit.
|
DISTRIBUTOR_RULE_VIOLATION_WARNING
A rule defined by the cross selling distributor has been violated by a line item targeting
a shared ad unit.
|
INVALID_CONTENT_PROVIDER_NETWORK
The network code of a cross-sell partner is invalid.
|
INVALID_DISTRIBUTOR_PARTNER_NAME
The cross-sell partner name conflicts with an ad unit name on the partner's network.
|
MISSING_DISTRIBUTOR_PARTNER_NAME
A cross-sell partner must have a partner name.
|
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static CrossSellErrorReason |
fromValue(String v) |
String |
value() |
static CrossSellErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CrossSellErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CrossSellErrorReason COMPANY_IS_NOT_DISTRIBUTION_PARTNER
Company.Type#PARTNER.public static final CrossSellErrorReason CHANGING_PARTNER_NETWORK_IS_NOT_SUPPORTED
public static final CrossSellErrorReason MISSING_DISTRIBUTOR_PARTNER_NAME
public static final CrossSellErrorReason DISTRIBUTOR_NETWORK_MISSING_PUBLISHER_FEATURE
public static final CrossSellErrorReason CONTENT_PROVIDER_NETWORK_MISSING_PUBLISHER_FEATURE
public static final CrossSellErrorReason INVALID_DISTRIBUTOR_PARTNER_NAME
public static final CrossSellErrorReason INVALID_CONTENT_PROVIDER_NETWORK
public static final CrossSellErrorReason CONTENT_PROVIDER_NETWORK_CANNOT_BE_ACTIVE_NETWORK
public static final CrossSellErrorReason CONTENT_PROVIDER_NETWORK_ALREADY_ENABLED_FOR_CROSS_SELLING
public static final CrossSellErrorReason DISTRIBUTOR_RULE_VIOLATION_ERROR
public static final CrossSellErrorReason DISTRIBUTOR_RULE_VIOLATION_WARNING
By setting LineItemSummary.skipCrossSellingRuleWarningChecks, the content partner can
suppress the warning (and create or save the line item).
This flag is available beginning in V201411.
public static final CrossSellErrorReason UNKNOWN
public static CrossSellErrorReason[] values()
for (CrossSellErrorReason c : CrossSellErrorReason.values()) System.out.println(c);
public static CrossSellErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static CrossSellErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.