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 GA4 Audit - Say Goodbye to Manual Checks!

Automate Your GA4 Audit - Say Goodbye to Manual Checks!

Sponsored
GA4 Auditor
GA4 Auditor

Verified Sponsor

Verified Sponsor

GA4 Auditor is a Verified Sponsor. Want to get featured here? Contact us.

Verified Sponsor
Google Tightens Customer Match Policies with New Enforcement Guidelines

Google Tightens Customer Match Policies with New Enforcement Guidelines

Google Ads Scripts to Implement Consent Unbundling in 2025

Google Ads Scripts to Implement Consent Unbundling in 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 Ads Launches New Brand Report

Google Ads Launches New Brand Report

Google Ads Editor v2.8 Released with AI Image Generation and Enhanced Features

Google Ads Editor v2.8 Released with AI Image Generation and Enhanced Features

Google
Google

Official Source

Official Source

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

Official Source
Google to Resume US Political Ads Following Post-Election Pause

Google to Resume US Political Ads Following Post-Election Pause

Google
Google

Official Source

Official Source

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

Official Source
Google Demand Gen Shifts from Audiences to Signals in Silent Update Trending ️‍🔥

Google Demand Gen Shifts from Audiences to Signals in Silent Update

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 to Discontinue Local Services Ads App in January 2025

Google to Discontinue Local Services Ads App in January 2025

Related Tools

GA4 Auditor logo

GA4 Auditor

Verified Tool

Verified Tool

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

Verified Tool

Automated GA4 audits with actionable insights

Get Featured Here

Showcase your tool in this list.

Contact Us
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
Skai logo

Skai

AI-powered omnichannel marketing and optimization

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

TrueClicks

Automated PPC audits, monitoring, optimization

Ad Management

Get Featured Here

Showcase your tool in this list.

Contact Us