how to deal with : testDeviceIdentifiers = @[ <private> ];

To test admob and Google UMP i need to obtain device identifier and pass to relevant call.

But, when I look for testDeviceIdentifiers in the macos Console app I see it prints this:

testDeviceIdentifiers = @[ <private> ];

it seems to hide the device id for privacy reasons.
For android I obtained it easily.

(post deleted by author)

Is this what you use ? This suggestion is from 7 years ago.

Everybody , you had to do this too ?

I haven’t added an iOS test device to admob, but I have had to unredact private logging on macos before. It might have been close to 7 years ago I had to do that, but no, the first accepted answer there no longer works. The second one from 2020 is likely still applicable.
You could also just download or write a small app to get your ad id.