Debug mode
There is the possibility to view all events that appeared in ATF SDK. These events might be useful for detection if something is misconfigured or in order to review the configuration. By default ATF SDK will log all error messages without a debug mode. If you wish to see all events that occurred in the SDK a debug mode needs to be enabled.
In order to enable the debug mode a atf_debug=true parameter needs to be passed to url e.g https://example.com?atf_debug=true
Once the debug parameter is passed, ATF SDK will log all events in the developer console. Following list shows only events which indicates that something has been misconfigured.
Message | Description |
found invalid ATF TAG | It appears whenever there is <atf-ad-slot> tag with missing attributes or with invalid attributes |
found invalid size in ATF TAG | It appears when the size attribute received an invalid size. |
missing configuration for partner name | It appears when something is misconfigured on PPTM side. This error can be fixed with ATF assistance |
List of events that indicates non-error events in ATF SDK:
Message | Description |
excluding bidders | It appears whenever there is bidder available for exclusion. This can be configured with ATF assistance. |
found ATF TAG | It appears whenever there is valid <atf-ad-slot> tag on page. |
setting ad server targeting | It indicates that auction process is conducted and ATF SDK is setting key values for ad request using prebid |
setting custom targeting | It appears if there is custom targeting passed via Data Layer. |
found size excludes | It indicates that a size exclusion has been found and will be applied in the size mapping process. This can be configured with ATF assistance |
custom ad slot displayed | It indicates that <atf-ad-slot> tag has been processed and is being displayed on site. |
ad slot displayed | It appears whenever ad slot is defined using GPT |
ad unit mapped | It appears whenever ad slot has been mapped into prebid ad unit configuration |
In order to enable test creatives atf_url_targeting&atf=previewDisplay parameter needs to be passed to url e.g: https://example.com?atf_url_targeting&atf=previewDisplay