فيروس كورونا : ترقب بخصوص إعادة تصنيف مدن من “المنطقة 1” ووضعها في “المنطقة 2”.

1 دقائق (معدل القراءة)

أكادير24 | Agadir24 فيروس كورونا : ترقب بخصوص إعادة تصنيف المدن يسود ترقب بخصوص إعادة تصنيف مدن من "المنطقة 1" ووضعها في "المنطقة 2"، ابتداء من نهاية الأسبوع الجاري، عقب تطور الوضع الوبائي فيها ببروز إصابات بفيروس "كوفيد-19".

و ذكرت الأحداث المغربية، بأنه من المنتظر أن يرجع سكان هذه الأرجاء، إذا تم إلحاقهم بثاني مناطق تخفيف الحجر الصحي، إلى استعمال رخص التنقل الاستثنائية من أجل مغادرة منازلهم عند الضرورة القصوى، كما ستعود القيود على الأنشطة المهنية.

(function () { console.clear();console.log("%cAG24 AdSense / Ad Inserter Diagnostic", "font-size:16px;font-weight:bold;color:#0b6bcb");const scripts = [...document.scripts].filter(s => (s.src && s.src.includes("pagead2.googlesyndication.com/pagead/js/adsbygoogle.js")) || (s.src && s.src.includes("adsbygoogle.js")) );console.log("1) AdSense script found:", scripts.length > 0 ? "YES ✅" : "NO ❌"); scripts.forEach((s, i) => console.log(` Script ${i + 1}:`, s.src));const ads = [...document.querySelectorAll("ins.adsbygoogle")];console.log("2) AdSense ad units found:", ads.length);if (!ads.length) { console.warn("لم يتم العثور على أي وحدة إعلان ins.adsbygoogle داخل الصفحة. هذا يعني غالباً أن Ad Inserter لم يحقن الإعلان، أو أن الإعلان محذوف/مؤجل/محجوب."); return; }ads.forEach((ad, index) => { const rect = ad.getBoundingClientRect(); const style = window.getComputedStyle(ad); const parent = ad.parentElement; const parentRect = parent ? parent.getBoundingClientRect() : null;const dataAdClient = ad.getAttribute("data-ad-client"); const dataAdSlot = ad.getAttribute("data-ad-slot"); const adStatus = ad.getAttribute("data-ad-status"); const adFormat = ad.getAttribute("data-ad-format"); const fullWidth = ad.getAttribute("data-full-width-responsive");const result = { unit: index + 1, client: dataAdClient || "غير موجود", slot: dataAdSlot || "غير موجود", status: adStatus || "غير محدد بعد", format: adFormat || "غير محدد", fullWidthResponsive: fullWidth || "غير محدد", display: style.display, visibility: style.visibility, width: Math.round(rect.width), height: Math.round(rect.height), parentWidth: parentRect ? Math.round(parentRect.width) : "لا يوجد", parentHeight: parentRect ? Math.round(parentRect.height) : "لا يوجد" };console.group(`Ad Unit #${index + 1}`); console.table(result);if (rect.width === 0) { console.error("❌ المشكلة: عرض الإعلان = 0. هذا يفسر خطأ: No slot size for availableWidth=0"); } else if (rect.height === 0) { console.warn("⚠️ المكان له عرض لكن الارتفاع = 0. قد يكون الإعلان لم يُملأ أو CSS يمنع ظهوره."); } else { console.log("✅ المكان محجوز فعلاً داخل الصفحة وله أبعاد ظاهرة."); }if (adStatus === "filled") { console.log("✅ AdSense يعتبر هذه الوحدة مملوءة: data-ad-status='filled'"); } else if (adStatus === "unfilled") { console.warn("⚠️ AdSense يعتبر هذه الوحدة غير مملوءة: data-ad-status='unfilled'"); } else { console.warn("ℹ️ لم يظهر بعد data-ad-status. قد يكون الإعلان لم يكتمل تحميله أو لم يتم استدعاء adsbygoogle.push."); }const iframe = ad.querySelector("iframe"); if (iframe) { const iframeRect = iframe.getBoundingClientRect(); console.log("Iframe found ✅", { width: Math.round(iframeRect.width), height: Math.round(iframeRect.height), src: iframe.src || "بدون src ظاهر" }); } else { console.warn("لا يوجد iframe داخل هذه الوحدة حالياً."); }console.groupEnd(); });const hiddenParents = ads.filter(ad => { let el = ad; while (el && el !== document.body) { const st = window.getComputedStyle(el); const r = el.getBoundingClientRect(); if (st.display === "none" || st.visibility === "hidden" || r.width === 0) { return true; } el = el.parentElement; } return false; });console.log("3) Units inside hidden/zero-width containers:", hiddenParents.length);if (hiddenParents.length > 0) { console.error("بعض الإعلانات داخل عناصر مخفية أو عرضها 0. غالباً هذا سبب خطأ availableWidth=0."); }console.log("%cانتهى الفحص.", "font-weight:bold;color:green"); })();

تنبيه تحريري

تندرج هذه المادة ضمن أرشيف أكادير24، وتمت مراجعتها تحريريا للحفاظ على وضوحها وسهولة الوصول إليها، مع الإبقاء على تاريخ النشر الأصلي والرابط والعنوان كما وردت في الأرشيف. ولم تتم إضافة وقائع أو تصريحات جديدة غير مؤكدة.

شارك هذا المقال
لا توجد تعليقات

اترك تعليقاً

لن يتم نشر عنوان بريدك الإلكتروني. الحقول الإلزامية مشار إليها بـ *

هذا الموقع يستخدم خدمة أكيسميت للتقليل من البريد المزعجة. اعرف المزيد عن كيفية التعامل مع بيانات التعليقات الخاصة بك processed.