Hi,
Thank you for reaching out to the Google Ads Scripts support team.
Please be informed that there is no script available for a PMax campaign with your inputs. I would suggest that you refer to the Reporting document for a sample query to get metrics of an asset group, you can add or remove metrics of your choice by using Google Ads Query Builder, and you can export the data to a spreadsheet by using SpreadsheetApp. I would recommend that you go through the Performance Max reporting, AdsApp.AssetGroupSelector, and Performance Max documents for more information.
I hope this helps! Kindly contact us if you still need any help.
![]() |
Google Ads Scripts Team |