Fetching Pmax asset & content suitability data

Hi all,

I’m trying to fetch multiple types of data and write it to a speadsheet using Google Ads scripts. However I am struggling with 2 types of data:

Pmax asset data
I managed to fetch all asset data and write it to a spreadsheet per campaign. However the issue I am facing is that it will always export all the headlines and other content, also the ones that were previously deleted. I cannot find a way to filter to only the active ones. I could ofcourse make a filter based on impressions, but would prefer making a official filter using status.

Content suitability
Similarly I would like to check content suitability settings on account level and write it to a sheet. I managed to do it on campaign level (for only youtube campaign). But cannot find a way to get the account level settings. I am talking about inventory type and excluded content (like “tragedy and conflict“)

Does anyone have a solution for these issues?