Thank you for reaching out to the Google Ads Scripts Team. Please excuse us for only getting back now as your message failed to be routed to our support queue.
I would recommend approaching this by Reporting and using the report type ad_group_ad_asset_view
. Kindly check the query below which you are also free to modify (by using the query builder) depending on the fields you'd need:
- SELECT asset.id, ad_group_ad.ad.type, ad_group_ad.ad.id FROM ad_group_ad_asset_view WHERE ad_group_ad.ad.type = 'RESPONSIVE_SEARCH_AD'
Please let us know if we can assist you with anything else.
Google Ads Scripts Team