package ya; import a1.h; import android.net.Uri; import java.io.IOException; import java.net.HttpURLConnection; import java.net.URL; import java.util.Map; public final class b extends Thread { /* renamed from: b reason: collision with root package name */ public final /* synthetic */ Map f187817b; public b(Map map) { this.f187817b = map; } public final void run() { Map map = this.f187817b; Uri.Builder buildUpon = Uri.parse("https://pagead2.googlesyndication.com/pagead/gen_204?id=gmob-apps").buildUpon(); for (String str : map.keySet()) { buildUpon.appendQueryParameter(str, (String) map.get(str)); } String uri = buildUpon.build().toString(); try { HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(uri).openConnection(); try { int responseCode = httpURLConnection.getResponseCode(); if (responseCode < 200 || responseCode >= 300) { new StringBuilder(String.valueOf(uri).length() + 65); } } finally { httpURLConnection.disconnect(); } } catch (IndexOutOfBoundsException e14) { new StringBuilder(h.a(e14.getMessage(), h.a(uri, 32))); } catch (IOException | RuntimeException e15) { new StringBuilder(h.a(e15.getMessage(), h.a(uri, 27))); } } }