Możliwe błędy konsoli
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Wszystkie wiadomości drukowane na konsoli będą miały prefiks [Ad Placement API]
:
PreloadAdBreaks możesz skonfigurować tylko raz:
- Element
adConfig()
został już wywołany, by ustawić wartość preloadAdBreaks
z wartością <VALUE>
Próbowano wywołać funkcję adBreak()
, podczas gdy inne wywołanie do adBreak()
jest nadal w toku (upewnić się, że nie wywołujesz reklam z innych instancji roboczych i że nie wywołujesz adBreak()
z funkcji wywołania zwrotnego):
Cannot show ad while another ad is already visible.
Błędy występujące podczas wykonywania podanego wywołania zwrotnego:
<CALLBACK NAME> callback threw an error: <ERROR>
Błędy w parametrach tagowania:
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()
błędu weryfikacji argumentu:
Invalid ad config: <ERROR>.
Gdzie <ERROR>
może być:
preloadAdBreaks must be one of ['auto', 'on']
sound must be one of ['on', 'off']
onReady
musi być funkcją
adBreak()
błędu weryfikacji argumentu:
Invalid placement config: <ERROR>
. Gdzie <ERROR>
może być:
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>
Zmienione nazwy wywołań zwrotnych w polach adBreak()
(beforeBreak
, afterBreak
i adComplete
) zostały zmienione na beforeAd
, afterAd
i adViewed
. Nadal działają dokładnie tak samo:
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.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-08-16 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2022-08-16 UTC."],[[["The Ad Placement API uses the prefix `[Ad Placement API]` for all console messages and allows preloading ad breaks only once using `adConfig()`."],["Developers should avoid calling `adBreak()` while another ad is displaying and ensure proper tagging parameters like `data-ad-frequency-hint` and `data-adbreak-test`."],["`adConfig()` and `adBreak()` require specific arguments, including callbacks, and will generate errors if invalid values are provided."],["Callbacks in `adBreak()` have been renamed (`beforeBreak` to `beforeAd`, `afterBreak` to `afterAd`, and `adComplete` to `adViewed`) and using the old names will result in errors."],["The API provides detailed error messages for troubleshooting, including specific reasons for failures and invalid configurations."]]],[]]