its definately possible, but thats going to be a lot of work.
unless you need to submit ads very often, it prob will not be worth it.
also, whenever the websites are updated/improved/redesigned, you will likely need to update your script or it wont work anymore.