Connect iPad to mic/line 1 & 2

I want to connect my iPad as a sound input to my ur22 mkII … can I use a “1x mini-jack - 2x XLR cable” for that too mic/line input 1 & 2 ( like this one )? Or can I only use a “1x mini jack-jack - 1 XLR cable” to mic/line input 2 (like this one ).

Thanks for the help!

I bought both cables and none of them work properly. I guess I have to buy a “mono jack cable to xlr” and not a “stereo to xlr calbe”?

Anyone who can help me?