Enum google_api_proto::google::ads::googleads::v15::errors::keyword_plan_campaign_error_enum::KeywordPlanCampaignError
source · #[repr(i32)]pub enum KeywordPlanCampaignError {
Unspecified = 0,
Unknown = 1,
InvalidName = 2,
InvalidLanguages = 3,
InvalidGeos = 4,
DuplicateName = 5,
MaxGeosExceeded = 6,
MaxLanguagesExceeded = 7,
}
Expand description
Enum describing possible errors from applying a keyword plan campaign.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
InvalidName = 2
A keyword plan campaign name is missing, empty, longer than allowed limit or contains invalid chars.
InvalidLanguages = 3
A keyword plan campaign contains one or more untargetable languages.
InvalidGeos = 4
A keyword plan campaign contains one or more invalid geo targets.
DuplicateName = 5
The keyword plan campaign name is duplicate to an existing keyword plan campaign name or other keyword plan campaign name in the request.
MaxGeosExceeded = 6
The number of geo targets in the keyword plan campaign exceeds limits.
MaxLanguagesExceeded = 7
The number of languages in the keyword plan campaign exceeds limits.
Implementations§
source§impl KeywordPlanCampaignError
impl KeywordPlanCampaignError
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of KeywordPlanCampaignError
.
sourcepub fn from_i32(value: i32) -> Option<KeywordPlanCampaignError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<KeywordPlanCampaignError>
Converts an i32
to a KeywordPlanCampaignError
, or None
if value
is not a valid variant.
source§impl KeywordPlanCampaignError
impl KeywordPlanCampaignError
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 KeywordPlanCampaignError
impl Clone for KeywordPlanCampaignError
source§fn clone(&self) -> KeywordPlanCampaignError
fn clone(&self) -> KeywordPlanCampaignError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KeywordPlanCampaignError
impl Debug for KeywordPlanCampaignError
source§impl Default for KeywordPlanCampaignError
impl Default for KeywordPlanCampaignError
source§fn default() -> KeywordPlanCampaignError
fn default() -> KeywordPlanCampaignError
source§impl From<KeywordPlanCampaignError> for i32
impl From<KeywordPlanCampaignError> for i32
source§fn from(value: KeywordPlanCampaignError) -> i32
fn from(value: KeywordPlanCampaignError) -> i32
source§impl Hash for KeywordPlanCampaignError
impl Hash for KeywordPlanCampaignError
source§impl Ord for KeywordPlanCampaignError
impl Ord for KeywordPlanCampaignError
source§fn cmp(&self, other: &KeywordPlanCampaignError) -> Ordering
fn cmp(&self, other: &KeywordPlanCampaignError) -> 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 KeywordPlanCampaignError
impl PartialEq for KeywordPlanCampaignError
source§fn eq(&self, other: &KeywordPlanCampaignError) -> bool
fn eq(&self, other: &KeywordPlanCampaignError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeywordPlanCampaignError
impl PartialOrd for KeywordPlanCampaignError
source§fn partial_cmp(&self, other: &KeywordPlanCampaignError) -> Option<Ordering>
fn partial_cmp(&self, other: &KeywordPlanCampaignError) -> 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 KeywordPlanCampaignError
impl TryFrom<i32> for KeywordPlanCampaignError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<KeywordPlanCampaignError, DecodeError>
fn try_from(value: i32) -> Result<KeywordPlanCampaignError, DecodeError>
impl Copy for KeywordPlanCampaignError
impl Eq for KeywordPlanCampaignError
impl StructuralPartialEq for KeywordPlanCampaignError
Auto Trait Implementations§
impl Freeze for KeywordPlanCampaignError
impl RefUnwindSafe for KeywordPlanCampaignError
impl Send for KeywordPlanCampaignError
impl Sync for KeywordPlanCampaignError
impl Unpin for KeywordPlanCampaignError
impl UnwindSafe for KeywordPlanCampaignError
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