Support for v5 is available if you want to opt in sooner. You can modify your code to set an explicit version using:
var report = AdsApp.search(query, {
apiVersion: 'v5'
});
See the Google Ads API release notes for a complete list of changes in v5. Some highlights for reporting include:
- Fetching stats for entity types not explicitly supported by the API, such as Discovery campaigns
- Improved policy summary fields for ads with more selectable options