This guide covers optimization tips to help you get the most out of your
Performance Max campaigns.

## Campaign optimization

We recommend enabling all asset automation settings to maximize the
performance of your Performance Max campaigns. For details on how to manage
these settings, see the [asset automation settings guide](https://developers.google.com/google-ads/api/docs/assets/asset-automation-settings).

For the different business objectives that can be achieved through Performance
Max campaigns, check out our [optimization tips for Performance Max](https://support.google.com/google-ads/answer/11385582). These
tips are equally applicable to Performance Max campaigns created by the Google Ads API.

## Asset group optimization

To optimize your asset groups, review their Ad Strength and Asset Coverage
report. You can access this report using the [`asset_coverage`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetCoverage) field on the
[`AssetGroup`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetGroup) resource which contains recommended
[`ad_strength_action_items`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdStrengthActionItemTypeEnum.AdStrengthActionItemType) to improve the [`ad_strength`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdStrengthEnum.AdStrength).

    SELECT
      asset_group.ad_strength,
      asset_group.asset_coverage
    FROM asset_group
    WHERE asset_group.resource_name = "customers/CUSTOMER_ID/assetGroups/ASSET_GROUP_ID"

> [!NOTE]
> **Note:** If an [`AdStrengthActionItem`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdStrengthActionItem) recommends adding a video (using [`AddAssetDetails`](https://developers.google.com/google-ads/api/reference/rpc/v26/AdStrengthActionItem.AddAssetDetails) with type `VIDEO`), check the [`AssetCoverageVideoAspectRatioRequirement`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetCoverageVideoAspectRatioRequirementEnum.AssetCoverageVideoAspectRatioRequirement) field within the `AddAssetDetails` resource. This field specifies the required aspect ratio for the new video asset. If `AssetCoverageVideoAspectRatioRequirement` is not set for that action item, you can link any existing YouTube video asset regardless of its aspect ratio.

## Final URL expansion

[URL expansion](https://support.google.com/google-ads/answer/14337539) helps you optimize the performance of your Performance Max
campaigns. Use URL expansion to replace your final URL with a more relevant
landing page and dynamic headline based on customers' intent. By default, URL
expansion is turned on for all Performance Max campaigns.

You can opt in or out of final URL expansion using the
[`FINAL_URL_EXPANSION_TEXT_ASSET_AUTOMATION`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetAutomationTypeEnum.AssetAutomationType#final_url_expansion_text_asset_automation) asset automation type in the
campaign's [`asset_automation_settings`](https://developers.google.com/google-ads/api/reference/rpc/v26/Campaign#asset_automation_settings%5B%5D). See the [asset automation settings
guide](https://developers.google.com/google-ads/api/docs/assets/asset-automation-settings) for details.

If you enable final URL expansion, that also enables text customization.
Google will dynamically generate text assets (headlines and descriptions) to
match the content of the dynamically selected landing pages, and you cannot opt
out of text customization if final URL expansion is active.

Use `WEBPAGE` [campaign criteria](https://developers.google.com/google-ads/api/performance-max/create-campaign-criteria) to set URL expansion [exclusions](https://support.google.com/google-ads/answer/14337773).

To view any dynamically generated text assets that the final URL expansion
setting creates, use the [`final_url_expansion_asset_view`](https://developers.google.com/google-ads/api/fields/v26/final_url_expansion_asset_view). You can remove
a dynamically generated URL expansion asset using the
[`AutomaticallyCreatedAssetRemovalService`](https://developers.google.com/google-ads/api/reference/rpc/v26/AutomaticallyCreatedAssetRemovalService).

> [!NOTE]
> **Note:** The separate [`TEXT_ASSET_AUTOMATION`](https://developers.google.com/google-ads/api/reference/rpc/v26/AssetAutomationTypeEnum.AssetAutomationType#text_asset_automation) setting (text customization) allows Google to create customized text assets using your existing ads, landing page copy, and generative AI across your campaign's ads, even when final URL expansion does not occur.