Asymptotic boundary conditions and square integrability in the partition function of AdS gravity