If you think that all internet ads delivery functions all start with this string (if only it were so easy), I'm afraid you are in for a surprise, there really are better tools out there.
There is also no need for the first mask if you have the second one, as that covers that catered for by the first.
See images, which is a very small sample of the lists in adblock+ for firefox. The first image whilst it has ad in the first two characters, there is no guarantee that it will be proceeded with http :// So if that happens your mask won't work and putting a wildcard in place of the http :// would make it too general and trap many legitimate sites.
The second image shows just a few that don't even have add in the string at all.