Google launched support for Performance Max campaigns in ad scripts
Advertisers and developers using Google Ad scripts now have support for Performance Max campaigns. You can pause and enable the campaign, and modify most asset types.
Script limitations. Users won’t be able to modify text assets or create new campaigns or asset groups. Furthermore, listing groups cannot be managed via Scripts.
Why we care. Ad scripts let you automate specific actions in your ad account, saving time and making management of large or multiple accounts much easier. If you manage Performance Max campaigns and you’re using scripts, you can set them up within your account.