Unfortunately, only search and display campaigns are supported in the standard campaign selector.
Google Ads Scripts provides separate methods and classes for accessing other campaign types, like Performance Max .
Foer example: Retrieve Performance Max Campaigns
Step-by-Step Breakdown
Define the Selector for Performance Max Campaigns:
Use the AdsApp.performanceMaxCampaigns() method to get the campaign selector.
Apply the necessary filters to select only enabled Performance Max campaigns.
Create the Iterator:
Use the get() method to fetch the iterator.
Loop through the results in the iterator using the hasNext() and next() methods.
Log the Campaign Details:
Extract the campaign name and ID for each campaign and log them.
More details and the code: