Good treatment to get rid of fleas on a dog is to give them frequent flea baths as well as getting them dipped in a flea dip solution.
The flea dip solution will kill the fleas within minutes and you'll see them fall off in the water and flea dip solution.
To kill ticks along with fleas you should get them some chewable flea and tick medication which you can buy online.