সম্ভাব্য কনসোল ত্রুটি
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
কনসোলে প্রিন্ট করা সমস্ত বার্তার উপসর্গ থাকবে [Ad Placement API]
:
আপনি শুধুমাত্র একবার preloadAdBreaks সেট করতে পারেন:
-
adConfig()
আগে থেকেই <VALUE>
মান সহ preloadAdBreaks
সেট করতে কল করা হয়েছিল৷
adBreak() কে কল করার চেষ্টা করা হয়েছে যখন adBreak()
adBreak()
এ আরেকটি কল প্রক্রিয়াধীন ছিল (নিশ্চিত করুন যে আপনি অন্য কর্মীদের থেকে বিজ্ঞাপন ট্রিগার করছেন না এবং আপনি একটি কলব্যাক ফাংশনের মধ্যে থেকে adBreak()
কল করছেন না):
-
Cannot show ad while another ad is already visible.
আপনার দেওয়া যেকোনো কলব্যাক কার্যকর করার সময় ব্যর্থতা:
-
<CALLBACK NAME> callback threw an error: <ERROR>
ট্যাগিং প্যারামিটারে ত্রুটি:
-
Invalid data-ad-frequency-hint value: '<VALUE>'. It must be in format 'Xs' where X is a number.
-
Unsupported data-adbreak-test value '<VALUE>'. Supported values: 'on'.
adConfig()
যুক্তি যাচাইকরণ ত্রুটি:
-
Invalid ad config: <ERROR>.
যেখানে <ERROR>
হতে পারে:-
preloadAdBreaks must be one of ['auto', 'on']
-
sound must be one of ['on', 'off']
-
onReady
একটি ফাংশন হতে হবে
adBreak()
যুক্তি যাচাইকরণ ত্রুটি:
-
Invalid placement config: <ERROR>
। যেখানে <ERROR>
হতে পারে:-
missing required properties <LIST OF PROPERTIES>
-
<CALLBACK NAME> must be a function
-
<PROPERTY NAME> must be one of <LIST OF VALID VALUES>
-
the following properties are not used for the given ad type: <LIST OF PROPERTIES>
adBreak()
এ কলব্যাকের নামকরণ করা হয়েছে ( beforeBreak
, afterBreak
, এবং adComplete
যথাক্রমে beforeAd
, afterAd
এবং adViewed
নামকরণ করা হয়েছে৷ তারা এখনও ঠিক একইভাবে কাজ করে):
-
Placement config: <OLD> has been renamed to <NEW>. Please update your code.
-
Invalid placement config: <OLD> has been renamed to <NEW>. Cannot pass both fields. Please use <NEW> only.
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Ad Placement API uses the prefix \u003ccode\u003e[Ad Placement API]\u003c/code\u003e for all console messages and allows preloading ad breaks only once using \u003ccode\u003eadConfig()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should avoid calling \u003ccode\u003eadBreak()\u003c/code\u003e while another ad is displaying and ensure proper tagging parameters like \u003ccode\u003edata-ad-frequency-hint\u003c/code\u003e and \u003ccode\u003edata-adbreak-test\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eadConfig()\u003c/code\u003e and \u003ccode\u003eadBreak()\u003c/code\u003e require specific arguments, including callbacks, and will generate errors if invalid values are provided.\u003c/p\u003e\n"],["\u003cp\u003eCallbacks in \u003ccode\u003eadBreak()\u003c/code\u003e have been renamed (\u003ccode\u003ebeforeBreak\u003c/code\u003e to \u003ccode\u003ebeforeAd\u003c/code\u003e, \u003ccode\u003eafterBreak\u003c/code\u003e to \u003ccode\u003eafterAd\u003c/code\u003e, and \u003ccode\u003eadComplete\u003c/code\u003e to \u003ccode\u003eadViewed\u003c/code\u003e) and using the old names will result in errors.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides detailed error messages for troubleshooting, including specific reasons for failures and invalid configurations.\u003c/p\u003e\n"]]],[],null,["# Possible console errors\n\nAll messages printed to the console will have the prefix `[Ad Placement API]`:\n\nYou can only set preloadAdBreaks once:\n\n- `adConfig()` was already called to set `preloadAdBreaks` with value `\u003cVALUE\u003e`\n\nTried to call `adBreak()` while another call to `adBreak()` was still in process\n(ensure that you are not triggering ads from other workers, and that you are not\ncalling `adBreak()` from within a callback function):\n\n- `Cannot show ad while another ad is already visible.`\n\nFailures when executing any callback you have provided:\n\n- `\u003cCALLBACK NAME\u003e callback threw an error: \u003cERROR\u003e`\n\nErrors in tagging parameters:\n\n- `Invalid data-ad-frequency-hint value: '\u003cVALUE\u003e'. It must be in format 'Xs'\n where X is a number.`\n- `Unsupported data-adbreak-test value '\u003cVALUE\u003e'. Supported values: 'on'.`\n\n`adConfig()` argument validation errors:\n\n- `Invalid ad config: \u003cERROR\u003e.` Where `\u003cERROR\u003e` can be:\n - `preloadAdBreaks must be one of ['auto', 'on']`\n - `sound must be one of ['on', 'off']`\n - `onReady` must be a function\n\n`adBreak()` argument validation errors:\n\n- `Invalid placement config: \u003cERROR\u003e`. Where `\u003cERROR\u003e` can be:\n - `missing required properties \u003cLIST OF PROPERTIES\u003e`\n - `\u003cCALLBACK NAME\u003e must be a function`\n - `\u003cPROPERTY NAME\u003e must be one of \u003cLIST OF VALID VALUES\u003e`\n - `the following properties are not used for the given ad type:\n \u003cLIST OF PROPERTIES\u003e`\n\nRenamed callbacks in `adBreak()` (`beforeBreak`, `afterBreak`, and `adComplete`\nhave been renamed to `beforeAd`, `afterAd` and `adViewed` respectively. They\nstill function in exactly the same way):\n\n- `Placement config: \u003cOLD\u003e has been renamed to \u003cNEW\u003e. Please update your code.`\n- `Invalid placement config: \u003cOLD\u003e has been renamed to \u003cNEW\u003e. Cannot pass both\n fields. Please use \u003cNEW\u003e only.`"]]