لا تتطلّب إضافة موقّت للعد التنازلي إلى مشغّل الفيديو المزوّد بواجهة IMA سوى
إضافة بضعة أسطر من JavaScript لاستطلاع سمة remainingTime
لمثيل AdsManager. نستخدم طريقة setInterval() لمحاولة تنفيذ دالة كل ثانية للتحقّق من adsManager.remainingTime.
تاريخ التعديل الأخير: 2025-07-14 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This guide explains how to add a countdown timer to an HTML5 IMA SDK implementation for video ads."],["The recommended approach is to use the built-in HTML5 IMA SDK countdown timer; however, this guide provides custom implementation steps if needed."],["The custom implementation involves polling the `remainingTime` property of the `AdsManager` and updating the UI accordingly."],["A working implementation example is provided via a CodePen link for reference and testing."]]],[]]