Registration an App to the AppStore and to the AdMob

Hello.
If I want to earn money via showing ads in my app, where I need to register and upload my app firstly, in the AppStore or in the AdMob?
Can somebody tell me the algorithm how to do this or the short and general algorithm how to do this?

There is no “algorithm” follow this video. Also know that unless you have thousands of downloads you most likely won’t make much via ads

You need to ad AdMob to your app, configure AdMob and then later upload your app to the App Store

Can I register my app to the ad mob and in app store in different days?
Would it influence on something?
If yes, would it influence on something connected with the ad showing or with the money that I can earn via ads?