Enum google_api_proto::google::ads::googleads::v14::errors::campaign_experiment_error_enum::CampaignExperimentError
source · #[repr(i32)]pub enum CampaignExperimentError {
Unspecified = 0,
Unknown = 1,
DuplicateName = 2,
InvalidTransition = 3,
CannotCreateExperimentWithSharedBudget = 4,
CannotCreateExperimentForRemovedBaseCampaign = 5,
CannotCreateExperimentForNonProposedDraft = 6,
CustomerCannotCreateExperiment = 7,
CampaignCannotCreateExperiment = 8,
ExperimentDurationsMustNotOverlap = 9,
ExperimentDurationMustBeWithinCampaignDuration = 10,
CannotMutateExperimentDueToStatus = 11,
}
Expand description
Enum describing possible campaign experiment errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
DuplicateName = 2
An active campaign or experiment with this name already exists.
InvalidTransition = 3
Experiment cannot be updated from the current state to the requested target state. For example, an experiment can only graduate if its status is ENABLED.
Cannot create an experiment from a campaign using an explicitly shared budget.
CannotCreateExperimentForRemovedBaseCampaign = 5
Cannot create an experiment for a removed base campaign.
CannotCreateExperimentForNonProposedDraft = 6
Cannot create an experiment from a draft, which has a status other than proposed.
CustomerCannotCreateExperiment = 7
This customer is not allowed to create an experiment.
CampaignCannotCreateExperiment = 8
This campaign is not allowed to create an experiment.
ExperimentDurationsMustNotOverlap = 9
Trying to set an experiment duration which overlaps with another experiment.
ExperimentDurationMustBeWithinCampaignDuration = 10
All non-removed experiments must start and end within their campaign’s duration.
CannotMutateExperimentDueToStatus = 11
The experiment cannot be modified because its status is in a terminal state, such as REMOVED.
Implementations§
source§impl CampaignExperimentError
impl CampaignExperimentError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of CampaignExperimentError
.
sourcepub fn from_i32(value: i32) -> Option<CampaignExperimentError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CampaignExperimentError>
Converts an i32
to a CampaignExperimentError
, or None
if value
is not a valid variant.
source§impl CampaignExperimentError
impl CampaignExperimentError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for CampaignExperimentError
impl Clone for CampaignExperimentError
source§fn clone(&self) -> CampaignExperimentError
fn clone(&self) -> CampaignExperimentError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CampaignExperimentError
impl Debug for CampaignExperimentError
source§impl Default for CampaignExperimentError
impl Default for CampaignExperimentError
source§fn default() -> CampaignExperimentError
fn default() -> CampaignExperimentError
source§impl From<CampaignExperimentError> for i32
impl From<CampaignExperimentError> for i32
source§fn from(value: CampaignExperimentError) -> i32
fn from(value: CampaignExperimentError) -> i32
source§impl Hash for CampaignExperimentError
impl Hash for CampaignExperimentError
source§impl Ord for CampaignExperimentError
impl Ord for CampaignExperimentError
source§fn cmp(&self, other: &CampaignExperimentError) -> Ordering
fn cmp(&self, other: &CampaignExperimentError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for CampaignExperimentError
impl PartialEq for CampaignExperimentError
source§fn eq(&self, other: &CampaignExperimentError) -> bool
fn eq(&self, other: &CampaignExperimentError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CampaignExperimentError
impl PartialOrd for CampaignExperimentError
source§fn partial_cmp(&self, other: &CampaignExperimentError) -> Option<Ordering>
fn partial_cmp(&self, other: &CampaignExperimentError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for CampaignExperimentError
impl TryFrom<i32> for CampaignExperimentError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CampaignExperimentError, DecodeError>
fn try_from(value: i32) -> Result<CampaignExperimentError, DecodeError>
impl Copy for CampaignExperimentError
impl Eq for CampaignExperimentError
impl StructuralPartialEq for CampaignExperimentError
Auto Trait Implementations§
impl Freeze for CampaignExperimentError
impl RefUnwindSafe for CampaignExperimentError
impl Send for CampaignExperimentError
impl Sync for CampaignExperimentError
impl Unpin for CampaignExperimentError
impl UnwindSafe for CampaignExperimentError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request