We recently published a new suite of guides on how to create Performance Max campaigns in Google Ads scripts. You can check them out on our developers site.
These guides focus on using the new mutate function, which lets you access most of the features from the full Google Ads API.
By following the pattern established in these guides, you can customize the operations to perform all sorts of tasks automatically with scripts. Check out the mutate strategy section specifically for some general advice applicable to many use cases.
If you have any questions or concerns, you can reach out to us on our forum.