Starting in the v25_2 release, the Google Ads API introduces the
SmartCampaignSettingService.GeneratePMaxDraftCampaign method to help you
convert a Smart campaign to a Performance Max campaign.
How conversion works
When you call SmartCampaignSettingService.GeneratePMaxDraftCampaign, the
API generates a draft Performance Max campaign based on the configuration of an
existing Smart campaign.
The generated Performance Max draft campaign is initialized with the following status values:
statusis set toPAUSED.creation_statusis set toINCOMPLETE.
This lets you inspect, modify, and enhance the generated Performance Max campaign, budget, asset group, and assets before you enable the campaign to serve ads.
Request parameters
The GeneratePMaxDraftCampaignRequest message accepts the following
fields:
resource_name(Required): The resource name of theSmartCampaignSettingassociated with the existing Smart campaign you want to convert, in the following format:customers/customer_id/smartCampaignSettings/campaign_idvalidate_only(Optional): Iftrue, the request is validated but not executed. Only validation errors, warnings, or possible conversion issues are returned in the response'svalidated_infofield.gbp_enabled(Not currently supported): Whether to convert and link the Google Business Profile (GBP) location associated with the Smart campaign to the generated Performance Max campaign. Setting this field totrueis not currently implemented and will return aGBP_ENABLED_GENERATE_PMAX_NOT_SUPPORTEDerror.image_enabled(Not currently supported): Whether to automatically generate required images for the Performance Max campaign (such as horizontal, square, and logo image assets). Setting this field totrueis not currently implemented and will return anIMAGE_ENABLED_GENERATE_PMAX_NOT_SUPPORTEDerror.
Response details
The GeneratePMaxDraftCampaignResponse message returns the resource names
of the newly generated Performance Max draft campaign and its associated
entities:
pmax_campaign: TheCampaignresource name of the generated draft Performance Max campaign.campaign_budget: TheCampaignBudgetresource name linked to the generated Performance Max campaign.asset_group: TheAssetGroupresource name linked to the generated Performance Max campaign.assets: A list ofAssetresource names linked to the generated Performance Max campaign.validated_info: Additional validation information or possible conversion issues returned whenvalidate_onlyis set totrue.
Recommended workflow
To convert a Smart campaign, use the following workflow:
- Generate the draft campaign: Call
SmartCampaignSettingService.GeneratePMaxDraftCampaignwith only the requiredresource_nameset (leavegbp_enabledandimage_enabledunset or set tofalse). Save the returnedpmax_campaign,campaign_budget,asset_group, andassetsresource names. - Review and customize the campaign: Because the draft Performance Max
campaign is created with
status = PAUSEDandcreation_status = INCOMPLETE, inspect and configure its budget, asset group, and assets. - Enable the campaign: When you are ready to serve ads, update the
campaign's
statustoENABLEDandcreation_statustoCOMPLETE.