In this paper, an optimal actuator placement problem, with a linear wave equation as the constraint, is considered. In particular, this work presents the framework for finding the best location of actuators depending upon the given initial conditions, and where the dependence on the initial conditions is averaged out. The problem is motivated by the need to control vibrations induced by pedestrian-bridge interactions. An approach based on the shape optimization techniques is used to solve the problem. Specifically, the shape sensitivities involving a cost functional are determined using the averaged adjoint approach. A numerical algorithm based on these sensitivities is used as a solution strategy. Numerical tests illustrate the theoretical results.