How to Create Performance Max Campaigns via Google Ads Scripts

May 23, 2024 at 4:01:01 PM

TL;DR Google Ads published a new guide on creating Performance Max campaigns in Google Ads scripts. These guides focus on using the new mutate function, which lets you access most features from the Google Ads API. By following these guides, you can customize operations to automate tasks with scripts. Check out the mutate strategy section for general advice.

How to Create Performance Max Campaigns via Google Ads Scripts

Google Ads published new guides on creating Performance Max campaigns in Google Ads scripts using the mutate function. This function provides access to most features of the full Google Ads API, enabling the automation of various tasks. Performance Max campaigns unify all Google Ads channels and inventory, optimizing performance and reducing management complexity by dynamically allocating budgets to high-performing channels like Search, YouTube, Display, Discover, Gmail, and Maps.

How to create a Performance Max campaign using Google Ads scripts

To create a Performance Max campaign using Google Ads scripts, follow these steps:

  1. Create a Budget:

    const budgetOperation = {
      "campaignBudgetOperation": {
        "create": {
          "resourceName": `customers/${customerId}/campaignBudgets/${getNextTempId()}`,
          "name": "Performance Max campaign budget",
          "amountMicros": "50000000",
          "deliveryMethod": "STANDARD",
          "explicitlyShared": false
        }
      }
    };
    operations.push(budgetOperation);
    
  2. Create the Campaign:

    const campaignOperation = {
      "campaignOperation": {
        "create": {
          "resourceName": `customers/${customerId}/campaigns/${getNextTempId()}`,
          "name": "Performance Max campaign",
          "status": "PAUSED",
          "advertisingChannelType": "PERFORMANCE_MAX",
          "campaignBudget": budgetOperation.campaignBudgetOperation.create.resourceName,
          "biddingStrategyType": "MAXIMIZE_CONVERSION_VALUE",
          "startDate": "20240314",
          "endDate": "20250313",
          "urlExpansionOptOut": false,
          "maximizeConversionValue": {
            "targetRoas": 3.5
          }
        }
      }
    };
    operations.push(campaignOperation);
    
  3. Create an Asset Group:

    const assetGroupOperation = {
      "assetGroupOperation": {
        "create": {
          "resourceName": `customers/${customerId}/assetGroups/${getNextTempId()}`,
          "campaign": campaignOperation.campaignOperation.create.resourceName,
          "name": "Performance Max asset group",
          "finalUrls": [
            "http://www.example.com"
          ],
          "finalMobileUrls": [
            "http://www.example.com"
          ],
          "status": "PAUSED"
        }
      }
    };
    operations.push(assetGroupOperation);
    
  4. Link Assets to Asset Group:

    operations.push({
      "assetGroupAssetOperation": {
        "create": {
          "assetGroup": assetGroupOperation.assetGroupOperation.create.resourceName,
          "asset": assetResourceName,
          "fieldType": "HEADLINE"
        }
      }
    });
    
  5. Execute All Operations:

    AdsApp.mutateAll(operations);
    

These steps ensure that you create a Performance Max campaign with the necessary components and link them appropriately.

Read the full documentation here.

Q&A

Have more questions on this topic? Ask our AI assistant for in-depth insights.

Read more from sources 👇

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Automate Your Marketing Audits - Say Goodbye to Manual Checklists

Automate Your Marketing Audits - Say Goodbye to Manual Checklists

Featured
Google Introduces Consent Unbundling for OAuth in Ads APIs Starting May 2025

Google Introduces Consent Unbundling for OAuth in Ads APIs Starting May 2025

Google for Developers
Google for Developers

Official Source

Official Source

Google for Developers is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google enhances Responsive Search Ads with new dynamic asset flexibility features Trending ️‍🔥

Google enhances Responsive Search Ads with new dynamic asset flexibility features

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Ads Launches AI-Powered Creative Using Imagen 3 Model Trending ️‍🔥

Google Ads Launches AI-Powered Creative Using Imagen 3 Model

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Ads Launches Advanced Plans Feature for Enhanced Campaign Planning

Google Ads Launches Advanced Plans Feature for Enhanced Campaign Planning

Google Ads Enhances Performance Max with Search Theme Insights

Google Ads Enhances Performance Max with Search Theme Insights

Google Updates Cryptocurrency Advertising Policy for UAE Market

Google Updates Cryptocurrency Advertising Policy for UAE Market

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Google Releases Performance Max FAQ to Address Advertiser Concerns and Improve Clarity

Google Releases Performance Max FAQ to Address Advertiser Concerns and Improve Clarity

Google
Google

Official Source

Official Source

Google is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
TrafficGuard logo

TrafficGuard

Protecting ad spend from invalid traffic threats

Ad Management
Skai logo

Skai

AI-powered omnichannel marketing and optimization

Ad Management
Smartly.io logo

Smartly.io

Automate and optimize your ad campaigns effortlessly

Ad Management
Grasp logo

Grasp

Automated QA for flawless media buying campaigns

Ad Management
Zocket logo

Zocket

AI-powered marketing for optimized ad campaigns

Ad Creative
GoDataFeed logo

GoDataFeed

Optimize and manage product feeds across channels

Feed Management
Feedonomics logo

Feedonomics

Optimize and sync product data for more sales

Feed Management
Lunio logo

Lunio

Protect your ad spend from invalid traffic

Ad Management
Otis AI logo

Otis AI

AI-driven marketing for growing businesses

Ad Management

Get Featured Here

Showcase your tool in this list.

Contact Us