Enum googapis::google::ads::googleads::v9::errors::campaign_error_enum::CampaignError[][src]

#[repr(i32)]
pub enum CampaignError {
Show 48 variants Unspecified, Unknown, CannotTargetContentNetwork, CannotTargetSearchNetwork, CannotTargetSearchNetworkWithoutGoogleSearch, CannotTargetGoogleSearchForCpmCampaign, CampaignMustTargetAtLeastOneNetwork, CannotTargetPartnerSearchNetwork, CannotTargetContentNetworkOnlyWithCriteriaLevelBiddingStrategy, CampaignDurationMustContainAllRunnableTrials, CannotModifyForTrialCampaign, DuplicateCampaignName, IncompatibleCampaignField, InvalidCampaignName, InvalidAdServingOptimizationStatus, InvalidTrackingUrl, CannotSetBothTrackingUrlTemplateAndTrackingSetting, MaxImpressionsNotInRange, TimeUnitNotSupported, InvalidOperationIfServingStatusHasEnded, BudgetCannotBeShared, CampaignCannotUseSharedBudget, CannotChangeBudgetOnCampaignWithTrials, CampaignLabelDoesNotExist, CampaignLabelAlreadyExists, MissingShoppingSetting, InvalidShoppingSalesCountry, AdvertisingChannelTypeNotAvailableForAccountType, InvalidAdvertisingChannelSubType, AtLeastOneConversionMustBeSelected, CannotSetAdRotationMode, CannotModifyStartDateIfAlreadyStarted, CannotSetDateToPast, MissingHotelCustomerLink, InvalidHotelCustomerLink, MissingHotelSetting, CannotUseSharedCampaignBudgetWhilePartOfCampaignGroup, AppNotFound, ShoppingEnableLocalNotSupportedForCampaignType, MerchantNotAllowedForComparisonListingAds, InsufficientAppInstallsCount, SensitiveCategoryApp, HecAgreementRequired, NotCompatibleWithViewThroughConversionOptimization, InvalidExcludedParentAssetFieldType, CannotCreateAppPreRegistrationForNonAndroidApp, AppNotAvailableToCreateAppPreRegistrationCampaign, IncompatibleBudgetType,
}
Expand description

Enum describing possible campaign errors.

Variants

Unspecified

Enum unspecified.

Unknown

The received error code is not known in this version.

CannotTargetContentNetwork

Cannot target content network.

CannotTargetSearchNetwork

Cannot target search network.

CannotTargetSearchNetworkWithoutGoogleSearch

Cannot cover search network without google search network.

CannotTargetGoogleSearchForCpmCampaign

Cannot target Google Search network for a CPM campaign.

CampaignMustTargetAtLeastOneNetwork

Must target at least one network.

CannotTargetPartnerSearchNetwork

Only some Google partners are allowed to target partner search network.

CannotTargetContentNetworkOnlyWithCriteriaLevelBiddingStrategy

Cannot target content network only as campaign has criteria-level bidding strategy.

CampaignDurationMustContainAllRunnableTrials

Cannot modify the start or end date such that the campaign duration would not contain the durations of all runnable trials.

CannotModifyForTrialCampaign

Cannot modify dates, budget or status of a trial campaign.

DuplicateCampaignName

Trying to modify the name of an active or paused campaign, where the name is already assigned to another active or paused campaign.

IncompatibleCampaignField

Two fields are in conflicting modes.

InvalidCampaignName

Campaign name cannot be used.

InvalidAdServingOptimizationStatus

Given status is invalid.

InvalidTrackingUrl

Error in the campaign level tracking URL.

CannotSetBothTrackingUrlTemplateAndTrackingSetting

Cannot set both tracking URL template and tracking setting. A user has to clear legacy tracking setting in order to add tracking URL template.

MaxImpressionsNotInRange

The maximum number of impressions for Frequency Cap should be an integer greater than 0.

TimeUnitNotSupported

Only the Day, Week and Month time units are supported.

InvalidOperationIfServingStatusHasEnded

Operation not allowed on a campaign whose serving status has ended

BudgetCannotBeShared

This budget is exclusively linked to a Campaign that is using experiments so it cannot be shared.

CampaignCannotUseSharedBudget

Campaigns using experiments cannot use a shared budget.

CannotChangeBudgetOnCampaignWithTrials

A different budget cannot be assigned to a campaign when there are running or scheduled trials.

CampaignLabelDoesNotExist

No link found between the campaign and the label.

CampaignLabelAlreadyExists

The label has already been attached to the campaign.

MissingShoppingSetting

A ShoppingSetting was not found when creating a shopping campaign.

InvalidShoppingSalesCountry

The country in shopping setting is not an allowed country.

AdvertisingChannelTypeNotAvailableForAccountType

The requested channel type is not available according to the customer’s account setting.

InvalidAdvertisingChannelSubType

The AdvertisingChannelSubType is not a valid subtype of the primary channel type.

AtLeastOneConversionMustBeSelected

At least one conversion must be selected.

CannotSetAdRotationMode

Setting ad rotation mode for a campaign is not allowed. Ad rotation mode at campaign is deprecated.

CannotModifyStartDateIfAlreadyStarted

Trying to change start date on a campaign that has started.

CannotSetDateToPast

Trying to modify a date into the past.

Hotel center id in the hotel setting does not match any customer links.

Hotel center id in the hotel setting must match an active customer link.

MissingHotelSetting

Hotel setting was not found when creating a hotel ads campaign.

CannotUseSharedCampaignBudgetWhilePartOfCampaignGroup

A Campaign cannot use shared campaign budgets and be part of a campaign group.

AppNotFound

The app ID was not found.

ShoppingEnableLocalNotSupportedForCampaignType

Campaign.shopping_setting.enable_local is not supported for the specified campaign type.

MerchantNotAllowedForComparisonListingAds

The merchant does not support the creation of campaigns for Shopping Comparison Listing Ads.

InsufficientAppInstallsCount

The App campaign for engagement cannot be created because there aren’t enough installs.

SensitiveCategoryApp

The App campaign for engagement cannot be created because the app is sensitive.

HecAgreementRequired

Customers with Housing, Employment, or Credit ads must accept updated personalized ads policy to continue creating campaigns.

NotCompatibleWithViewThroughConversionOptimization

The field is not compatible with view through conversion optimization.

InvalidExcludedParentAssetFieldType

The field type cannot be excluded because an active campaign-asset link of this type exists.

CannotCreateAppPreRegistrationForNonAndroidApp

The app pre-registration campaign cannot be created for non-Android applications.

AppNotAvailableToCreateAppPreRegistrationCampaign

The campaign cannot be created since the app is not available for pre-registration in any country.

IncompatibleBudgetType

The type of the Budget is not compatible with this Campaign.

Implementations

Returns true if value is a variant of CampaignError.

Converts an i32 to a CampaignError, or None if value is not a valid variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more