I purchased that lens hood you posted the link for. I threw it away because it sucks.
1) The bottom flat cover actually interferes with the camera gimbal left to right tilt. The camera hits the lens hood.
2) There are no snap features that hold it securely in place. After you slide it in, just by slightly touching it it shifted out of place. I didn’t even attempt to fly with it.
I purchased the PGYTECH lens hood from Amazon. Much better quality. It snapped securely into the MavicAir and the camera moves to all extremes with no interference.
About it helping block sunlight, I have yet to test that fully.
Cheers.