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

Google Performance Max Now Offers Device Control at Campaign Level

Google Performance Max Now Offers Device Control at Campaign Level

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
Top-Notch Google Ads Audit Tool

Top-Notch Google Ads Audit Tool

Featured
Google Unveils Generative AI for 3D Product Visualizations in Online Shopping

Google Unveils Generative AI for 3D Product Visualizations in Online Shopping

Google
Google

Official Source

Official Source

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

Official Source
PMAX Introduces AI Asset Optimization for Image Enhancements and Landing Page Images

PMAX Introduces AI Asset Optimization for Image Enhancements and Landing Page Images

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 Ads introduces new chart types for enhanced reporting visualization

Google Ads introduces new chart types for enhanced reporting visualization

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 Launches AI Max for Search Campaigns Trending ️‍🔥

Google Launches AI Max for Search Campaigns

Google
Google

Official Source

Official Source

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

Official Source
Google Announces API Roadmap for AI Max Search Campaigns

Google Announces API Roadmap for AI Max Search Campaigns

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
YouTube Introduces Bumper +15 Sec Non Skippable Ad Format for Advertisers

YouTube Introduces Bumper +15 Sec Non Skippable Ad Format for Advertisers

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

Related Tools

Markifact logo

Markifact

Verified Tool

Verified Tool

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

Verified Tool

Marketing Workflows Powered by AI

Featured
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
Sembot logo

Sembot

Maximize ROI with AI-driven marketing automation

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

Get Featured Here

Showcase your tool in this list.

Contact Us