int resetAdId(ADSuyiAd ad) { int adId = ad.adId; if (map[adId] != null) { this.adId += 1; adId = this.adId; } map[adId] = ad; return adId; }