Xiaomi 15
  VS  
Realme GT 7 Pro  

  • Price List

  • GENERAL

    • Also known as
    • Xiaomi 15
    • Operating System
    • Xiaomi HyperOS 2
    • Android 15
    • Custom UI
    • Realme UI 6.0
    • Device type
    • Smartphone
    • Smartphone
    • Sim
    • Dual SIM (nano SIM + nano SIM or nano SIM + eSIM)
    • Dual Nano SIM
    • Colours
    • White, Black, Green
    • Mars Orange, Galaxy Grey
  • Rear Camera Details(Primary)

  • Rear Camera

  • ANNOUNCED

    • Status
    • Announced
    • Available in India (29 November, 2024)
    • Global Release Date
    • 2 March, 2025
    • November, 2024
    • Indian Release Date
    • 11 March, 2025
    • 26 November, 2024
  • BODY

    • Dimensions
    • 152.3mm x 71.2mm x 8.08mm
    • 162.45 x 76.89 x 8.55 mm
    • Weight
    • 191g
    • 222.2 g
    • Body Material
    • Glass front, Aluminum Alloy Frame
  • DISPLAY

    • Screen size
    • 6.36 inches
    • 6.78 inches
    • Technology
    • CrystalRes AMOLED
    • 8T LTPO Eco² OLED Plus
    • Screen resolution
    • 1200 x 2670 pixels, 1.5K, 20:9 ratio (~460 ppi density)
    • 1264 x 2780 pixels, 1.5k
    • Refresh Rate
    • 120Hz Refresh rate
    • 120Hz Refresh rate
    • Display Protection
    • Shatterproof Glass
    • Corning Gorilla Glass Victus 2
    • Touchscreen
    • Capacitive Touchscreen
    • Capacitive Touchscreen
    • Form Factor
    • Touch
    • Touch
  • PROCESSOR

    • Chipset
    • Qualcomm Snapdragon 8 Elite (3 nm)
    • Qualcomm Snapdragon 8 Elite 3nm SoC (1100MHz)
    • CPU
    • Octa core (2x4.32 GHz Oryon V2 Phoenix L + 6x3.53 GHz Oryon V2 Phoenix M)
    • Octa-core 4.32 GHz
    • GPU
    • Adreno 830
    • Adreno 830
  • STORAGE

    • Internal Storage
    • 512GB
    • 256 GB
    • RAM
    • 12GB LPDDR5X 8533Mbps
    • 12 GB LPDDR5X
    • Storage Type
    • UFS 4.0
    • UFS 4.0
    • External Storage
    • No
    • No
  • CAMERA

    • Primary camera
    • Leica 50MP (f/1.6, wide) + Leica 50MP (f/2.0, telephoto) + Leica 50MP (f/2.2, ultra-wide) Triple Camera with Dual LED Flash
    • 50 MP (f/1.8, wide) + 50 MP (f/2.65, periscope telephoto) + 8 MP (f/2.2, ultra-wide) Triple Cameras with Dual-LED dual-tone flash
    • Front Camera
    • 32MP (wide) Selfie Camera
    • 16 MP (f/2.45) Selfie Camera
    • Video Recording
    • 8K@24/30fps, 4K@24/30/60fps (HDR10+, 10-bit Dolby Vision HDR, 10-bit LOG), 1080p@30/60/120/240/960fps, 720p@1920fps, gyro-EIS
    • 8K@24fps, 4K@30/60fps, 1080p@30/60fps, gyro-EIS, Dolby Vision
    • Camera Features
    • Laser AF, Leica lens, Dual-LED dual-tone flash, HDR, Panorama & more
    • AI Camera, HDR, Panorama, Sony IMX906 sensor, OIS, Slow-motion, Time-Lapse, Hybrid zoom & more
  • MULTIMEDIA

    • Audio Player
    • MP3, FLAC, APE, AAC, OGG, WAV, AMR, AWB
    • MP3, WAV, eAAC+, FLAC
    • Video Player
    • MP4, MKV, WEBM, 3GP, TS
    • MP4, DivX, XviD, WMV, H.264, H.263
    • Games
    • Yes
    • Yes
    • FM Radio
    • No
    • Speakers
    • Yes, with stereo speakers
    • Yes, with stereo speakers
    • Audio Jack
    • USB Type-C
    • USB Type-C
  • BATTERY

    • Type
    • Non-removable 5240mAh battery
    • Non-removable Li-Ion 5800 mAh battery (min: 5640mAh)
    • Charging
    • 90W Hypercharge, 50W wireless Hypercharge
    • 120W Quick Charging
  • CONNECTIVITY

    • GPRS
    • Yes
    • Yes
    • Edge
    • Yes
    • Yes
    • WLAN
    • Wi-Fi 802.11 a/b/g/n/ac/6e/7, dual-band, Wi-Fi Direct
    • Wi-Fi 802.11 802.11 a/b/g/n/ac/ax/be, (2.4GHz/5GHz), Wi-Fi Direct
    • Bluetooth
    • v6.0
    • v5.4, A2DP, LE
    • Infrared Port
    • Yes
    • USB
    • USB Type-C 3.2, USB OTG
    • USB Type-C
    • GPS Facility
    • GPS: L1+L5, Galileo: E1+E5a , GLONASS: G1, Beidou, QZSS: L1 + L5, NavIC: L5
    • with A-GPS, GLONASS, Beidou, GALILEO, QZSS
    • Speed
    • HSPA, LTE, 5G
    • HSPA, LTE, 5G
  • NETWORK SUPPORT

    • 2G
    • GSM: B2 / B3 / B5 / B8
    • GSM: 850/900/1800/1900 MHz
    • 3G
    • WCDMA: B1 / B2 / B4 / B5 / B6 / B8 / B19
    • WCDMA: Bands 1/2/4/5/6/8/19 MHz
    • 4G
    • FDD-LTE: B1 / B2 / B3 / B4 / B5 / B7 / B8 / B12 / B17 / B18 / B19 / B20 / B26 / B28 / B66 TDD-LTE: B34 / B38 / B39 / B40 / B41 / B42 / B48
    • FDD-LTE: 1/2/3/4/5/7/8/12/13/ 17/18/19/20/26/28/66 TD-LTE: 38/39/40/41
    • 5G
    • n1 / n2 / n3 / n5 / n7 / n8 / n12 / n20 / n26 / n28 / n38 / n40 / n41 / n48 / n66 / n77 / n78 / n79 / n80 / n81 / n83 / n84 / n89
    • NR: n1/2/3/5/7/8/20/28/ 38/40/41/77/78/66
  • MORE FEATURES

    • Sensors
    • Proximity sensor, Ambient light sensor, Accelerometer, Gyroscope, Electronic compass, IR blaster, Laser focus sensor, Barometer, Flicker sensor, X-axis linear vibration motor
    • In-display Ultra-sonic Fingerprint Sensor, Infrared sensor, Accelerometer, Gyro, Geomagnetic, Proximity, Compass
    • Other Features
    • AI face unlock, Ultrasonic in-screen fingerprint sensor, NFC, Dust and water resistant (IP68)
    • Face Unlock, NFC, Water and Dust resistance (IP68+IP69), AI Sketch to Image
  • BENCHMARK SCORES

    • AnTuTu
    • 2546330 (v10)
Compare Mobiles
Notifications
Settings
Clear Notifications
Notifications
Use the toggle to switch on notifications
  • Block for 8 hours
  • Block for 12 hours
  • Block for 24 hours
  • Don't block
Gender
Select your Gender
  • Male
  • Female
  • Others
Age
Select your Age Range
  • Under 18
  • 18 to 25
  • 26 to 35
  • 36 to 45
  • 45 to 55
  • 55+
`; } }); moreFromHtml += ` ${!/Mobi|Android/.test(navigator.userAgent) ? `
Prev
Next
` : "" } `; document.querySelector(".oi-carousel-block").innerHTML = moreFromHtml; } }) .catch((err) => { console.log("deeplink loading...", err); }); } if (!lotteryPageAdLoaded) { lotteryPageAdLoaded = true; if (["nagaland lottery", "kerala lottery", "lottery results", "assam lottery", "uae lottery", "punjab lottery", "sikkim lottery", "maharashtra lottery"].includes(document.head.dataset.category_name) && document.head.dataset.monetization == "false") { if (domainmiddle == "goodreturns") { commonFunctions.loadAd( document.getElementById("bottom-sticky"), (atOptions = { key: "ecf07c14b507ef20f5bc289adb3b36bd", format: "iframe", height: 50, width: 320, params: {}, }), "https://engineerfoal.com/ecf07c14b507ef20f5bc289adb3b36bd/invoke.js", ); if (document.getElementById("stickymaincon")) { document.getElementById("stickymaincon").style.display = "block"; } if (document.getElementById("bottomAdWrapper")) { document.getElementById("bottomAdWrapper").style.setProperty("display", "block", "important"); } commonFunctions.loadAd( document.getElementById("are-slot-1"), (atOptions = { key: "5f45a40e971323b65893db3d0e63a14f", format: "iframe", height: 250, width: 300, params: {}, }), "https://engineerfoal.com/5f45a40e971323b65893db3d0e63a14f/invoke.js", ); } if (domainmiddle == "oneindia") { commonFunctions.loadAd( document.getElementById("bottom-sticky"), (atOptions = { key: "89758f0f4693df9548968afdb5a4d902", format: "iframe", height: 50, width: 320, params: {}, }), "https://engineerfoal.com/89758f0f4693df9548968afdb5a4d902/invoke.js", ); if (document.getElementById("stickymaincon")) { document.getElementById("stickymaincon").style.display = "block"; } if (document.getElementById("bottomAdWrapper")) { document.getElementById("bottomAdWrapper").style.setProperty("display", "block", "important"); } commonFunctions.loadAd( document.getElementById("are-slot-1"), (atOptions = { key: "ce146180f15d99aff15253386c46ae5a", format: "iframe", height: 250, width: 300, params: {}, }), "https://engineerfoal.com/ce146180f15d99aff15253386c46ae5a/invoke.js", ); } } } if (!indianSutrasAds) { let adSlots = document.querySelectorAll("[id^='are-slot-']"); indianSutrasAds = true; if (adSlots.length) { adSlots.forEach((element) => { if (window.location.hostname == "hindi.indiansutras.com") { let nativeDiv = document.createElement("div"); nativeDiv.id = "4dcfbc057e2ae8589f9bbd98b591c50a"; const js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://click.nativclick.com/loading/?handle=9699"; js.async = false; // force execution order nativeDiv.appendChild(js); element.appendChild(nativeDiv); } if (window.location.hostname == "tamil.indiansutras.com") { let nativeDiv = document.createElement("div"); nativeDiv.id = "fc2dc7d20994a777cfd5e6de734fe254"; const js = document.createElement("script"); js.type = "text/javascript"; js.src = "https://click.nativclick.com/loading/?handle=9698"; js.async = false; // force execution order nativeDiv.appendChild(js); element.appendChild(nativeDiv); } }); } } if (!designTemplateLoaded && ["tamil.oneindia.com"].includes(window.location.hostname)) { let designLoaded = parseInt(sessionStorage.getItem("design")) || 1; let deeplinkElements = document.querySelectorAll(".oi-recommended-articles-option1, .oi-recommended-articles-option2, .oi-recommended-articles-option3"); if (deeplinkElements.length > 0) { designTemplateLoaded = true; deeplinkElements.forEach((element) => { console.log("design", element); if (!element) return; element.classList.remove("oi-recommended-articles-option1", "oi-recommended-articles-option2", "oi-recommended-articles-option3"); element.classList.add(`oi-recommended-articles-option${designLoaded}`); const updateLink = () => { const link = element.querySelector("a"); if (!link) return false; link.dataset.uparam = `ref_source=${hostParam}-${langParam}&ref_medium=Article-Page&ref_campaign=Deep-Links-DMP-D${designLoaded}`; return true; }; // try updating immediately updateLink(); // observe only if link not yet present const observer = new MutationObserver(() => { if (updateLink()) { observer.disconnect(); } }); observer.observe(element, { childList: true, subtree: true }); }); // calculate next design let nextDesign = (designLoaded % 3) + 1; sessionStorage.setItem("design", nextDesign); } } }); if (window.location.hostname === "www.oneindia.com") { if (document.getElementById("shiPromo")) { function trackImpHealth(impUrl) { fetch(impUrl, { method: "GET", mode: "no-cors", }).catch(function (err) { console.log("Inside Imp error:", err); }); } document.getElementById("shiPromo").addEventListener("click", function (event) { event.preventDefault(); // Prevent default navigation let url = this.href; if (document.getElementById("dynamicanchor")) { document.getElementById("dynamicanchor").remove(); } var link = document.createElement("a"); link.target = "_blank"; link.id = "dynamicanchor"; link.href = url; document.body.appendChild(link); document.getElementById("dynamicanchor").click(); let healthImpUrl = "https://pubads.g.doubleclick.net/gampad/clk?id=6924557502&iu=/1008496/clicktracker-oi-1"; trackImpHealth(healthImpUrl); }); } function checkConsentAndTriggerClarity() { window.googlefc = window.googlefc || {}; window.googlefc.callbackQueue = window.googlefc.callbackQueue || []; window.googlefc.callbackQueue.push({ CONSENT_DATA_READY: () => __tcfapi("addEventListener", 2, (tcData, success) => { if (success) { const hasConsent = tcData.purpose.consents && tcData.purpose.consents[1]; if (hasConsent) { console.log("Consent granted for tracking"); window.clarity("consent"); } else { console.log("Consent not granted for tracking"); } } else { console.log("Unable to retrieve consent status or TC Data is invalid"); } }), }); } } /*---------------------------------------Chartbeat Code Starts--------------------------------------------------------*/ if (["filmibeat", "goodreturns", "oneindia"].includes(domainmiddle)) { chartbeatflag = 0; } if (chartbeatflag == 1) { if (typeof ga_author_name === "undefined") { var ga_author_name = ""; } if (typeof oi_category_name === "undefined") { var oi_category_name = ""; } var parts = window.location.hostname.split("."); var charbeatdomain = window.location.hostname; //parts.slice(-2).join('.'); (function () { var _sf_async_config = (window._sf_async_config = window._sf_async_config || {}); _sf_async_config.uid = 51426; _sf_async_config.domain = charbeatdomain; _sf_async_config.flickerControl = false; _sf_async_config.useCanonical = true; _sf_async_config.useCanonicalDomain = true; _sf_async_config.sections = oi_category_name; _sf_async_config.authors = ga_author_name; function loadChartbeat() { var e = document.createElement("script"); var n = document.getElementsByTagName("script")[0]; e.type = "text/javascript"; e.async = true; e.src = "//static.chartbeat.com/js/chartbeat.js"; n.parentNode.insertBefore(e, n); var script = document.createElement("script"); script.src = "//static.chartbeat.com/js/chartbeat_mab.js"; script.async = true; document.head.appendChild(script); window.removeEventListener("scroll", onScroll); } function onScroll() { loadChartbeat(); } window.addEventListener("scroll", onScroll); })(); } /*---------------------------------------Chartbeat Code Ends--------------------------------------------------------*/ /*---------------------------------------Refinary Code Starts--------------------------------------------------------*/ var refineryObj = { boldsky: "https://tags.refinery89.com/boldskycom.js", careerindia: "https://tags.refinery89.com/careerindiacom-aniview.js", mykhel: "https://tags.refinery89.com/mykhelcom-aniview.js", nativeplanet: "https://tags.refinery89.com/nativeplanetcom-aniview.js", }; var refineryHost = ["boldsky", "careerindia", "nativeplanet"]; var refineryflag = 0; if (refineryHost.includes(domainmiddle)) { function loadrefinery() { var refinery = document.createElement("script"); document.head.appendChild(refinery); refinery.async = true; refinery.src = refineryObj[domainmiddle]; sessionStorage.setItem("refinery_status", 1); } if (refiner_live) { window.addEventListener("scroll", function () { if (refineryflag == 0) { refineryflag = 1; loadrefinery(); } }); } } /*---------------------------------------Refinary Code Ends--------------------------------------------------------*/ /*---------------------------------------Momagic Code Starts--------------------------------------------------------*/ var moMagicHost = ["oneindia", "drivespark", "mykhel", "filmibeat", "goodreturns"]; function trackMoMagic(evnAct, evnLbl) { var curTimeStamp = Math.round(new Date().getTime() / 1000); var extraparam = "×tamp=" + curTimeStamp; if (/Mobi|Android/i.test(navigator.userAgent)) { var triggerDevice = "mobile"; //mobile/desktop } else { var triggerDevice = "desktop"; //mobile/desktop } var img = document.createElement("img"); img.src = "https://" + finalImagePath + "/images/tracker.jpg?tracker=oi-tracker-cms&device=" + triggerDevice + "&type=momagictracker&eventcategory=momagic&eventaction=" + evnAct + "&eventlebel=" + evnLbl + extraparam; img.setAttribute("id", "trackermomagicimage"); img.setAttribute("alt", "Momagic Tracker"); img.setAttribute("width", 1); img.setAttribute("height", 1); img.style.display = "none"; document.body.appendChild(img); } var trackerGA = "G-BGSPW5MRBP"; trueReachLoad = false; var backRef = documentRef; if (domainmiddle === "oneindia" || domainmiddle === "mykhel" || domainmiddle === "filmibeat" || domainmiddle === "drivespark" || domainmiddle === "goodreturns") { history.pushState({ page: "intermediate" }, "", ""); window.addEventListener("popstate", function (event) { if (location.hash === "" && trueReachLoad) { if (typeof showTruereachAd === "function") { if (backRef && backRef != "") { showTruereachAd(backRef); } else { showTruereachAd(); } var evtLbl = "en-oi"; if (langParam != "" && langParam != undefined && langParam != null) { var dynsrc = langParam + "-" + hostParam; evtLbl = dynsrc.toLowerCase(); } trackMoMagic("back-button", evtLbl); } } }); } if (moMagicHost.includes(domainmiddle)) { if (promoArticle == 0) { var evtLbl = "en-oi"; if (langParam != "" && langParam != undefined && langParam != null) { var dynsrc = langParam + "-" + hostParam; evtLbl = dynsrc.toLowerCase(); } if (/Mobi|Android/i.test(navigator.userAgent)) { if (momagicFlag === 1) { if (document.referrer.indexOf("oneindia.com") !== -1 || document.referrer.indexOf("filmibeat.com") !== -1 || document.referrer.indexOf("drivespark.com") !== -1 || document.referrer.indexOf("mykhel.com") !== -1 || document.referrer.indexOf("goodreturns.in") !== -1) { trackMoMagic("referral", evtLbl); } else { var moMagicSession = sessionStorage.getItem("moMagicSession"); if (moMagicSession) { trackMoMagic("referral", evtLbl); } else { sessionStorage.setItem("moMagicSession", 1); } } } } } } /*---------------------------------------Momagic Code Ends--------------------------------------------------------*/ /*---------------------------------------Affinity Matrix/Space Code Starts--------------------------------------------------------*/ function affinityMatrix() { var curhost = location.hostname; var curdom = curhost.split(".").slice(-2).join("."); var o = "script", s = top.document, a = s.createElement(o), m = s.getElementsByTagName(o)[0], d = new Date(), timestamp = "" + d.getDate() + d.getMonth() + d.getHours(); a.async = 1; a.src = "https://cdn4-hbs.affinitymatrix.com/hvrcnf/" + curdom + "/" + timestamp + "/index?t=" + timestamp; m?.parentNode?.insertBefore(a, m); } if ("goodreturns" == domainmiddle) { if (/Mobi|Android/i.test(navigator.userAgent)) { affMatrix = 1; } } if (affMatrix == 1) { if (/Mobi|Android/i.test(navigator.userAgent)) { if (trackpagetype != "home") { var affinityInserted = false; window.addEventListener("scroll", function () { if (!affinityInserted) { affinityMatrix(); affinityInserted = true; } }); } } else { if (trackpagetype != "home") { var affinityInserted = false; window.addEventListener("scroll", function () { if (!affinityInserted) { affinityMatrix(); affinityInserted = true; } }); } } } /*---------------------------------------Affinity Matrix/Space Code Ends--------------------------------------------------------*/ /*---------------------------------------Vidverto /Reward Video Code Starts--------------------------------------------------------*/ function loadVidvertoScript(elementId, mountId) { if (vidvertoFlag == 1) { window.addEventListener("scroll", function loadScriptOnScroll() { var script = document.getElementById(elementId); if (!script) { var a = document.createElement("script"); a.id = elementId; a.src = "https://ad.vidverto.io/vidverto/js/aries/v1/invocation.js"; a.setAttribute("fetchpriority", "high"); var r = window.top; document.head.appendChild(a); if (window.self !== window.top) { window.frameElement.style.cssText = "width:0px!important;height:0px!important;"; } r.aries = r.aries || {}; r.aries.v1 = r.aries.v1 || { commands: [] }; var c = r.aries.v1; c.commands.push(function () { var d = document.getElementById(elementId); d.setAttribute("id", d.getAttribute("id") + new Date().getTime()); var t = window.frameElement || d; c.mount(mountId, t, { width: 1, height: 1 }); }); window.removeEventListener("scroll", loadScriptOnScroll); } }); } } /*if (domainmiddle === 'gizbot') { loadVidvertoScript('_vidverto-6d7f83b216033802179a1489c7ef0112', '12320'); */ /*---------------------------------------Vidverto/Reward Video Code Ends--------------------------------------------------------*/ /*---------------------------------------Aniview Code Starts--------------------------------------------------------*/ /*if(document.querySelector('#are-slot-3')){ document.querySelector('#are-slot-3').classList.remove('oiad', 'oi-axt', 'oiadv', 'dynamic-slot'); }*/ /*---------------------------------------Aniview Code Ends--------------------------------------------------------*/ /*---------------------------------------Clarity Code Ends--------------------------------------------------------*/ // Assuming domainmiddle and langParam are dynamically determined if (!domainmiddle || !langParam || domainmiddle.trim() === "" || langParam.trim() === "") { console.error("Error: domainmiddle or langParam is undefined, null, or blank. Script will not execute."); } else { var claritylangParam = langParam.toLowerCase(); let clarityFlag = 0; let clarityVersion = "1.0.3"; // Check if Clarity has already been triggered in this session if (!sessionStorage.getItem("clarityLoaded")) { if (["oneindia", "filmibeat", "goodreturns"].includes(domainmiddle)) { clarityFlag = 1; } window.addEventListener("scroll", function () { if (clarityFlag === 0) { clarityFlag = 1; fetch("/common/clarity-tracking.json?v=" + clarityVersion) .then((response) => response.json()) .then((data) => { const clarityId = data[domainmiddle]?.[claritylangParam]; if (!clarityId) { console.error("Clarity ID not found for the given domain and language!"); return; } (function (c, l, a, r, i, t, y) { c[a] = c[a] || function () { (c[a].q = c[a].q || []).push(arguments); }; t = l.createElement(r); t.async = 1; t.src = "https://www.clarity.ms/tag/" + i; y = l.getElementsByTagName(r)[0]; y.parentNode.insertBefore(t, y); })(window, document, "clarity", "script", clarityId); if (window.location.hostname === "www.oneindia.com") { if (window.googletag && googletag.apiReady) { checkConsentAndTriggerClarity(); } } // Mark Clarity as loaded in this session sessionStorage.setItem("clarityLoaded", "true"); }) .catch((error) => { console.error("Error loading the clarify-tracking.json file:", error); }); } }); } } /*---------------------------------------Clarity Code Ends--------------------------------------------------------*/ /*---------------------------------------VOX/Adsense Backfil Code Starts--------------------------------------------------------*/ if (domainmiddle == "mykhel") { if (document.querySelector(".oi-footer-bottom-ad-close")) { document.querySelector(".oi-footer-bottom-ad-close").style.display = "none"; } } var adsenseObj = { oneindia: 6500213837, boldsky: 5451350884, gizbot: 8951063454, drivespark: 2314299074, filmibeat: 5203390138, goodreturns: 3315593397, careerindia: 2385655101, mykhel: 2194083414, nativeplanet: 7446410097 }; var adsenseSlot = adsenseObj[domainmiddle]; var inImageCssWeb = ""; var inImageCssMobi = ""; var inImageHtmlWeb = ''; var inImageHtmlMobi = ''; var finalHtmlCss = ""; if (/Mobi|Android/i.test(navigator.userAgent)) { finalHtmlCss = inImageCssMobi + inImageHtmlMobi; } else { finalHtmlCss = inImageCssWeb + inImageHtmlWeb; } function loadAdgInImgAd() { var adginimgdiv = document.createElement("div"); adginimgdiv.id = "adgebraInImgAd"; adginimgdiv.style.minWidth = "600px"; adginimgdiv.style.minHeight = "90px"; adginimgdiv.style.position = "absolute"; adginimgdiv.style.bottom = "0"; var inImgPlacment = document.querySelector(".big_center_img") || document.querySelector(".big-center-img"); if (inImgPlacment) { inImgPlacment.appendChild(adginimgdiv); } // Define and display the fallback ad in the new element googletag.cmd.push(function () { var adgslot = googletag.defineSlot("/1008496/popup-thats-cricket-out-of-page", [1, 1], "adgebraInImgAd").addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.display("adgebraInImgAd"); googletag.pubads().refresh([adgslot]); }); } function loadAdgInImgAdMobi() { var adginimgdiv = document.createElement("div"); adginimgdiv.id = "adgebraInImgAd"; adginimgdiv.style.minWidth = "320px"; adginimgdiv.style.minHeight = "50px"; adginimgdiv.style.position = "absolute"; adginimgdiv.style.bottom = "0"; var inImgPlacment = document.querySelector(".big-center-img") || document.querySelector(".big_center_img"); if (inImgPlacment) { inImgPlacment.appendChild(adginimgdiv); } // Define and display the fallback ad in the new element googletag.cmd.push(function () { var adgslot = googletag.defineSlot("/1008496/popup-thats-cricket-out-of-page", [1, 1], "adgebraInImgAd").addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.pubads().enableAsyncRendering(); googletag.enableServices(); googletag.display("adgebraInImgAd"); googletag.pubads().refresh([adgslot]); }); } var backfillWidgets = { voxWidget: function (idx, elem) { if (liteflag == 0) { console.log("adsense/vox", document.getElementById("oi-vox")); if (document.getElementById("oi-vox")) { var sspflag = 0; if (sspflag == 0) { console.log("adsense/vox", sspflag); if (typeof window._tx === "undefined") { var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; s.src = "https://st.hbrd.io/ssp.js?t=" + new Date().getTime(); (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(s); } window._tx = window._tx || {}; window._tx.cmds = window._tx.cmds || []; console.log("adsense/vox", window._tx, window._tx.cmds); window._tx.cmds.push(function () { window._tx.init({ onSuccessInImageLoad: function (data) { console.log("adsense/vox", "vox"); console.log("onSuccessInImageLoad", data); }, onFailInImageLoad: function (data) { console.log("adsense/vox", "addsense"); if (backfillorder == 2) { backfillWidgets.adsenseWidget(finalHtmlCss, 2, idx, elem); /*if (domainmiddle === 'oneindia') { if (/Mobi|Android/i.test(navigator.userAgent)) { backfillWidgets.adsenseWidget(finalHtmlCss,2,idx,elem); }else{ loadAdgInImgAd(); } }*/ } // console.log("onFailInImageLoad", data); }, }); }); } /* window.addEventListener( "scroll", function () { }, false ); */ } } }, adsenseWidget: function (dynamicHtmlCSs, flg, idx, elem) { console.log("adsense/vox", dynamicHtmlCSs, flg, idx, elem); var scriptElement = document.createElement("script"); scriptElement.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6601380052549923"; scriptElement.async = true; scriptElement.crossOrigin = "anonymous"; document.head.appendChild(scriptElement); var adsenseDiv = document.createElement("div"); adsenseDiv.id = "oiInImg"; adsenseDiv.classList.add("oiInImg"); adsenseDiv.innerHTML = dynamicHtmlCSs; elem.insertAdjacentElement("afterend", adsenseDiv); (adsbygoogle = window.adsbygoogle || []).push({}); var adsenseInt = setInterval(function () { var oiInImgElems = document.querySelectorAll(".oiInImg"); if (oiInImgElems.length > 0) { var oiInImgWrapperElems = document.querySelectorAll(".oiInImg ins"); oiInImgWrapperElems.forEach(function (wrapperElem) { var filledStatus = wrapperElem.getAttribute("data-ad-status"); if (filledStatus === "filled") { oiInImgElems.forEach(function (imgElem) { imgElem.style.display = "block"; }); var imgCloseBtnElem = document.querySelector("#img-close-btn"); imgCloseBtnElem.style.opacity = "1"; imgCloseBtnElem.addEventListener("click", function () { oiInImgElems.forEach(function (imgElem) { imgElem.innerHTML = ""; }); }); var imgCloseBtns = document.querySelectorAll(".img-close-btn"); imgCloseBtns.forEach(function (imgCloseBtn) { imgCloseBtn.style.opacity = "1"; imgCloseBtn.addEventListener("click", function () { oiInImgElems.forEach(function (imgElem) { imgElem.innerHTML = ""; }); }); }); clearInterval(adsenseInt); } else if (filledStatus === "unfilled") { oiInImgElems.forEach(function (imgElem) { imgElem.style.display = "none"; }); if (backfillorder == 1 && flg == 1) { backfillWidgets.voxWidget(idx, elem); } clearInterval(adsenseInt); } }); } }, 500); }, }; if (host.indexOf("bengali") > -1) { backfillorder = 2; } var voxloadflag = 0; var voxFlag = 1; var sspflagload = 0; var gccflag = 0; var gccflagin = 0; window.addEventListener("scroll", function () { if (sspflagload == 0) { sspflagload = 1; var con_code = ""; var city_code = ""; var gcccountryCodes = ["BH", "KW", "OM", "QA", "SA", "AE"]; var gcccountryCodesInd = ["IN"]; var countryInt; countryInt = setInterval(function () { if (document.body) { var gapiDetails = localStorage.getItem("userlocation"); if (gapiDetails) { clearInterval(countryInt); var tmpgapijson = JSON.stringify(gapiDetails); var jdata = gapiDetails; jdata = JSON.parse(jdata); con_code = jdata.country_code; city_code = jdata.city; if (gcccountryCodes.includes(con_code)) { //if(city_code=='Bhubaneswar'){ gccflag = 112345; //} } if (!gcccountryCodesInd.includes(con_code)) { gccflagin = 1; backfillorder = 1; } if (document.querySelector(".image_listical")) { var imageelem = document.querySelectorAll(".image_listical"); var imglen = imageelem.length; if (imglen > 1) { voxloadflag = 1; } if (imglen > 0) { for (let g = 0; g < imglen; g++) { if (g == 0) { imageelem[0].setAttribute("data-adgdisplay", false); if (backfillorder == 1 || backfillorder == 3) { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { console.log("adsense/vox", g, imglen); backfillWidgets.voxWidget(g, imageelem[g]); } } } else { if (g > 0) { if (domainmiddle == "boldsky" || domainmiddle == "goodreturns" || domainmiddle == "oneindia" || domainmiddle == "filmibeat") { if (g % 2 == 0) { imageelem[g].setAttribute("data-adgdisplay", false); if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { if (domainmiddle == "goodreturns") { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else { backfillWidgets.voxWidget(g, imageelem[g]); } } } } } else { if (g % 2 == 1) { imageelem[g].setAttribute("data-adgdisplay", false); if (backfillorder == 2 || backfillorder == 4) { if (gccflag == 1) { } else { if (domainmiddle == "goodreturns") { backfillWidgets.adsenseWidget(finalHtmlCss, 1, g, imageelem[0]); } else { backfillWidgets.voxWidget(g, imageelem[g]); } } } } } } } } } } } } }, 1000); setTimeout(function () { clearInterval(countryInt); }, 10000); } }); if (document.querySelector(".myimg")) { var imageelem = document.querySelectorAll(".myimg"); var imglen = imageelem.length; if (imglen > 0) { for (g = 0; g < imglen; g++) { if (g == 0) { imageelem[0].setAttribute("data-adgdisplay", false); if (backfillorder == 1) { backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } else if (backfillorder == 2) { backfillWidgets.voxWidget(g, imageelem[g]); } } else if (g == 2) { imageelem[2].setAttribute("data-adgdisplay", false); backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } else if (g == 4) { imageelem[2].setAttribute("data-adgdisplay", false); backfillWidgets.adsenseWidget(finalHtmlCss, 2, g, imageelem[g]); } } } } /*---------------------------------------VOX/Adsense Backfil Code Ends--------------------------------------------------------*/ /*---------------------------------------Adsense in are-slot-4----------------------------------------------------------------*/ function executeAdSenseOnScroll() { const targetDiv = document.getElementById("are-slot-5"); if (!targetDiv) { console.error("Ad container div not found"); return; } targetDiv.innerHTML = ""; // Clear the content first const adScript = document.createElement("script"); adScript.async = true; adScript.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6601380052549923"; adScript.setAttribute("crossorigin", "anonymous"); document.head.appendChild(adScript); const adIns = document.createElement("ins"); adIns.className = "adsbygoogle"; adIns.style.display = "block"; adIns.setAttribute("data-ad-client", "ca-pub-6601380052549923"); adIns.setAttribute("data-ad-slot", "3671027678"); adIns.setAttribute("data-ad-format", "auto"); adIns.setAttribute("data-full-width-responsive", "true"); targetDiv.appendChild(adIns); adScript.onload = function () { try { (adsbygoogle = window.adsbygoogle || []).push({}); } catch (e) { console.error("AdSense initialization error:", e); } }; } // Add scroll event listener to execute AdSense code /*if(domainmiddle=='filmibeat' || domainmiddle=='mykhel' || domainmiddle=='drivespark' || domainmiddle=='gizbot' || domainmiddle=='nativeplanet' || domainmiddle=='boldsky'){ if (/Mobi|Android/i.test(navigator.userAgent)) { var adsenseFlag=0; window.addEventListener('scroll', () => { var targetContainerId = 'are-slot-5'; const targetDiv = document.getElementById('are-slot-5'); if (targetDiv) { if(adsenseFlag==0){ adsenseFlag=1; if(targetContainerId=='are-slot-5'){ targetDiv.innerHTML=''; document.getElementById(targetContainerId).classList.remove('dynamic-slot'); loadAdScriptCommon(); (function(g,o){g[o]=g[o]||function(){(g[o]['q']=g[o]['q']||[]).push(arguments)},g[o]['t']=1*new Date})(window,'_googCsa'); afsAdCallCommon(targetContainerId); } } } }); } }*/ if ([].includes(window.location.hostname)) { if (googletag.apiReady) { googletag.cmd.push(function () { const key = "topic"; // full domain + path let newValue = window.location.hostname + window.location.pathname; // get last part of the pathname (slug or ID) let secondPathName = window.location.pathname.split("/").at(-1) || ""; // Try to extract numeric article ID let articleId = null; let match = secondPathName.match(/(\d+)(?=\.html$|$)/); if (match) { articleId = match[1]; } // ---- Helper: sanitize + trim slug ---- function safeSlug(str) { // remove extension like .html str = str.replace(/\.[^/.]+$/, ""); // keep only letters, numbers, dash, underscore, dot str = str.replace(/[^a-zA-Z0-9._-]/g, ""); // truncate to 40 chars (GAM limit) return str.substring(0, 40) || "na"; } // Fallback: generate safe truncated slug if no numeric ID if (!articleId) { articleId = safeSlug(secondPathName); } // clear any previous targeting googletag.pubads().clearTargeting("host"); googletag.pubads().clearTargeting("curl"); // set targeting googletag.setConfig({ targeting: { prpm: [articleId], // safe 40-char slug/ID [key]: [newValue], }, }); // log what’s being set const targeting = {}; googletag .pubads() .getTargetingKeys() .forEach((key) => { targeting[key] = googletag.pubads().getTargeting(key); }); console.log("Global targeting:", targeting); }); } } function dynamicPerformance(divid) { if (window.googletag && googletag.apiReady && typeof pbjs != "undefined") { var PREBID_TIMEOUT = 1200; var FAILSAFE_TIMEOUT = 3000; googletag.cmd.push(function () { googletag.pubads().disableInitialLoad(); }); var pbjsrss = pbjs || {}; pbjsrss.que = pbjs.que || []; var target_words_rss = []; var getUrlDetailsRss = { cleanArray: function (item) { var tempArr = []; for (var i = 0; i < item.length; i++) { if (item[i] !== undefined && item[i] != "") { tempArr.push(item[i]); } } return tempArr; }, createArrayFromUrl: function () { target_words_rss = target_words_rss.concat(window.location.hostname); var url_host = window.location.hostname.split("."); target_words_rss = target_words_rss.concat(url_host); var url_path = window.location.pathname.replace(".html", "").split("/"); target_words_rss = target_words_rss.concat(url_path); var pathArrLen = url_path.length; var subUrlPath = url_path[pathArrLen - 1].split("-"); target_words_rss = target_words_rss.concat(subUrlPath); if (["www.oneindia.com", "tamil.oneindia.com"].includes(window.location.hostname)) { let urlWithoutHttps = window.location.href.replace("https://", ""); target_words_rss = target_words_rss.concat(urlWithoutHttps); } console.log("target_words_rss_1", target_words_rss); target_words_rss = getUrlDetailsRss.cleanArray(target_words_rss); console.log("target_words_rss_2", target_words_rss); }, }; getUrlDetailsRss.createArrayFromUrl(); try { googletag.cmd.push(function () { slot[850] = googletag.defineSlot("/1008496/Performance", [[300, 250], [336, 280], [320, 480], [320, 250], [320, 50], "fluid", [320, 100]], divid).addService(googletag.pubads()); googletag.pubads().setTargeting("host", window.location.hostname); googletag.pubads().setTargeting("curl", window.location.href); googletag.pubads().setTargeting("topic", target_words_rss); if (domainmiddle == "oneindia") { if (langParam == "or") { googletag.pubads().setTargeting("domain", "www.oneindia.com"); } else { googletag.pubads().setTargeting("domain", window.location.hostname); } } else if (domainmiddle == "goodreturns") { var domHost = domainmiddle + ".in"; googletag.pubads().setTargeting("domain", domHost); } else { var domHost = domainmiddle + ".com"; googletag.pubads().setTargeting("domain", domHost); } googletag.pubads().setTargeting("lang", langParam); googletag.pubads().enableSingleRequest(); googletag.enableServices(); googletag.display(divid); googletag.pubads().refresh([slot[850]]); }); } catch (err) { console.log("Home Page Ad : " + err); } } } /* if (domainmiddle == "filmibeat" || domainmiddle == "mykhel" || domainmiddle == "drivespark" || domainmiddle == "gizbot" || domainmiddle == "nativeplanet" || domainmiddle == "boldsky") { if (/Mobi|Android/i.test(navigator.userAgent)) { var adsenseFlag=0; window.addEventListener('scroll', () => { var targetContainerId = 'are-slot-5'; const targetDiv = document.getElementById('are-slot-5'); if (targetDiv) { if(adsenseFlag==0){ adsenseFlag=1; targetDiv.classList.remove('dynamic-slot'); dynamicPerformance('are-slot-5'); } } }); } } */ /*---------------------------------------Adsense in are-slot-4----------------------------------------------------------------*/ -->
We use cookies to ensure that we give you the best experience on our website. This includes cookies from third party social media websites and ad networks. Such third party cookies may track your use on Oneindia sites for better rendering. Our partners use cookies to ensure we show you advertising that is relevant to you. If you continue without changing your settings, we'll assume that you are happy to receive all cookies on Oneindia website. However, you can change your cookie settings at any time. Learn more