Possibili errori della console

Tutti i messaggi stampati nella console avranno il prefisso [Ad Placement API]:

Puoi impostare preloadAdBreaks solo una volta:

  • adConfig() è già stato chiamato per impostare preloadAdBreaks con valore <VALUE>

Ho provato a chiamare adBreak() mentre era ancora in corso un'altra chiamata a adBreak() (assicurati di non attivare annunci di altri worker e di non chiamare adBreak() da una funzione di callback):

  • Cannot show ad while another ad is already visible.

Errori durante l'esecuzione di un callback fornito:

  • <CALLBACK NAME> callback threw an error: <ERROR>

Errori nei parametri di tagging:

  • 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() errori di convalida degli argomenti:

  • Invalid ad config: <ERROR>. Dove <ERROR> può essere:
    • preloadAdBreaks must be one of ['auto', 'on']
    • sound must be one of ['on', 'off']
    • onReady deve essere una funzione

adBreak() errori di convalida degli argomenti:

  • Invalid placement config: <ERROR>. La posizione di <ERROR> può essere:
    • 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 callback rinominati in adBreak() (beforeBreak, afterBreak e adComplete sono stati rinominati rispettivamente in beforeAd, afterAd e adViewed. Funzionano esattamente allo stesso modo:

  • 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.