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

Top-Notch Google Analytics Audit Tool

Top-Notch Google Analytics Audit Tool

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 Ads Rolls Out New AI Features for Enhanced Campaign Performance Trending ️‍🔥

Google Ads Rolls Out New AI Features for Enhanced Campaign Performance

Google
Google

Official Source

Official Source

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

Official Source
Google Ads Adds Search Impression Share Metric to Performance Max Campaigns

Google Ads Adds Search Impression Share Metric to Performance Max Campaigns

Google Enhances Search Ads for Travel Advertisers with Hotel Center Feed Integration

Google Enhances Search Ads for Travel Advertisers with Hotel Center Feed Integration

Google Ads Updates Gambling and Games Policy for Greece

Google Ads Updates Gambling and Games Policy for Greece

Google
Google

Official Source

Official Source

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

Official Source
Google Ads Enhances Performance Max Campaigns with New Video Settings

Google Ads Enhances Performance Max Campaigns with New Video Settings

Google Ads Integrates Automatic Budget Increases in tROAS Recommendations

Google Ads Integrates Automatic Budget Increases in tROAS Recommendations

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 Introduces Confidential Matching for Ads Trending ️‍🔥

Google Introduces Confidential Matching for Ads

Google
Google

Official Source

Official Source

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

Official Source

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

EDEE

PPC budget management and optimization

Ad Management

Get Featured Here

Showcase your tool in this list.

Contact Us