Skip to content

Instantly share code, notes, and snippets.

const aws = require('aws-sdk')
const express = require('express')
const bodyParser = require('body-parser')
const config = require('./lib/config')
// API Gateway
const apiLambdas = [
{name: 'GetListOfUsers', endpoint: '/users', handler: require('./users-lambda').handler},
]
@rafenden
rafenden / bookmarklet.js
Last active October 13, 2017 11:10
Show targeting (key-values) of DFP adverts
var slots = googletag.pubads().getSlots();
var slotsOutput = {};
slots.forEach(function(slot) {
slotsOutput[slot.getSlotElementId()] = getSlotTargeting(slot);
});
function getSlotTargeting(slot) {
var url = slot.getContentUrl();
var parser = document.createElement('a');