考えられるコンソール エラー
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コンソールに出力されるすべてのメッセージには、先頭に [Ad Placement API]
が付きます。
preloadAdBreaks を設定できるのは 1 回のみです。
adConfig()
は、値 <VALUE>
で preloadAdBreaks
を設定するためにすでに呼び出されています。
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.
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-22 UTC。
[[["わかりやすい","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"]],["最終更新日 2024-11-22 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."]]],[]]