--- v24/services/smart_campaign_setting_service.proto 2026-09-23 01:11:58.000000000 +0000 +++ v25/services/smart_campaign_setting_service.proto 2026-09-23 01:12:01.000000000 +0000 @@ -56,11 +56,24 @@ rpc MutateSmartCampaignSettings(MutateSmartCampaignSettingsRequest) returns (MutateSmartCampaignSettingsResponse) { option (google.api.http) = { - post: "/v24/customers/{customer_id=*}/smartCampaignSettings:mutate" + post: "/v25/customers/{customer_id=*}/smartCampaignSettings:mutate" body: "*" }; option (google.api.method_signature) = "customer_id,operations"; } + + // Generates a Performance Max (PMax) draft campaign from an existing Smart + // campaign, initialized with a status of [CampaignStatus.PAUSED] and a + // creation status of [CampaignCreationStatus.INCOMPLETE]. Returns the draft + // PMax campaign ID and related entity IDs. + rpc GeneratePMaxDraftCampaign(GeneratePMaxDraftCampaignRequest) + returns (GeneratePMaxDraftCampaignResponse) { + option (google.api.http) = { + post: "/v25/{resource_name=customers/*/smartCampaignSettings/*}:generatePMaxDraftCampaign" + body: "*" + }; + option (google.api.method_signature) = "resource_name"; + } } // Request message for @@ -207,6 +220,50 @@ // The mutated Smart campaign setting with only mutable fields after mutate. // The field will only be returned when response_content_type is set to // "MUTABLE_RESOURCE". - google.ads.googleads.v24.resources.SmartCampaignSetting + google.ads.googleads.v25.resources.SmartCampaignSetting smart_campaign_setting = 2; } + +// Request message for +// [SmartCampaignSettingService.GeneratePMaxDraftCampaign][google.ads.googleads.v25.services.SmartCampaignSettingService.GeneratePMaxDraftCampaign]. +message GeneratePMaxDraftCampaignRequest { + // Required. The resource name of the Smart campaign setting to regenerate. + string resource_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "googleads.googleapis.com/SmartCampaignSetting" + } + ]; + + // Optional. If true, the request will be validated but not executed. Only + // validation errors/warnings will be returned. + bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to enable to convert GBP (Google Business Profile) + // location linked with the PMax campaign. + bool gbp_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to generate PMax campaign required images, like + // Horizontal, Square, logo types. + bool image_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [SmartCampaignSettingService.GeneratePMaxDraftCampaign][google.ads.googleads.v25.services.SmartCampaignSettingService.GeneratePMaxDraftCampaign]. +message GeneratePMaxDraftCampaignResponse { + // The Campaign resource name of the generated draft PMax campaign. + string pmax_campaign = 1; + + // The CampaignBudget resource name linking with the PMax campaign. + string campaign_budget = 2; + + // The AssetGroup resource name linking with the PMax campaign. + string asset_group = 3; + + // The resource names of all assets linking with the PMax campaign. + repeated string assets = 4; + + // Validation info or possible convert issues returned when validate_only is + // true. + string validated_info = 5; +}
/services/smart_campaign_setting_service.proto
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-09-24。