I use AdAway - https://f-droid.org/packages/org.adaway/ on my Android phone. Downloads lists of advertising hostnames and blocks them via /etc/hosts. It's licensed under GPL-3.0. Requires you to have rooted your phone.
Hosts list. Doesn't work as well on mobile. Unsure how Waze does their ads, but on mobile you get a white box with "Couldn't load!" or something of that sort instead of no ad at all.