iOS app firebase integration

Hello,

I need to integrate firebase on my app. Actually I need few datas for advertisement. When I set up google ads, I need to create conversation and it need firebase. I need first install, or install or app open event.

How can I set up? I tried manythings but failed. Can someone help me?

Thanks