Hi,
Thank you for reaching out to the Google Ads Scripts support team.
As your response contains PI data, I have deleted your message from this forum to avoid any security risks.
Upon checking the script you have provided, I would like to inform you that the script is executing fine without any errors. Kindly check once again at your end and try using another spreadsheet if it's not working.
Thanks,
Google Ads Scripts team