Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
It seems like there are already such apps available. Based on the information I found, Adblock Browser should provide a WebView implementation with integrated ad-blocking (not yet tested). You have to install this app and make it the default WebView provider as shown in this answer.
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like Blokada or on the network level in your Wifi network, you can install a gateway like Pi-hole. Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
Answer from Robert on Stack ExchangeI'm using a certain app and the pop up ads are just too many and intrusive (every 10 seconds)
Devs need to make revenue and pay their bills but some are just too greedy/abusive.
Is there an app that let's me block certain apps from showing Ads?
adb - Stop 'in app' ads from loading? - Android Enthusiasts Stack Exchange
How to block popups and mature ads on Android? - Pumpic Community Forum
How to block ads in Android applications? - Android Enthusiasts Stack Exchange
How to remove ads from apps - TechRepublic
Why can’t I find AdGuard for Android on Google Play?
How do I install AdGuard for Android?
Can I use a VPN with AdGuard for Android?
Videos
Apps are self-contained. Even for ads delivered by Google AdMob, there is no ad-system component involved at all. Apps are loading ads and other data directly from the Internet.
Therefore, what you want is not possible. You can disable every app package by Google on your phone, but as long as the internet still works, the apps will show you ads.
The only system package that might be used is the WebView - a component that allows apps to display web pages - and ads are typically web content.
The problem is that many apps also use WebViews for displaying non-ad content, some apps even mainly consist of a WebView and the whole app consists of web pages.
The used WebView can be configured in Android developer options. On some devices, there is a separate WebView component installed, on others, the default web browser or an installed Chrome app is used as a WebView provider.
It is possible to develop an app that provides a WebView with an integrated ad-filter, but I have not heard of such an app.
Ad-blocking WebView
It seems like there are already such apps available. Based on the information I found, Adblock Browser should provide a WebView implementation with integrated ad-blocking (not yet tested). You have to install this app and make it the default WebView provider as shown in this answer.
However, using that app has one major disadvantage: it is based on Chromium, the open-source part of Google Chrome. Therefore, all vulnerabilities found in Chrome also apply to this web browser. So if you want to stay secure, every time a security update for Chrome is published (which happens some times multiple times a week) the developers of Adblock Browser need to update their project, incorporate all necessary changes, and also publish an update. Otherwise, apps that use WebView for regular (non-ad related) purposes may otherwise be vulnerable to an attack.
In the end, this is an advantage of ad-filtering external apps like Blokada or on the network level in your Wifi network, you can install a gateway like Pi-hole. Both filter apps and Pi-Hole work very similarly. You don't need to update them so often as security vulnerabilities are not so often found in such apps/systems.
You can use AdAway, it works without root, the only ad it still works is from YouTube. Now I don't see any ads in apps, I see no apps in Chrome too.
Well, of course i still see the Ad Frame, but it get an error showing the ad, so technically you're not seeing an ad.
The most popular method is replacing the built-in hosts files with one that forces DNS queries to well-known ad servers to result in 127.0.0.1 (localhost). This effectively blocks most common ads, and most of the Google Ads in applications.
The downside is that applications can tell that ads are being blocked, and can either refuse to run or otherwise degrade their usefulness while the ad blocking is in effect.
Also, root access is required to replace the hosts file.
Beyond that, I haven't seen anything that can selectively block web requests for arbitrary apps. For some programs that only use internet access for ads, you could use a firewall app to prevent them from accessing the internet or -- if your ROM supports it (like the latest CyanogenMod) -- revoke the internet access permission from the app.
Again, root access is generally required to set up a system-wide app-level firewall or replace your ROM.
There are two different apps, AdFree Android and AdAway that block ads, theoretically in all applications. You must have a rooted phone in order to use these.
AdFree Android works by
...nullifying requests to known host names in the system hosts file.
which is essentially an automated solution of modifying the hosts file, brought up by another user here. It appears that Adaway does the same thing.
If you do not have a rooted phone, you can, at the very least, use the Firefox Browser with the Adblock Plus AddOn (installed via Firefox).