Hi Reza,
I understand you're looking to convert the report data in JSON format. You may refer to the solution shared in our
Github Issue Tracker which might be helpful. If you're already converting the data to JSON format and receiving the error 500, it usually indicates that there is a temporary problem with the server; if this error occurs, retry the request after a few moments. Let me know if you have any further questions.
Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UODtoh:ref