get a litre of confidor concentrate,
200 g/L Imidacloprid is the ingredient, use half the dose on the dogs that you would use if you were to treat with advantage flea control as its twice as strong
10ml in a few litres of water sprayed in the pens will treat them too, increase the dose if need be
for ticks you can get a product called AXE which has 500g/l permethrin(which is the ingredient in coopex. Its also in advantix with the confidor stuff)