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

Performance Max to Require Brand Guidelines for New Campaigns Starting January 2025

Performance Max to Require Brand Guidelines for New Campaigns Starting January 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 Releases Detailed Support Guide for Performance Max Negative Keywords

Google Releases Detailed Support Guide for Performance Max Negative Keywords

Tired of spending too much time creating audits for your clients?

Tired of spending too much time creating audits for your clients?

Featured
Google Updates Platform Programme Policies for 2025

Google Updates Platform Programme Policies for 2025

Google
Google

Official Source

Official Source

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

Official Source
Microsoft Clarity Announces Integration with Google Ads

Microsoft Clarity Announces Integration with Google Ads

Josh Silverbauer
Josh Silverbauer

Top Creator

Top Analytics Creator

Josh Silverbauer is a Top Analytics Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Analytics Creator
Google Ads introduces silent Opt-in for Video Enhancements in Demand Gen campaigns

Google Ads introduces silent Opt-in for Video Enhancements in Demand Gen campaigns

Thomas Eccel
Thomas Eccel

Top Creator

Top Google Ads Creator

Thomas Eccel is a Top Google Ads Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Google Ads Creator
Google Unveils 4 Smart Shopping Features for Last-Minute Holiday Buyers

Google Unveils 4 Smart Shopping Features for Last-Minute Holiday Buyers

Google
Google

Official Source

Official Source

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

Official Source
Google Ads updates Personalized Advertising Policy for clarity and organization

Google Ads updates Personalized Advertising Policy for clarity and organization

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
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
Whatagraph logo

Whatagraph

Effortlessly consolidate and report marketing data

Reporting

Get Featured Here

Showcase your tool in this list.

Contact Us