Hi Dmitry,
I was not able to replicate the issue with our code sample. Could you please try with the solution provided on the Github issue tracker
here where a similar issue has been reported? If you're having an issue, feel free to re-open a new issue on the issue tracker and the library owners will be able to take a look.
Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UAqQ3D:ref