I checked the ebay one quoted and it does not fit the 2.2 16v according to the ebay filter. Like me MCU you probably thought you were buying a bargain although I paid a bit more for mine.
For clarity. The part that I linked to is for earlier 2.0 16V. This has a square sided connector and is not intended for and won't fit on a later 2.0 or on a 2.2. MonzaGSE who started this thread told us his has a square sided connector.
This earlier part is long obsolete and was replaced with an oval sided connector version. This oval part can be retrofitted to the earlier engines but requires a loom adapter cable, seemingly €120 in Norway. However the same cable, Intermotor branded, can be had on ebay if you buy the Intermotor part I also linked to. Throw away the Intermotor sensor and just use the cable if you want to.
The early Siemens part I linked to is original factory fit, supplied through the Continental VDO channel, for earlier 2.0 16V X20XEV engines.
The 2.2 16V cam sensor is GM part #90520850 which is manufactured by Siemens with part #5WK96052 (5WK9-605-2). This is not the same part as used on any version of X20XEV.