Skip to content

Instantly share code, notes, and snippets.

View harryward's full-sized avatar

Harry Ward harryward

View GitHub Profile
@harryward
harryward / pushdown with vid
Created July 25, 2013 15:48
pushdown with vid
<script id="js_BPH50D"> var _tsmAd = _tsmAd || {};
_tsmAd.BPH50D = {
"target":"after--pushdown",
"width":"1020",
"height":"76",
"img":"https://tsm-creative-services.s3.amazonaws.com/Creative%20Specs/23678-1020x76-1.jpg",
"url":"http://www.maine-lyeldercare.com/",
"gaid":"",
"igniteid":"",
"pixel":"",
@harryward
harryward / chile project api call with dynamic url button
Created August 6, 2013 00:25
chile project api call with dynamic url button
$.ajax({
type: 'GET',
url: 'https://ads.townsquaredigital.com/projects/rfp-request/issues.json?key=b0a4591ad5ccef4fb4cceed89161cacac268f450&query_id=266',
success: function(data) { result = data; },
@harryward
harryward / thelab_chileproject_api_v1.2
Last active December 20, 2015 16:48
this code is golden
$(document).ready(function(){$.ajax({
type: 'GET',
url: 'https://ads.townsquaredigital.com/projects/rfp-request/issues.json?key=b0a4591ad5ccef4fb4cceed89161cacac268f450&query_id=261', // query id from chili project determines results
success: function(data) { result = data;
var html = new Array(), i;
for (i = result["issues"].length - 1; i >= 0; i--) {
var myid = result["issues"][i]["id"];
for (var c = result["issues"][i]["custom_fields"].length - 1; c >= 0; c--) {
if (result["issues"][i]["custom_fields"][c]["name"]==="concept")var concept= result["issues"][i]["custom_fields"][c]["value"];
@harryward
harryward / chili api
Created August 6, 2013 21:40
chili api
$.ajax({
type: 'GET',
url: 'https://ads.townsquaredigital.com/projects/rfp-request/issues.json?key=b0a4591ad5ccef4fb4cceed89161cacac268f450&query_id=267', // query id from chili project determines results
success: function(data) { result = data;
var html = new Array(), i;
for (i = result["issues"].length - 1; i >= 0; i--) {
var myid = result["issues"][i]["id"];
for (var c = result["issues"][i]["custom_fields"].length - 1; c >= 0; c--) {
if (result["issues"][i]["custom_fields"][c]["name"]==="concept_url")
var concept= result["issues"][i]["custom_fields"][c]["value"];
@harryward
harryward / TS_VIDEO_TILE_JSHORE
Created August 9, 2013 14:47
Video Tile Ad to Test Out
<script>var _tsmW=window.top, _tsmD=_tsmW.document;
_tsmW._tsmAd=_tsmW._tsmAd||{}; _tsmW._tsmAd.VD85={
"target":"first--.google-ads-widget",
"width":"300",
"height":"250",
"img":"http://f.cl.ly/items/1E093V181C0J1d140F3S/_tile.jpg",
"url":"http://mistersparkyelectricsj.com/",
"gaid":"",
"igniteid":"",
"pixel":"",
@harryward
harryward / Jimmys Pizza and Subs Jersey Video Tile
Created August 20, 2013 21:20
Jimmys Pizza and Subs Jersey Video Tile
<script>var _tsmW=window.top, _tsmD=_tsmW.document;
_tsmW._tsmAd=_tsmW._tsmAd||{}; _tsmW._tsmAd.MXV82={
"target":"first--.google-ads-widget",
"width":"300",
"height":"250",
"img":"",
"url":"http://jimmyspizzasubs.com/",
"gaid":"",
"igniteid":"",
"pixel":"",
<script>var _tsmW=window.top, _tsmD=_tsmW.document;
_tsmW._tsmAd=_tsmW._tsmAd||{}; _tsmW._tsmAd.VD85={
"target":"first--.google-ads-widget",
"width":"300",
"height":"250",
"img":"http://f.cl.ly/items/1E093V181C0J1d140F3S/_tile.jpg",
"url":"http://electricianventnornj.com/",
"gaid":"",
"igniteid":"",
"pixel":"",
@harryward
harryward / jimmys pizza, subs jersey shore tile code
Last active December 21, 2015 10:49
just change the OS id
<script>var _tsmW=window.top, _tsmD=_tsmW.document;
_tsmW._tsmAd=_tsmW._tsmAd||{}; _tsmW._tsmAd.BVRTX1={
"target":"first--.google-ads-widget",
"width":"300",
"height":"250",
"img":"http://production.townsquaresites.com/wp-content/uploads/2013/01/amc-freakshow-300x250-v2-pre.jpg",
"url":"http://jimmyspizzasubs.com/",
"gaid":"",
"igniteid":"",
"pixel":"",
@harryward
harryward / trinity solar video pushdown
Created August 23, 2013 03:16
trinity solar video pushdown
<script id="js_T0H7"> var _tsmAd = _tsmAd || {};
_tsmAd.T0H7 = {
"target":"before--content",
"adwidth":"1020",
"adheight":"76",
"expheight":"380",
"bgcolor":"333333",
"autoplay":"12",
"buttoncolor":"",
"clickthru":"",
@harryward
harryward / pushdown with video demo - chevy
Created August 23, 2013 14:32
pushdown with video demo - chevy
<script>var _tsmW=window.top, _tsmD=_tsmW.document;
_tsmW._tsmAd=_tsmW._tsmAd||{}; _tsmW._tsmAd.Y7922R={
"target":"before--#content",
"width":"1020",
"height":"76",
"img":"http://production.townsquaresites.com/wp-content/uploads/2013/01/PUSHDOWN_CHEVY_NON",
"url":"http://popcrush.com/",
"gaid":"1234",
"igniteid":"5678",
"pixel":"",