This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Store ad tags in localStorage to enable reporting bad ads | |
// TODO: This doesn't work if multiple ads are shown in one placement with googletag.pubads().refresh() | |
googletag.pubads().addEventListener('slotRenderEnded', function (event) { | |
if (typeof(localStorage) !== 'object') console.log('fail'); | |
if (event.slot.getResponseInformation() === null) return; | |
var slotAdUnitPath = event.slot.getAdUnitPath(); | |
gpt_placements[slotAdUnitPath] = {}; | |
gpt_placements[slotAdUnitPath]['dfp'] = event.slot.getResponseInformation(); | |
gpt_placements[slotAdUnitPath]['dfp']['contentUrl'] = event.slot.getContentUrl(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
agent: | |
image: portainer/agent | |
environment: | |
# REQUIRED: Should be equal to the service name prefixed by "tasks." when | |
# deployed inside an overlay network | |
AGENT_CLUSTER_ADDR: tasks.agent | |
# AGENT_PORT: 9001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:) CREATE TABLE test.nested (EventDate Date, UserID UInt64, Attrs Nested(Key String, Value String)) ENGINE = MergeTree(EventDate, UserID, 8192) | |
CREATE TABLE test.nested | |
( | |
EventDate Date, | |
UserID UInt64, | |
Attrs Nested( | |
Key String, | |
Value String) | |
) ENGINE = MergeTree(EventDate, UserID, 8192) |