This paper examines integrated satellite-terrestrial networks (ISTNs) in urban environments, where terrestrial networks (TNs) and non-terrestrial networks (NTNs) share the same frequency band in the C-band which is considered the promising band for both systems. The dynamic issues in ISTNs, arising from the movement of low Earth orbit satellites (LEOSats) and the mobility of users (UEs), are addressed. The goal is to maximize the sum rate by optimizing link selection for UEs over time. To tackle this challenge, an efficient iterative algorithm is developed. Simulations using a realistic 3D map provide valuable insights into the impact of urban environments on ISTNs and also demonstrates the effectiveness of the proposed algorithm.