import {z} from 'zod' export type GoogleAdsSearchads360V23ResourcesCampaignAiMaxSetting = {bundlingRequired?: ('UNSPECIFIED' | 'UNKNOWN' | 'NOT_REQUIRED' | 'REQUIRED') | undefined, enableAiMax?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignAppCampaignSetting = {appId?: string | undefined, appStore?: ('UNSPECIFIED' | 'UNKNOWN' | 'APPLE_APP_STORE' | 'GOOGLE_APP_STORE') | undefined, biddingStrategyGoalType?: ('UNSPECIFIED' | 'UNKNOWN' | 'OPTIMIZE_INSTALLS_TARGET_INSTALL_COST' | 'OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST' | 'OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST' | 'OPTIMIZE_RETURN_ON_ADVERTISING_SPEND' | 'OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME' | 'OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST' | 'OPTIMIZE_IN_APP_CONVERSIONS_WITHOUT_TARGET_CPA' | 'OPTIMIZE_TOTAL_VALUE_WITHOUT_TARGET_ROAS') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignAssetAutomationSetting = {assetAutomationStatus?: ('UNSPECIFIED' | 'UNKNOWN' | 'OPTED_IN' | 'OPTED_OUT') | undefined, assetAutomationType?: ('UNSPECIFIED' | 'UNKNOWN' | 'TEXT_ASSET_AUTOMATION' | 'GENERATE_VERTICAL_YOUTUBE_VIDEOS' | 'GENERATE_SHORTER_YOUTUBE_VIDEOS' | 'GENERATE_LANDING_PAGE_PREVIEW' | 'GENERATE_LANDING_PAGE_TEXT' | 'GENERATE_ENHANCED_YOUTUBE_VIDEOS' | 'GENERATE_IMAGE_ENHANCEMENT' | 'GENERATE_IMAGE_EXTRACTION' | 'GENERATE_DESIGN_VERSIONS_FOR_IMAGES' | 'FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION' | 'GENERATE_VIDEOS_FROM_OTHER_ASSETS') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignAudienceSetting = {useAudienceGrouped?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignBrandGuidelines = {accentColor?: string | undefined, mainColor?: string | undefined, predefinedFontFamily?: string | undefined}; export type GoogleAdsSearchads360V23CommonCommission = {commissionRateMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignDemandGenCampaignSettings = {upgradedTargeting?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignDynamicSearchAdsSetting = {domainName?: string | undefined, languageCode?: string | undefined, useSuppliedUrlsOnly?: boolean | undefined}; export type GoogleAdsSearchads360V23CommonFrequencyCapKey = {eventType?: ('UNSPECIFIED' | 'UNKNOWN' | 'IMPRESSION' | 'VIDEO_VIEW') | undefined, level?: ('UNSPECIFIED' | 'UNKNOWN' | 'AD_GROUP_AD' | 'AD_GROUP' | 'CAMPAIGN') | undefined, timeLength?: number | undefined, timeUnit?: ('UNSPECIFIED' | 'UNKNOWN' | 'DAY' | 'WEEK' | 'MONTH') | undefined}; export type GoogleAdsSearchads360V23CommonFrequencyCapEntry = {cap?: number | undefined, key?: GoogleAdsSearchads360V23CommonFrequencyCapKey | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignGeoTargetTypeSetting = {negativeGeoTargetType?: ('UNSPECIFIED' | 'UNKNOWN' | 'PRESENCE_OR_INTEREST' | 'PRESENCE') | undefined, positiveGeoTargetType?: ('UNSPECIFIED' | 'UNKNOWN' | 'PRESENCE_OR_INTEREST' | 'SEARCH_INTEREST' | 'PRESENCE') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignHotelSettingInfo = {hotelCenterId?: unknown | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignLocalCampaignSetting = {locationSourceType?: ('UNSPECIFIED' | 'UNKNOWN' | 'GOOGLE_MY_BUSINESS' | 'AFFILIATE') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignCategoryBid = {categoryId?: string | undefined, manualCpaBidMicros?: unknown | undefined, targetCpaBidMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignLocalServicesCampaignSettings = {categoryBids?: Array | undefined}; export type GoogleAdsSearchads360V23CommonManualCpa = Record; export type GoogleAdsSearchads360V23CommonManualCpc = {enhancedCpcEnabled?: boolean | undefined}; export type GoogleAdsSearchads360V23CommonManualCpm = Record; export type GoogleAdsSearchads360V23CommonManualCpv = Record; export type GoogleAdsSearchads360V23CommonMaximizeConversionValue = {cpcBidCeilingMicros?: unknown | undefined, cpcBidFloorMicros?: unknown | undefined, targetRoas?: number | undefined, targetRoasTolerancePercentMillis?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonMaximizeConversions = {cpcBidCeilingMicros?: unknown | undefined, cpcBidFloorMicros?: unknown | undefined, targetCpaMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignNetworkSettings = {targetContentNetwork?: boolean | undefined, targetGoogleSearch?: boolean | undefined, targetGoogleTvNetwork?: boolean | undefined, targetPartnerSearchNetwork?: boolean | undefined, targetSearchNetwork?: boolean | undefined, targetYoutube?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignOptimizationGoalSetting = {optimizationGoalTypes?: (Array<'UNSPECIFIED' | 'UNKNOWN' | 'CALL_CLICKS' | 'DRIVING_DIRECTIONS' | 'APP_PRE_REGISTRATION'>) | undefined}; export type GoogleAdsSearchads360V23CommonPercentCpc = {cpcBidCeilingMicros?: unknown | undefined, enhancedCpcEnabled?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignPerformanceMaxUpgrade = {performanceMaxCampaign?: string | undefined, preUpgradeCampaign?: string | undefined, status?: ('UNSPECIFIED' | 'UNKNOWN' | 'UPGRADE_IN_PROGRESS' | 'UPGRADE_COMPLETE' | 'UPGRADE_FAILED' | 'UPGRADE_ELIGIBLE') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettingsBrandTargetingOverrides = {ignoreExclusionsForShoppingAds?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettings = {brandTargetingOverrides?: GoogleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettingsBrandTargetingOverrides | undefined}; export type GoogleAdsSearchads360V23CommonRealTimeBiddingSetting = {optIn?: boolean | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignSelectiveOptimization = {conversionActions?: Array | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignShoppingSetting = {advertisingPartnerIds?: Array | undefined, campaignPriority?: number | undefined, disableProductFeed?: boolean | undefined, enableLocal?: boolean | undefined, feedLabel?: string | undefined, merchantId?: unknown | undefined, useVehicleInventory?: boolean | undefined}; export type GoogleAdsSearchads360V23CommonTargetCpa = {cpcBidCeilingMicros?: unknown | undefined, cpcBidFloorMicros?: unknown | undefined, targetCpaMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonTargetCpc = {targetCpcMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonTargetCpm = Record; export type GoogleAdsSearchads360V23CommonTargetImpressionShare = {cpcBidCeilingMicros?: unknown | undefined, location?: ('UNSPECIFIED' | 'UNKNOWN' | 'ANYWHERE_ON_PAGE' | 'TOP_OF_PAGE' | 'ABSOLUTE_TOP_OF_PAGE') | undefined, locationFractionMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonTargetRoas = {cpcBidCeilingMicros?: unknown | undefined, cpcBidFloorMicros?: unknown | undefined, targetRoas?: number | undefined, targetRoasTolerancePercentMillis?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonTargetSpend = {cpcBidCeilingMicros?: unknown | undefined, targetSpendMicros?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonTargetRestriction = {bidOnly?: boolean | undefined, targetingDimension?: ('UNSPECIFIED' | 'UNKNOWN' | 'KEYWORD' | 'AUDIENCE' | 'TOPIC' | 'GENDER' | 'AGE_RANGE' | 'PLACEMENT' | 'PARENTAL_STATUS' | 'INCOME_RANGE') | undefined}; export type GoogleAdsSearchads360V23CommonTargetRestrictionOperation = {operator?: ('UNSPECIFIED' | 'UNKNOWN' | 'ADD' | 'REMOVE') | undefined, value?: GoogleAdsSearchads360V23CommonTargetRestriction | undefined}; export type GoogleAdsSearchads360V23CommonTargetingSetting = {targetRestrictionOperations?: Array | undefined, targetRestrictions?: Array | undefined}; export type GoogleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData = {clientId?: string | undefined, thirdPartyPlacementId?: string | undefined}; export type GoogleAdsSearchads360V23CommonCampaignThirdPartyBrandLiftIntegrationPartner = {brandLiftIntegrationPartner?: ('UNSPECIFIED' | 'UNKNOWN' | 'KANTAR_MILLWARD_BROWN' | 'DYNATA' | 'INTAGE' | 'MACROMILL') | undefined, brandLiftIntegrationPartnerData?: GoogleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData | undefined, shareCost?: boolean | undefined}; export type GoogleAdsSearchads360V23CommonCampaignThirdPartyBrandSafetyIntegrationPartner = {brandSafetyIntegrationPartner?: ('UNSPECIFIED' | 'UNKNOWN' | 'DOUBLE_VERIFY' | 'INTEGRAL_AD_SCIENCE' | 'ZEFR') | undefined, brandSafetyIntegrationPartnerData?: GoogleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData | undefined}; export type GoogleAdsSearchads360V23CommonCampaignThirdPartyReachIntegrationPartner = {reachIntegrationPartner?: ('UNSPECIFIED' | 'UNKNOWN' | 'NIELSEN' | 'COMSCORE' | 'KANTAR_MILLWARD_BROWN' | 'VIDEO_RESEARCH' | 'GEMIUS' | 'MEDIA_SCOPE' | 'AUDIENCE_PROJECT' | 'VIDEO_AMP' | 'ISPOT_TV') | undefined, reachIntegrationPartnerData?: GoogleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData | undefined, shareCost?: boolean | undefined}; export type GoogleAdsSearchads360V23CommonCampaignThirdPartyViewabilityIntegrationPartner = {shareCost?: boolean | undefined, viewabilityIntegrationPartner?: ('UNSPECIFIED' | 'UNKNOWN' | 'DOUBLE_VERIFY' | 'INTEGRAL_AD_SCIENCE') | undefined, viewabilityIntegrationPartnerData?: GoogleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData | undefined}; export type GoogleAdsSearchads360V23CommonCampaignThirdPartyIntegrationPartners = {brandLiftIntegrationPartners?: Array | undefined, brandSafetyIntegrationPartners?: Array | undefined, reachIntegrationPartners?: Array | undefined, viewabilityIntegrationPartners?: Array | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignTrackingSetting = {trackingUrl?: string | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignTravelCampaignSettings = {travelAccountId?: unknown | undefined}; export type GoogleAdsSearchads360V23CommonCustomParameter = {key?: string | undefined, value?: string | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaignVanityPharma = {vanityPharmaDisplayUrlMode?: ('UNSPECIFIED' | 'UNKNOWN' | 'MANUFACTURER_WEBSITE_URL' | 'WEBSITE_DESCRIPTION') | undefined, vanityPharmaText?: ('UNSPECIFIED' | 'UNKNOWN' | 'PRESCRIPTION_TREATMENT_WEBSITE_EN' | 'PRESCRIPTION_TREATMENT_WEBSITE_ES' | 'PRESCRIPTION_DEVICE_WEBSITE_EN' | 'PRESCRIPTION_DEVICE_WEBSITE_ES' | 'MEDICAL_DEVICE_WEBSITE_EN' | 'MEDICAL_DEVICE_WEBSITE_ES' | 'PREVENTATIVE_TREATMENT_WEBSITE_EN' | 'PREVENTATIVE_TREATMENT_WEBSITE_ES' | 'PRESCRIPTION_CONTRACEPTION_WEBSITE_EN' | 'PRESCRIPTION_CONTRACEPTION_WEBSITE_ES' | 'PRESCRIPTION_VACCINE_WEBSITE_EN' | 'PRESCRIPTION_VACCINE_WEBSITE_ES') | undefined}; export type GoogleAdsSearchads360V23ResourcesCampaign = {accessibleBiddingStrategy?: string | undefined, adServingOptimizationStatus?: ('UNSPECIFIED' | 'UNKNOWN' | 'OPTIMIZE' | 'CONVERSION_OPTIMIZE' | 'ROTATE' | 'ROTATE_INDEFINITELY' | 'UNAVAILABLE') | undefined, advertisingChannelSubType?: ('UNSPECIFIED' | 'UNKNOWN' | 'SEARCH_MOBILE_APP' | 'DISPLAY_MOBILE_APP' | 'SEARCH_EXPRESS' | 'DISPLAY_EXPRESS' | 'SHOPPING_SMART_ADS' | 'DISPLAY_GMAIL_AD' | 'DISPLAY_SMART_CAMPAIGN' | 'VIDEO_ACTION' | 'VIDEO_NON_SKIPPABLE' | 'APP_CAMPAIGN' | 'APP_CAMPAIGN_FOR_ENGAGEMENT' | 'LOCAL_CAMPAIGN' | 'SHOPPING_COMPARISON_LISTING_ADS' | 'SMART_CAMPAIGN' | 'VIDEO_SEQUENCE' | 'APP_CAMPAIGN_FOR_PRE_REGISTRATION' | 'VIDEO_REACH_TARGET_FREQUENCY' | 'TRAVEL_ACTIVITIES' | 'SOCIAL_FACEBOOK_TRACKING_ONLY') | undefined, advertisingChannelType?: ('UNSPECIFIED' | 'UNKNOWN' | 'SEARCH' | 'DISPLAY' | 'SHOPPING' | 'HOTEL' | 'VIDEO' | 'MULTI_CHANNEL' | 'LOCAL' | 'SMART' | 'PERFORMANCE_MAX' | 'LOCAL_SERVICES' | 'TRAVEL' | 'DEMAND_GEN' | 'SOCIAL') | undefined, aiMaxSetting?: GoogleAdsSearchads360V23ResourcesCampaignAiMaxSetting | undefined, appCampaignSetting?: GoogleAdsSearchads360V23ResourcesCampaignAppCampaignSetting | undefined, assetAutomationSettings?: Array | undefined, audienceSetting?: GoogleAdsSearchads360V23ResourcesCampaignAudienceSetting | undefined, baseCampaign?: string | undefined, biddingStrategy?: string | undefined, biddingStrategySystemStatus?: ('UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'LEARNING_NEW' | 'LEARNING_SETTING_CHANGE' | 'LEARNING_BUDGET_CHANGE' | 'LEARNING_COMPOSITION_CHANGE' | 'LEARNING_CONVERSION_TYPE_CHANGE' | 'LEARNING_CONVERSION_SETTING_CHANGE' | 'LIMITED_BY_CPC_BID_CEILING' | 'LIMITED_BY_CPC_BID_FLOOR' | 'LIMITED_BY_DATA' | 'LIMITED_BY_BUDGET' | 'LIMITED_BY_LOW_PRIORITY_SPEND' | 'LIMITED_BY_LOW_QUALITY' | 'LIMITED_BY_INVENTORY' | 'MISCONFIGURED_ZERO_ELIGIBILITY' | 'MISCONFIGURED_CONVERSION_TYPES' | 'MISCONFIGURED_CONVERSION_SETTINGS' | 'MISCONFIGURED_SHARED_BUDGET' | 'MISCONFIGURED_STRATEGY_TYPE' | 'PAUSED' | 'UNAVAILABLE' | 'MULTIPLE_LEARNING' | 'MULTIPLE_LIMITED' | 'MULTIPLE_MISCONFIGURED' | 'MULTIPLE') | undefined, biddingStrategyType?: ('UNSPECIFIED' | 'UNKNOWN' | 'COMMISSION' | 'ENHANCED_CPC' | 'INVALID' | 'MANUAL_CPA' | 'MANUAL_CPC' | 'MANUAL_CPM' | 'MANUAL_CPV' | 'MAXIMIZE_CONVERSIONS' | 'MAXIMIZE_CONVERSION_VALUE' | 'PAGE_ONE_PROMOTED' | 'PERCENT_CPC' | 'TARGET_CPA' | 'TARGET_CPC' | 'TARGET_CPM' | 'TARGET_IMPRESSION_SHARE' | 'TARGET_OUTRANK_SHARE' | 'TARGET_ROAS' | 'TARGET_SPEND') | undefined, brandGuidelines?: GoogleAdsSearchads360V23ResourcesCampaignBrandGuidelines | undefined, brandGuidelinesEnabled?: boolean | undefined, campaignBudget?: string | undefined, campaignGroup?: string | undefined, commission?: GoogleAdsSearchads360V23CommonCommission | undefined, containsEuPoliticalAdvertising?: ('UNSPECIFIED' | 'UNKNOWN' | 'CONTAINS_EU_POLITICAL_ADVERTISING' | 'DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING') | undefined, demandGenCampaignSettings?: GoogleAdsSearchads360V23ResourcesCampaignDemandGenCampaignSettings | undefined, dynamicSearchAdsSetting?: GoogleAdsSearchads360V23ResourcesCampaignDynamicSearchAdsSetting | undefined, effectiveLabels?: Array | undefined, endDateTime?: string | undefined, engineId?: string | undefined, excludedParentAssetFieldTypes?: (Array<'UNSPECIFIED' | 'UNKNOWN' | 'HEADLINE' | 'DESCRIPTION' | 'MANDATORY_AD_TEXT' | 'MARKETING_IMAGE' | 'MEDIA_BUNDLE' | 'YOUTUBE_VIDEO' | 'BOOK_ON_GOOGLE' | 'LEAD_FORM' | 'PROMOTION' | 'CALLOUT' | 'STRUCTURED_SNIPPET' | 'SITELINK' | 'MOBILE_APP' | 'HOTEL_CALLOUT' | 'CALL' | 'PRICE' | 'LONG_HEADLINE' | 'BUSINESS_NAME' | 'SQUARE_MARKETING_IMAGE' | 'PORTRAIT_MARKETING_IMAGE' | 'LOGO' | 'LANDSCAPE_LOGO' | 'VIDEO' | 'CALL_TO_ACTION_SELECTION' | 'AD_IMAGE' | 'BUSINESS_LOGO' | 'HOTEL_PROPERTY' | 'DEMAND_GEN_CAROUSEL_CARD' | 'BUSINESS_MESSAGE' | 'TALL_PORTRAIT_MARKETING_IMAGE' | 'LANDING_PAGE_PREVIEW' | 'LONG_DESCRIPTION' | 'CALL_TO_ACTION'>) | undefined, excludedParentAssetSetTypes?: (Array<'UNSPECIFIED' | 'UNKNOWN' | 'PAGE_FEED' | 'DYNAMIC_EDUCATION' | 'MERCHANT_CENTER_FEED' | 'DYNAMIC_REAL_ESTATE' | 'DYNAMIC_CUSTOM' | 'DYNAMIC_HOTELS_AND_RENTALS' | 'DYNAMIC_FLIGHTS' | 'DYNAMIC_TRAVEL' | 'DYNAMIC_LOCAL' | 'DYNAMIC_JOBS' | 'LOCATION_SYNC' | 'BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP' | 'CHAIN_DYNAMIC_LOCATION_GROUP' | 'STATIC_LOCATION_GROUP' | 'HOTEL_PROPERTY' | 'TRAVEL_FEED'>) | undefined, experimentType?: ('UNSPECIFIED' | 'UNKNOWN' | 'BASE' | 'DRAFT' | 'EXPERIMENT') | undefined, feedTypes?: (Array<'UNSPECIFIED' | 'UNKNOWN' | 'PAGE_FEED' | 'DYNAMIC_EDUCATION' | 'MERCHANT_CENTER_FEED' | 'DYNAMIC_REAL_ESTATE' | 'DYNAMIC_CUSTOM' | 'DYNAMIC_HOTELS_AND_RENTALS' | 'DYNAMIC_FLIGHTS' | 'DYNAMIC_TRAVEL' | 'DYNAMIC_LOCAL' | 'DYNAMIC_JOBS' | 'LOCATION_SYNC' | 'BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP' | 'CHAIN_DYNAMIC_LOCATION_GROUP' | 'STATIC_LOCATION_GROUP' | 'HOTEL_PROPERTY' | 'TRAVEL_FEED'>) | undefined, finalUrlSuffix?: string | undefined, frequencyCaps?: Array | undefined, geoTargetTypeSetting?: GoogleAdsSearchads360V23ResourcesCampaignGeoTargetTypeSetting | undefined, hotelPropertyAssetSet?: string | undefined, hotelSetting?: GoogleAdsSearchads360V23ResourcesCampaignHotelSettingInfo | undefined, id?: unknown | undefined, keywordMatchType?: ('UNSPECIFIED' | 'UNKNOWN' | 'BROAD') | undefined, labels?: Array | undefined, lastModifiedTime?: string | undefined, listingType?: ('UNSPECIFIED' | 'UNKNOWN' | 'VEHICLES') | undefined, localCampaignSetting?: GoogleAdsSearchads360V23ResourcesCampaignLocalCampaignSetting | undefined, localServicesCampaignSettings?: GoogleAdsSearchads360V23ResourcesCampaignLocalServicesCampaignSettings | undefined, manualCpa?: GoogleAdsSearchads360V23CommonManualCpa | undefined, manualCpc?: GoogleAdsSearchads360V23CommonManualCpc | undefined, manualCpm?: GoogleAdsSearchads360V23CommonManualCpm | undefined, manualCpv?: GoogleAdsSearchads360V23CommonManualCpv | undefined, maximizeConversionValue?: GoogleAdsSearchads360V23CommonMaximizeConversionValue | undefined, maximizeConversions?: GoogleAdsSearchads360V23CommonMaximizeConversions | undefined, missingEuPoliticalAdvertisingDeclaration?: boolean | undefined, name?: string | undefined, networkSettings?: GoogleAdsSearchads360V23ResourcesCampaignNetworkSettings | undefined, optimizationGoalSetting?: GoogleAdsSearchads360V23ResourcesCampaignOptimizationGoalSetting | undefined, optimizationScore?: number | undefined, paymentMode?: ('UNSPECIFIED' | 'UNKNOWN' | 'CLICKS' | 'CONVERSION_VALUE' | 'CONVERSIONS' | 'GUEST_STAY') | undefined, percentCpc?: GoogleAdsSearchads360V23CommonPercentCpc | undefined, performanceMaxUpgrade?: GoogleAdsSearchads360V23ResourcesCampaignPerformanceMaxUpgrade | undefined, pmaxCampaignSettings?: GoogleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettings | undefined, primaryStatus?: ('UNSPECIFIED' | 'UNKNOWN' | 'ELIGIBLE' | 'PAUSED' | 'REMOVED' | 'ENDED' | 'PENDING' | 'MISCONFIGURED' | 'LIMITED' | 'LEARNING' | 'NOT_ELIGIBLE') | undefined, primaryStatusReasons?: (Array<'UNSPECIFIED' | 'UNKNOWN' | 'CAMPAIGN_REMOVED' | 'CAMPAIGN_PAUSED' | 'CAMPAIGN_PENDING' | 'CAMPAIGN_ENDED' | 'CAMPAIGN_DRAFT' | 'BIDDING_STRATEGY_MISCONFIGURED' | 'BIDDING_STRATEGY_LIMITED' | 'BIDDING_STRATEGY_LEARNING' | 'BIDDING_STRATEGY_CONSTRAINED' | 'BUDGET_CONSTRAINED' | 'BUDGET_MISCONFIGURED' | 'SEARCH_VOLUME_LIMITED' | 'AD_GROUPS_PAUSED' | 'NO_AD_GROUPS' | 'KEYWORDS_PAUSED' | 'NO_KEYWORDS' | 'AD_GROUP_ADS_PAUSED' | 'NO_AD_GROUP_ADS' | 'HAS_ADS_LIMITED_BY_POLICY' | 'HAS_ADS_DISAPPROVED' | 'MOST_ADS_UNDER_REVIEW' | 'MISSING_LEAD_FORM_EXTENSION' | 'MISSING_CALL_EXTENSION' | 'LEAD_FORM_EXTENSION_UNDER_REVIEW' | 'LEAD_FORM_EXTENSION_DISAPPROVED' | 'CALL_EXTENSION_UNDER_REVIEW' | 'CALL_EXTENSION_DISAPPROVED' | 'NO_MOBILE_APPLICATION_AD_GROUP_CRITERIA' | 'CAMPAIGN_GROUP_PAUSED' | 'CAMPAIGN_GROUP_ALL_GROUP_BUDGETS_ENDED' | 'APP_NOT_RELEASED' | 'APP_PARTIALLY_RELEASED' | 'HAS_ASSET_GROUPS_DISAPPROVED' | 'HAS_ASSET_GROUPS_LIMITED_BY_POLICY' | 'MOST_ASSET_GROUPS_UNDER_REVIEW' | 'NO_ASSET_GROUPS' | 'ASSET_GROUPS_PAUSED' | 'MISSING_LOCATION_TARGETING'>) | undefined, realTimeBiddingSetting?: GoogleAdsSearchads360V23CommonRealTimeBiddingSetting | undefined, resourceName?: string | undefined, selectiveOptimization?: GoogleAdsSearchads360V23ResourcesCampaignSelectiveOptimization | undefined, selectiveOptimizationMode?: ('UNSPECIFIED' | 'UNKNOWN' | 'UNCONSTRAINED' | 'MATCHES_SEARCH_ADS360_EFFECTIVE_CAMPAIGN_LEVEL_CONFIG') | undefined, servingStatus?: ('UNSPECIFIED' | 'UNKNOWN' | 'SERVING' | 'NONE' | 'ENDED' | 'PENDING' | 'SUSPENDED') | undefined, shoppingSetting?: GoogleAdsSearchads360V23ResourcesCampaignShoppingSetting | undefined, startDateTime?: string | undefined, status?: ('UNSPECIFIED' | 'UNKNOWN' | 'ENABLED' | 'PAUSED' | 'REMOVED') | undefined, targetCpa?: GoogleAdsSearchads360V23CommonTargetCpa | undefined, targetCpc?: GoogleAdsSearchads360V23CommonTargetCpc | undefined, targetCpm?: GoogleAdsSearchads360V23CommonTargetCpm | undefined, targetImpressionShare?: GoogleAdsSearchads360V23CommonTargetImpressionShare | undefined, targetRoas?: GoogleAdsSearchads360V23CommonTargetRoas | undefined, targetSpend?: GoogleAdsSearchads360V23CommonTargetSpend | undefined, targetingSetting?: GoogleAdsSearchads360V23CommonTargetingSetting | undefined, thirdPartyIntegrationPartners?: GoogleAdsSearchads360V23CommonCampaignThirdPartyIntegrationPartners | undefined, trackingSetting?: GoogleAdsSearchads360V23ResourcesCampaignTrackingSetting | undefined, trackingUrlTemplate?: string | undefined, travelCampaignSettings?: GoogleAdsSearchads360V23ResourcesCampaignTravelCampaignSettings | undefined, urlCustomParameters?: Array | undefined, vanityPharma?: GoogleAdsSearchads360V23ResourcesCampaignVanityPharma | undefined, videoBrandSafetySuitability?: ('UNSPECIFIED' | 'UNKNOWN' | 'EXPANDED_INVENTORY' | 'STANDARD_INVENTORY' | 'LIMITED_INVENTORY') | undefined}; export type GoogleAdsSearchads360V23ServicesCampaignOperation = {create?: GoogleAdsSearchads360V23ResourcesCampaign | undefined, remove?: string | undefined, update?: GoogleAdsSearchads360V23ResourcesCampaign | undefined, updateMask?: unknown | undefined}; export type GoogleAdsSearchads360V23ServicesMutateCampaignsRequest = {operations?: Array | undefined, partialFailure?: boolean | undefined, responseContentType?: ('UNSPECIFIED' | 'RESOURCE_NAME_ONLY' | 'MUTABLE_RESOURCE') | undefined, validateOnly?: boolean | undefined}; export type CreateApiV23CustomersCustomersIdCampaignsMutateArgs = {customersId: string, body: GoogleAdsSearchads360V23ServicesMutateCampaignsRequest}; export type CreateApiV23CustomersCustomersIdCampaignsMutateOptions = {baseUrl?: string | undefined, Oauth2?: string | undefined, Oauth2c?: string | undefined, fetch?: typeof fetch | undefined}; export const googleRpcStatus = z.object({code: z.number().int().optional(), details: z.array(z.record(z.string(), z.unknown())).optional(), message: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignAiMaxSetting = z.object({bundlingRequired: z.enum(["UNSPECIFIED", "UNKNOWN", "NOT_REQUIRED", "REQUIRED"]).optional(), enableAiMax: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignAppCampaignSetting = z.object({appId: z.string().optional(), appStore: z.enum(["UNSPECIFIED", "UNKNOWN", "APPLE_APP_STORE", "GOOGLE_APP_STORE"]).optional(), biddingStrategyGoalType: z.enum(["UNSPECIFIED", "UNKNOWN", "OPTIMIZE_INSTALLS_TARGET_INSTALL_COST", "OPTIMIZE_IN_APP_CONVERSIONS_TARGET_INSTALL_COST", "OPTIMIZE_IN_APP_CONVERSIONS_TARGET_CONVERSION_COST", "OPTIMIZE_RETURN_ON_ADVERTISING_SPEND", "OPTIMIZE_PRE_REGISTRATION_CONVERSION_VOLUME", "OPTIMIZE_INSTALLS_WITHOUT_TARGET_INSTALL_COST", "OPTIMIZE_IN_APP_CONVERSIONS_WITHOUT_TARGET_CPA", "OPTIMIZE_TOTAL_VALUE_WITHOUT_TARGET_ROAS"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaignAssetAutomationSetting = z.object({assetAutomationStatus: z.enum(["UNSPECIFIED", "UNKNOWN", "OPTED_IN", "OPTED_OUT"]).optional(), assetAutomationType: z.enum(["UNSPECIFIED", "UNKNOWN", "TEXT_ASSET_AUTOMATION", "GENERATE_VERTICAL_YOUTUBE_VIDEOS", "GENERATE_SHORTER_YOUTUBE_VIDEOS", "GENERATE_LANDING_PAGE_PREVIEW", "GENERATE_LANDING_PAGE_TEXT", "GENERATE_ENHANCED_YOUTUBE_VIDEOS", "GENERATE_IMAGE_ENHANCEMENT", "GENERATE_IMAGE_EXTRACTION", "GENERATE_DESIGN_VERSIONS_FOR_IMAGES", "FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION", "GENERATE_VIDEOS_FROM_OTHER_ASSETS"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaignAudienceSetting = z.object({useAudienceGrouped: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignBrandGuidelines = z.object({accentColor: z.string().optional(), mainColor: z.string().optional(), predefinedFontFamily: z.string().optional()}); export const googleAdsSearchads360V23CommonCommission = z.object({commissionRateMicros: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignDemandGenCampaignSettings = z.object({upgradedTargeting: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignDynamicSearchAdsSetting = z.object({domainName: z.string().optional(), languageCode: z.string().optional(), useSuppliedUrlsOnly: z.boolean().optional()}); export const googleAdsSearchads360V23CommonFrequencyCapKey = z.object({eventType: z.enum(["UNSPECIFIED", "UNKNOWN", "IMPRESSION", "VIDEO_VIEW"]).optional(), level: z.enum(["UNSPECIFIED", "UNKNOWN", "AD_GROUP_AD", "AD_GROUP", "CAMPAIGN"]).optional(), timeLength: z.number().int().optional(), timeUnit: z.enum(["UNSPECIFIED", "UNKNOWN", "DAY", "WEEK", "MONTH"]).optional()}); export const googleAdsSearchads360V23CommonFrequencyCapEntry = z.object({cap: z.number().int().optional(), key: googleAdsSearchads360V23CommonFrequencyCapKey.optional()}); export const googleAdsSearchads360V23ResourcesCampaignGeoTargetTypeSetting = z.object({negativeGeoTargetType: z.enum(["UNSPECIFIED", "UNKNOWN", "PRESENCE_OR_INTEREST", "PRESENCE"]).optional(), positiveGeoTargetType: z.enum(["UNSPECIFIED", "UNKNOWN", "PRESENCE_OR_INTEREST", "SEARCH_INTEREST", "PRESENCE"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaignHotelSettingInfo = z.object({hotelCenterId: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignLocalCampaignSetting = z.object({locationSourceType: z.enum(["UNSPECIFIED", "UNKNOWN", "GOOGLE_MY_BUSINESS", "AFFILIATE"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaignCategoryBid = z.object({categoryId: z.string().optional(), manualCpaBidMicros: z.string().optional(), targetCpaBidMicros: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignLocalServicesCampaignSettings = z.object({categoryBids: z.array(googleAdsSearchads360V23ResourcesCampaignCategoryBid).optional()}); export const googleAdsSearchads360V23CommonManualCpa = z.object({}); export const googleAdsSearchads360V23CommonManualCpc = z.object({enhancedCpcEnabled: z.boolean().optional()}); export const googleAdsSearchads360V23CommonManualCpm = z.object({}); export const googleAdsSearchads360V23CommonManualCpv = z.object({}); export const googleAdsSearchads360V23CommonMaximizeConversionValue = z.object({cpcBidCeilingMicros: z.string().optional(), cpcBidFloorMicros: z.string().optional(), targetRoas: z.number().optional(), targetRoasTolerancePercentMillis: z.string().optional()}); export const googleAdsSearchads360V23CommonMaximizeConversions = z.object({cpcBidCeilingMicros: z.string().optional(), cpcBidFloorMicros: z.string().optional(), targetCpaMicros: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignNetworkSettings = z.object({targetContentNetwork: z.boolean().optional(), targetGoogleSearch: z.boolean().optional(), targetGoogleTvNetwork: z.boolean().optional(), targetPartnerSearchNetwork: z.boolean().optional(), targetSearchNetwork: z.boolean().optional(), targetYoutube: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignOptimizationGoalSetting = z.object({optimizationGoalTypes: z.array(z.enum(["UNSPECIFIED", "UNKNOWN", "CALL_CLICKS", "DRIVING_DIRECTIONS", "APP_PRE_REGISTRATION"])).optional()}); export const googleAdsSearchads360V23CommonPercentCpc = z.object({cpcBidCeilingMicros: z.string().optional(), enhancedCpcEnabled: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignPerformanceMaxUpgrade = z.object({performanceMaxCampaign: z.string().optional(), preUpgradeCampaign: z.string().optional(), status: z.enum(["UNSPECIFIED", "UNKNOWN", "UPGRADE_IN_PROGRESS", "UPGRADE_COMPLETE", "UPGRADE_FAILED", "UPGRADE_ELIGIBLE"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettingsBrandTargetingOverrides = z.object({ignoreExclusionsForShoppingAds: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettings = z.object({brandTargetingOverrides: googleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettingsBrandTargetingOverrides.optional()}); export const googleAdsSearchads360V23CommonRealTimeBiddingSetting = z.object({optIn: z.boolean().optional()}); export const googleAdsSearchads360V23ResourcesCampaignSelectiveOptimization = z.object({conversionActions: z.array(z.string()).optional()}); export const googleAdsSearchads360V23ResourcesCampaignShoppingSetting = z.object({advertisingPartnerIds: z.array(z.string()).optional(), campaignPriority: z.number().int().optional(), disableProductFeed: z.boolean().optional(), enableLocal: z.boolean().optional(), feedLabel: z.string().optional(), merchantId: z.string().optional(), useVehicleInventory: z.boolean().optional()}); export const googleAdsSearchads360V23CommonTargetCpa = z.object({cpcBidCeilingMicros: z.string().optional(), cpcBidFloorMicros: z.string().optional(), targetCpaMicros: z.string().optional()}); export const googleAdsSearchads360V23CommonTargetCpc = z.object({targetCpcMicros: z.string().optional()}); export const googleAdsSearchads360V23CommonTargetCpm = z.object({}); export const googleAdsSearchads360V23CommonTargetImpressionShare = z.object({cpcBidCeilingMicros: z.string().optional(), location: z.enum(["UNSPECIFIED", "UNKNOWN", "ANYWHERE_ON_PAGE", "TOP_OF_PAGE", "ABSOLUTE_TOP_OF_PAGE"]).optional(), locationFractionMicros: z.string().optional()}); export const googleAdsSearchads360V23CommonTargetRoas = z.object({cpcBidCeilingMicros: z.string().optional(), cpcBidFloorMicros: z.string().optional(), targetRoas: z.number().optional(), targetRoasTolerancePercentMillis: z.string().optional()}); export const googleAdsSearchads360V23CommonTargetSpend = z.object({cpcBidCeilingMicros: z.string().optional(), targetSpendMicros: z.string().optional()}); export const googleAdsSearchads360V23CommonTargetRestriction = z.object({bidOnly: z.boolean().optional(), targetingDimension: z.enum(["UNSPECIFIED", "UNKNOWN", "KEYWORD", "AUDIENCE", "TOPIC", "GENDER", "AGE_RANGE", "PLACEMENT", "PARENTAL_STATUS", "INCOME_RANGE"]).optional()}); export const googleAdsSearchads360V23CommonTargetRestrictionOperation = z.object({operator: z.enum(["UNSPECIFIED", "UNKNOWN", "ADD", "REMOVE"]).optional(), value: googleAdsSearchads360V23CommonTargetRestriction.optional()}); export const googleAdsSearchads360V23CommonTargetingSetting = z.object({targetRestrictionOperations: z.array(googleAdsSearchads360V23CommonTargetRestrictionOperation).optional(), targetRestrictions: z.array(googleAdsSearchads360V23CommonTargetRestriction).optional()}); export const googleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData = z.object({clientId: z.string().optional(), thirdPartyPlacementId: z.string().optional()}); export const googleAdsSearchads360V23CommonCampaignThirdPartyBrandLiftIntegrationPartner = z.object({brandLiftIntegrationPartner: z.enum(["UNSPECIFIED", "UNKNOWN", "KANTAR_MILLWARD_BROWN", "DYNATA", "INTAGE", "MACROMILL"]).optional(), brandLiftIntegrationPartnerData: googleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData.optional(), shareCost: z.boolean().optional()}); export const googleAdsSearchads360V23CommonCampaignThirdPartyBrandSafetyIntegrationPartner = z.object({brandSafetyIntegrationPartner: z.enum(["UNSPECIFIED", "UNKNOWN", "DOUBLE_VERIFY", "INTEGRAL_AD_SCIENCE", "ZEFR"]).optional(), brandSafetyIntegrationPartnerData: googleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData.optional()}); export const googleAdsSearchads360V23CommonCampaignThirdPartyReachIntegrationPartner = z.object({reachIntegrationPartner: z.enum(["UNSPECIFIED", "UNKNOWN", "NIELSEN", "COMSCORE", "KANTAR_MILLWARD_BROWN", "VIDEO_RESEARCH", "GEMIUS", "MEDIA_SCOPE", "AUDIENCE_PROJECT", "VIDEO_AMP", "ISPOT_TV"]).optional(), reachIntegrationPartnerData: googleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData.optional(), shareCost: z.boolean().optional()}); export const googleAdsSearchads360V23CommonCampaignThirdPartyViewabilityIntegrationPartner = z.object({shareCost: z.boolean().optional(), viewabilityIntegrationPartner: z.enum(["UNSPECIFIED", "UNKNOWN", "DOUBLE_VERIFY", "INTEGRAL_AD_SCIENCE"]).optional(), viewabilityIntegrationPartnerData: googleAdsSearchads360V23CommonThirdPartyIntegrationPartnerData.optional()}); export const googleAdsSearchads360V23CommonCampaignThirdPartyIntegrationPartners = z.object({brandLiftIntegrationPartners: z.array(googleAdsSearchads360V23CommonCampaignThirdPartyBrandLiftIntegrationPartner).optional(), brandSafetyIntegrationPartners: z.array(googleAdsSearchads360V23CommonCampaignThirdPartyBrandSafetyIntegrationPartner).optional(), reachIntegrationPartners: z.array(googleAdsSearchads360V23CommonCampaignThirdPartyReachIntegrationPartner).optional(), viewabilityIntegrationPartners: z.array(googleAdsSearchads360V23CommonCampaignThirdPartyViewabilityIntegrationPartner).optional()}); export const googleAdsSearchads360V23ResourcesCampaignTrackingSetting = z.object({trackingUrl: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignTravelCampaignSettings = z.object({travelAccountId: z.string().optional()}); export const googleAdsSearchads360V23CommonCustomParameter = z.object({key: z.string().optional(), value: z.string().optional()}); export const googleAdsSearchads360V23ResourcesCampaignVanityPharma = z.object({vanityPharmaDisplayUrlMode: z.enum(["UNSPECIFIED", "UNKNOWN", "MANUFACTURER_WEBSITE_URL", "WEBSITE_DESCRIPTION"]).optional(), vanityPharmaText: z.enum(["UNSPECIFIED", "UNKNOWN", "PRESCRIPTION_TREATMENT_WEBSITE_EN", "PRESCRIPTION_TREATMENT_WEBSITE_ES", "PRESCRIPTION_DEVICE_WEBSITE_EN", "PRESCRIPTION_DEVICE_WEBSITE_ES", "MEDICAL_DEVICE_WEBSITE_EN", "MEDICAL_DEVICE_WEBSITE_ES", "PREVENTATIVE_TREATMENT_WEBSITE_EN", "PREVENTATIVE_TREATMENT_WEBSITE_ES", "PRESCRIPTION_CONTRACEPTION_WEBSITE_EN", "PRESCRIPTION_CONTRACEPTION_WEBSITE_ES", "PRESCRIPTION_VACCINE_WEBSITE_EN", "PRESCRIPTION_VACCINE_WEBSITE_ES"]).optional()}); export const googleAdsSearchads360V23ResourcesCampaign = z.object({accessibleBiddingStrategy: z.string().optional(), adServingOptimizationStatus: z.enum(["UNSPECIFIED", "UNKNOWN", "OPTIMIZE", "CONVERSION_OPTIMIZE", "ROTATE", "ROTATE_INDEFINITELY", "UNAVAILABLE"]).optional(), advertisingChannelSubType: z.enum(["UNSPECIFIED", "UNKNOWN", "SEARCH_MOBILE_APP", "DISPLAY_MOBILE_APP", "SEARCH_EXPRESS", "DISPLAY_EXPRESS", "SHOPPING_SMART_ADS", "DISPLAY_GMAIL_AD", "DISPLAY_SMART_CAMPAIGN", "VIDEO_ACTION", "VIDEO_NON_SKIPPABLE", "APP_CAMPAIGN", "APP_CAMPAIGN_FOR_ENGAGEMENT", "LOCAL_CAMPAIGN", "SHOPPING_COMPARISON_LISTING_ADS", "SMART_CAMPAIGN", "VIDEO_SEQUENCE", "APP_CAMPAIGN_FOR_PRE_REGISTRATION", "VIDEO_REACH_TARGET_FREQUENCY", "TRAVEL_ACTIVITIES", "SOCIAL_FACEBOOK_TRACKING_ONLY"]).optional(), advertisingChannelType: z.enum(["UNSPECIFIED", "UNKNOWN", "SEARCH", "DISPLAY", "SHOPPING", "HOTEL", "VIDEO", "MULTI_CHANNEL", "LOCAL", "SMART", "PERFORMANCE_MAX", "LOCAL_SERVICES", "TRAVEL", "DEMAND_GEN", "SOCIAL"]).optional(), aiMaxSetting: googleAdsSearchads360V23ResourcesCampaignAiMaxSetting.optional(), appCampaignSetting: googleAdsSearchads360V23ResourcesCampaignAppCampaignSetting.optional(), assetAutomationSettings: z.array(googleAdsSearchads360V23ResourcesCampaignAssetAutomationSetting).optional(), audienceSetting: googleAdsSearchads360V23ResourcesCampaignAudienceSetting.optional(), baseCampaign: z.string().optional(), biddingStrategy: z.string().optional(), biddingStrategySystemStatus: z.enum(["UNSPECIFIED", "UNKNOWN", "ENABLED", "LEARNING_NEW", "LEARNING_SETTING_CHANGE", "LEARNING_BUDGET_CHANGE", "LEARNING_COMPOSITION_CHANGE", "LEARNING_CONVERSION_TYPE_CHANGE", "LEARNING_CONVERSION_SETTING_CHANGE", "LIMITED_BY_CPC_BID_CEILING", "LIMITED_BY_CPC_BID_FLOOR", "LIMITED_BY_DATA", "LIMITED_BY_BUDGET", "LIMITED_BY_LOW_PRIORITY_SPEND", "LIMITED_BY_LOW_QUALITY", "LIMITED_BY_INVENTORY", "MISCONFIGURED_ZERO_ELIGIBILITY", "MISCONFIGURED_CONVERSION_TYPES", "MISCONFIGURED_CONVERSION_SETTINGS", "MISCONFIGURED_SHARED_BUDGET", "MISCONFIGURED_STRATEGY_TYPE", "PAUSED", "UNAVAILABLE", "MULTIPLE_LEARNING", "MULTIPLE_LIMITED", "MULTIPLE_MISCONFIGURED", "MULTIPLE"]).optional(), biddingStrategyType: z.enum(["UNSPECIFIED", "UNKNOWN", "COMMISSION", "ENHANCED_CPC", "INVALID", "MANUAL_CPA", "MANUAL_CPC", "MANUAL_CPM", "MANUAL_CPV", "MAXIMIZE_CONVERSIONS", "MAXIMIZE_CONVERSION_VALUE", "PAGE_ONE_PROMOTED", "PERCENT_CPC", "TARGET_CPA", "TARGET_CPC", "TARGET_CPM", "TARGET_IMPRESSION_SHARE", "TARGET_OUTRANK_SHARE", "TARGET_ROAS", "TARGET_SPEND"]).optional(), brandGuidelines: googleAdsSearchads360V23ResourcesCampaignBrandGuidelines.optional(), brandGuidelinesEnabled: z.boolean().optional(), campaignBudget: z.string().optional(), campaignGroup: z.string().optional(), commission: googleAdsSearchads360V23CommonCommission.optional(), containsEuPoliticalAdvertising: z.enum(["UNSPECIFIED", "UNKNOWN", "CONTAINS_EU_POLITICAL_ADVERTISING", "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING"]).optional(), demandGenCampaignSettings: googleAdsSearchads360V23ResourcesCampaignDemandGenCampaignSettings.optional(), dynamicSearchAdsSetting: googleAdsSearchads360V23ResourcesCampaignDynamicSearchAdsSetting.optional(), effectiveLabels: z.array(z.string()).optional(), endDateTime: z.string().optional(), engineId: z.string().optional(), excludedParentAssetFieldTypes: z.array(z.enum(["UNSPECIFIED", "UNKNOWN", "HEADLINE", "DESCRIPTION", "MANDATORY_AD_TEXT", "MARKETING_IMAGE", "MEDIA_BUNDLE", "YOUTUBE_VIDEO", "BOOK_ON_GOOGLE", "LEAD_FORM", "PROMOTION", "CALLOUT", "STRUCTURED_SNIPPET", "SITELINK", "MOBILE_APP", "HOTEL_CALLOUT", "CALL", "PRICE", "LONG_HEADLINE", "BUSINESS_NAME", "SQUARE_MARKETING_IMAGE", "PORTRAIT_MARKETING_IMAGE", "LOGO", "LANDSCAPE_LOGO", "VIDEO", "CALL_TO_ACTION_SELECTION", "AD_IMAGE", "BUSINESS_LOGO", "HOTEL_PROPERTY", "DEMAND_GEN_CAROUSEL_CARD", "BUSINESS_MESSAGE", "TALL_PORTRAIT_MARKETING_IMAGE", "LANDING_PAGE_PREVIEW", "LONG_DESCRIPTION", "CALL_TO_ACTION"])).optional(), excludedParentAssetSetTypes: z.array(z.enum(["UNSPECIFIED", "UNKNOWN", "PAGE_FEED", "DYNAMIC_EDUCATION", "MERCHANT_CENTER_FEED", "DYNAMIC_REAL_ESTATE", "DYNAMIC_CUSTOM", "DYNAMIC_HOTELS_AND_RENTALS", "DYNAMIC_FLIGHTS", "DYNAMIC_TRAVEL", "DYNAMIC_LOCAL", "DYNAMIC_JOBS", "LOCATION_SYNC", "BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP", "CHAIN_DYNAMIC_LOCATION_GROUP", "STATIC_LOCATION_GROUP", "HOTEL_PROPERTY", "TRAVEL_FEED"])).optional(), experimentType: z.enum(["UNSPECIFIED", "UNKNOWN", "BASE", "DRAFT", "EXPERIMENT"]).optional(), feedTypes: z.array(z.enum(["UNSPECIFIED", "UNKNOWN", "PAGE_FEED", "DYNAMIC_EDUCATION", "MERCHANT_CENTER_FEED", "DYNAMIC_REAL_ESTATE", "DYNAMIC_CUSTOM", "DYNAMIC_HOTELS_AND_RENTALS", "DYNAMIC_FLIGHTS", "DYNAMIC_TRAVEL", "DYNAMIC_LOCAL", "DYNAMIC_JOBS", "LOCATION_SYNC", "BUSINESS_PROFILE_DYNAMIC_LOCATION_GROUP", "CHAIN_DYNAMIC_LOCATION_GROUP", "STATIC_LOCATION_GROUP", "HOTEL_PROPERTY", "TRAVEL_FEED"])).optional(), finalUrlSuffix: z.string().optional(), frequencyCaps: z.array(googleAdsSearchads360V23CommonFrequencyCapEntry).optional(), geoTargetTypeSetting: googleAdsSearchads360V23ResourcesCampaignGeoTargetTypeSetting.optional(), hotelPropertyAssetSet: z.string().optional(), hotelSetting: googleAdsSearchads360V23ResourcesCampaignHotelSettingInfo.optional(), id: z.string().optional(), keywordMatchType: z.enum(["UNSPECIFIED", "UNKNOWN", "BROAD"]).optional(), labels: z.array(z.string()).optional(), lastModifiedTime: z.string().optional(), listingType: z.enum(["UNSPECIFIED", "UNKNOWN", "VEHICLES"]).optional(), localCampaignSetting: googleAdsSearchads360V23ResourcesCampaignLocalCampaignSetting.optional(), localServicesCampaignSettings: googleAdsSearchads360V23ResourcesCampaignLocalServicesCampaignSettings.optional(), manualCpa: googleAdsSearchads360V23CommonManualCpa.optional(), manualCpc: googleAdsSearchads360V23CommonManualCpc.optional(), manualCpm: googleAdsSearchads360V23CommonManualCpm.optional(), manualCpv: googleAdsSearchads360V23CommonManualCpv.optional(), maximizeConversionValue: googleAdsSearchads360V23CommonMaximizeConversionValue.optional(), maximizeConversions: googleAdsSearchads360V23CommonMaximizeConversions.optional(), missingEuPoliticalAdvertisingDeclaration: z.boolean().optional(), name: z.string().optional(), networkSettings: googleAdsSearchads360V23ResourcesCampaignNetworkSettings.optional(), optimizationGoalSetting: googleAdsSearchads360V23ResourcesCampaignOptimizationGoalSetting.optional(), optimizationScore: z.number().optional(), paymentMode: z.enum(["UNSPECIFIED", "UNKNOWN", "CLICKS", "CONVERSION_VALUE", "CONVERSIONS", "GUEST_STAY"]).optional(), percentCpc: googleAdsSearchads360V23CommonPercentCpc.optional(), performanceMaxUpgrade: googleAdsSearchads360V23ResourcesCampaignPerformanceMaxUpgrade.optional(), pmaxCampaignSettings: googleAdsSearchads360V23ResourcesCampaignPmaxCampaignSettings.optional(), primaryStatus: z.enum(["UNSPECIFIED", "UNKNOWN", "ELIGIBLE", "PAUSED", "REMOVED", "ENDED", "PENDING", "MISCONFIGURED", "LIMITED", "LEARNING", "NOT_ELIGIBLE"]).optional(), primaryStatusReasons: z.array(z.enum(["UNSPECIFIED", "UNKNOWN", "CAMPAIGN_REMOVED", "CAMPAIGN_PAUSED", "CAMPAIGN_PENDING", "CAMPAIGN_ENDED", "CAMPAIGN_DRAFT", "BIDDING_STRATEGY_MISCONFIGURED", "BIDDING_STRATEGY_LIMITED", "BIDDING_STRATEGY_LEARNING", "BIDDING_STRATEGY_CONSTRAINED", "BUDGET_CONSTRAINED", "BUDGET_MISCONFIGURED", "SEARCH_VOLUME_LIMITED", "AD_GROUPS_PAUSED", "NO_AD_GROUPS", "KEYWORDS_PAUSED", "NO_KEYWORDS", "AD_GROUP_ADS_PAUSED", "NO_AD_GROUP_ADS", "HAS_ADS_LIMITED_BY_POLICY", "HAS_ADS_DISAPPROVED", "MOST_ADS_UNDER_REVIEW", "MISSING_LEAD_FORM_EXTENSION", "MISSING_CALL_EXTENSION", "LEAD_FORM_EXTENSION_UNDER_REVIEW", "LEAD_FORM_EXTENSION_DISAPPROVED", "CALL_EXTENSION_UNDER_REVIEW", "CALL_EXTENSION_DISAPPROVED", "NO_MOBILE_APPLICATION_AD_GROUP_CRITERIA", "CAMPAIGN_GROUP_PAUSED", "CAMPAIGN_GROUP_ALL_GROUP_BUDGETS_ENDED", "APP_NOT_RELEASED", "APP_PARTIALLY_RELEASED", "HAS_ASSET_GROUPS_DISAPPROVED", "HAS_ASSET_GROUPS_LIMITED_BY_POLICY", "MOST_ASSET_GROUPS_UNDER_REVIEW", "NO_ASSET_GROUPS", "ASSET_GROUPS_PAUSED", "MISSING_LOCATION_TARGETING"])).optional(), realTimeBiddingSetting: googleAdsSearchads360V23CommonRealTimeBiddingSetting.optional(), resourceName: z.string().optional(), selectiveOptimization: googleAdsSearchads360V23ResourcesCampaignSelectiveOptimization.optional(), selectiveOptimizationMode: z.enum(["UNSPECIFIED", "UNKNOWN", "UNCONSTRAINED", "MATCHES_SEARCH_ADS360_EFFECTIVE_CAMPAIGN_LEVEL_CONFIG"]).optional(), servingStatus: z.enum(["UNSPECIFIED", "UNKNOWN", "SERVING", "NONE", "ENDED", "PENDING", "SUSPENDED"]).optional(), shoppingSetting: googleAdsSearchads360V23ResourcesCampaignShoppingSetting.optional(), startDateTime: z.string().optional(), status: z.enum(["UNSPECIFIED", "UNKNOWN", "ENABLED", "PAUSED", "REMOVED"]).optional(), targetCpa: googleAdsSearchads360V23CommonTargetCpa.optional(), targetCpc: googleAdsSearchads360V23CommonTargetCpc.optional(), targetCpm: googleAdsSearchads360V23CommonTargetCpm.optional(), targetImpressionShare: googleAdsSearchads360V23CommonTargetImpressionShare.optional(), targetRoas: googleAdsSearchads360V23CommonTargetRoas.optional(), targetSpend: googleAdsSearchads360V23CommonTargetSpend.optional(), targetingSetting: googleAdsSearchads360V23CommonTargetingSetting.optional(), thirdPartyIntegrationPartners: googleAdsSearchads360V23CommonCampaignThirdPartyIntegrationPartners.optional(), trackingSetting: googleAdsSearchads360V23ResourcesCampaignTrackingSetting.optional(), trackingUrlTemplate: z.string().optional(), travelCampaignSettings: googleAdsSearchads360V23ResourcesCampaignTravelCampaignSettings.optional(), urlCustomParameters: z.array(googleAdsSearchads360V23CommonCustomParameter).optional(), vanityPharma: googleAdsSearchads360V23ResourcesCampaignVanityPharma.optional(), videoBrandSafetySuitability: z.enum(["UNSPECIFIED", "UNKNOWN", "EXPANDED_INVENTORY", "STANDARD_INVENTORY", "LIMITED_INVENTORY"]).optional()}); export const googleAdsSearchads360V23ServicesMutateCampaignResult = z.object({campaign: googleAdsSearchads360V23ResourcesCampaign.optional(), resourceName: z.string().optional()}); export const googleAdsSearchads360V23ServicesMutateCampaignsResponse = z.object({partialFailureError: googleRpcStatus.optional(), results: z.array(googleAdsSearchads360V23ServicesMutateCampaignResult).optional()}); export const validateResponse = async ( schema: { readonly '~standard': { readonly validate: (value: unknown) => ({ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }) | Promise<{ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }> } }, value: unknown ): Promise => { const result = await schema['~standard'].validate(value) if (result.issues !== undefined) { const detail = result.issues .map(({ message, path }) => path?.length ? `${path.map((segment) => String(typeof segment === 'object' ? segment.key : segment)).join('.')}: ${message}` : message ) .join('; ') throw new Error(`Response does not match the schema: ${detail}`, { cause: { issues: result.issues } }) } return result.value }; /** * Creates, updates, or removes campaigns. Operation statuses are returned. List of thrown errors: [AdxError]() [AuthenticationError]() [AuthorizationError]() [BiddingError]() [BiddingStrategyError]() [CampaignBudgetError]() [CampaignError]() [ContextError]() [DatabaseError]() [DateError]() [DateRangeError]() [DistinctError]() [FieldError]() [FieldMaskError]() [HeaderError]() [IdError]() [InternalError]() [ListOperationError]() [MutateError]() [NewResourceCreationError]() [NotAllowlistedError]() [NotEmptyError]() [NullError]() [OperationAccessDeniedError]() [OperatorError]() [QuotaError]() [RangeError]() [RegionCodeError]() [RequestError]() [ResourceCountLimitExceededError]() [SettingError]() [SizeLimitError]() [StringFormatError]() [StringLengthError]() [UrlFieldError]() * * POST /v23/customers/{customersId}/campaigns:mutate */ export const createApiV23CustomersCustomersIdCampaignsMutate = async (args: CreateApiV23CustomersCustomersIdCampaignsMutateArgs, options?: CreateApiV23CustomersCustomersIdCampaignsMutateOptions) => { const {baseUrl = "https://searchads360.googleapis.com", fetch: fetchFn = fetch, Oauth2, Oauth2c} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/json") if (Oauth2 !== undefined) headers.set('authorization', `Bearer ${Oauth2}`) if (Oauth2c !== undefined) headers.set('authorization', `Bearer ${Oauth2c}`) const url = `${baseUrl.replace(/\/+$/, '')}/v23/customers/${encodeURIComponent(String(args.customersId))}/campaigns:mutate${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return validateResponse(googleAdsSearchads360V23ServicesMutateCampaignsResponse, await res.json()) };