Want to spray perimeter, but....
Perimeter sprays from a hand sprayer, including spraying up the side of the house, will stay put. Make sure that the chemical has time to dry before any rainstorm and it won't leach. Stay within 2-4 feet perimeter on the soil, spray as high as you want. The house and rain gutter/spouting will protect the perimeter. Don't use granules, as they can move downhill. Keep pets and people out of perimeter until it is dry.
The ant baits are a good solution to ant problems as there is a better chance of colony elimination. You can do both, but don't do both at the same time as your spray may work against your baiting strategy. If you can keep the bait stations out of the spray perimeter, all the better. The baits won't stay fresh and acceptable all year; probably need to change them every couple months, especially if you have ant activity.