I see some adsense ads don’t show the advertiser’s site URL,how this is done?

There’s nothing done, some ad formats allow to displays ads with or without the url, but it’s not up to us to decide, it’s just adsense which display or not the url when they feel like it.