Tất cả thông báo được in trên bảng điều khiển sẽ có tiền tố [Ad Placement API]
:
Bạn chỉ có thể đặt trước{/5}Breaks một lần:
adConfig()
đã được gọi để đặtpreloadAdBreaks
với giá trị<VALUE>
Đã cố gắng gọi adBreak()
trong khi một lệnh gọi khác đến adBreak()
vẫn đang diễn ra
(đảm bảo rằng bạn không kích hoạt quảng cáo của các trình chạy khác và bạn không
gọi adBreak()
từ trong hàm callback):
Cannot show ad while another ad is already visible.
Lỗi khi thực thi bất kỳ lệnh gọi lại nào bạn đã cung cấp:
<CALLBACK NAME> callback threw an error: <ERROR>
Lỗi trong thông số gắn thẻ:
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'.
Lỗi xác thực đối số adConfig()
:
Invalid ad config: <ERROR>.
<ERROR>
có thể là:preloadAdBreaks must be one of ['auto', 'on']
sound must be one of ['on', 'off']
onReady
phải là một hàm
Lỗi xác thực đối số adBreak()
:
Invalid placement config: <ERROR>
.<ERROR>
có thể là: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>
Đổi tên các lệnh gọi lại trong adBreak()
(beforeBreak
, afterBreak
và adComplete
lần lượt được đổi tên thành beforeAd
, afterAd
và adViewed
). Các API này
vẫn hoạt động giống như vậy:
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.