{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/69995315","id":69995315,"diff_hunk":"@@ -0,0 +1,69 @@\n+/**\n+ * Copyright 2015 The AMP HTML Authors. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS-IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+import {writeScript, loadScript, checkData} from '../3p/3p';\n+import {doubleclick} from '../ads/google/doubleclick';\n+\n+/**\n+ * @param {!Window} global\n+ * @param {!Object} data\n+ */\n+export function pulsepoint(global, data) {\n+  checkData(data, [\n+    'pid', 'tagid', 'tagtype', 'slot', 'timeout'\n+  ]);\n+  if (data.tagtype === 'hb') {\n+    headerBidding(global, data);\n+  } else {\n+    tag(global, data);\n+  }\n+}\n+\n+/**\n+ * @param {!Window} global\n+ * @param {!Object} data\n+ */\n+function tag(global, data) {\n+  writeScript(global, 'https://tag.contextweb.com/getjs.aspx?action=VIEWAD&cwpid=' + data.pid + '&cwtagid=' + data.tagid + '&cwadformat=' + data.width + 'X' + data.height); \n+}\n+\n+/**\n+ * @param {!Window} global\n+ * @param {!Object} data\n+ */\n+function headerBidding(global, data) {\n+  loadScript(global, 'https://ads.contextweb.com/ht.js', () => {","path":"ads/pulsepoint.js","position":48,"original_position":48,"commit_id":"f9c87a8213700593d73faae596c147be03d473d8","original_commit_id":"cba1bc7614765f00ea75ee325b2a64d1fc8c585d","user":{"login":"anand-venkatraman","id":14841736,"avatar_url":"https://avatars.githubusercontent.com/u/14841736?v=3","gravatar_id":"","url":"https://api.github.com/users/anand-venkatraman","html_url":"https://github.com/anand-venkatraman","followers_url":"https://api.github.com/users/anand-venkatraman/followers","following_url":"https://api.github.com/users/anand-venkatraman/following{/other_user}","gists_url":"https://api.github.com/users/anand-venkatraman/gists{/gist_id}","starred_url":"https://api.github.com/users/anand-venkatraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anand-venkatraman/subscriptions","organizations_url":"https://api.github.com/users/anand-venkatraman/orgs","repos_url":"https://api.github.com/users/anand-venkatraman/repos","events_url":"https://api.github.com/users/anand-venkatraman/events{/privacy}","received_events_url":"https://api.github.com/users/anand-venkatraman/received_events","type":"User","site_admin":false},"body":"Once per page would be good, but since each ad is loaded into its own ```iframe```, not sure how to achieve this.","created_at":"2016-07-07T21:58:13Z","updated_at":"2016-07-07T21:58:13Z","html_url":"https://github.com/ampproject/amphtml/pull/3919#discussion_r69995315","pull_request_url":"https://api.github.com/repos/ampproject/amphtml/pulls/3919","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/69995315"},"html":{"href":"https://github.com/ampproject/amphtml/pull/3919#discussion_r69995315"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/3919"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/3919","id":76295959,"html_url":"https://github.com/ampproject/amphtml/pull/3919","diff_url":"https://github.com/ampproject/amphtml/pull/3919.diff","patch_url":"https://github.com/ampproject/amphtml/pull/3919.patch","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/3919","number":3919,"state":"open","locked":false,"title":"PulsePoint adapter for AMP.","user":{"login":"anand-venkatraman","id":14841736,"avatar_url":"https://avatars.githubusercontent.com/u/14841736?v=3","gravatar_id":"","url":"https://api.github.com/users/anand-venkatraman","html_url":"https://github.com/anand-venkatraman","followers_url":"https://api.github.com/users/anand-venkatraman/followers","following_url":"https://api.github.com/users/anand-venkatraman/following{/other_user}","gists_url":"https://api.github.com/users/anand-venkatraman/gists{/gist_id}","starred_url":"https://api.github.com/users/anand-venkatraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anand-venkatraman/subscriptions","organizations_url":"https://api.github.com/users/anand-venkatraman/orgs","repos_url":"https://api.github.com/users/anand-venkatraman/repos","events_url":"https://api.github.com/users/anand-venkatraman/events{/privacy}","received_events_url":"https://api.github.com/users/anand-venkatraman/received_events","type":"User","site_admin":false},"body":"Please review PulsePoint (http://pulsepoint.com) adapter for AMP.","created_at":"2016-07-05T15:39:42Z","updated_at":"2016-07-07T21:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8989bfce95fec5bc7c2161d558ed75d132eca64a","assignee":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"assignees":[{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amphtml/pulls/3919/commits","review_comments_url":"https://api.github.com/repos/ampproject/amphtml/pulls/3919/comments","review_comment_url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/3919/comments","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/f9c87a8213700593d73faae596c147be03d473d8","head":{"label":"pulsepointinc:master","ref":"master","sha":"f9c87a8213700593d73faae596c147be03d473d8","user":{"login":"pulsepointinc","id":5683820,"avatar_url":"https://avatars.githubusercontent.com/u/5683820?v=3","gravatar_id":"","url":"https://api.github.com/users/pulsepointinc","html_url":"https://github.com/pulsepointinc","followers_url":"https://api.github.com/users/pulsepointinc/followers","following_url":"https://api.github.com/users/pulsepointinc/following{/other_user}","gists_url":"https://api.github.com/users/pulsepointinc/gists{/gist_id}","starred_url":"https://api.github.com/users/pulsepointinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulsepointinc/subscriptions","organizations_url":"https://api.github.com/users/pulsepointinc/orgs","repos_url":"https://api.github.com/users/pulsepointinc/repos","events_url":"https://api.github.com/users/pulsepointinc/events{/privacy}","received_events_url":"https://api.github.com/users/pulsepointinc/received_events","type":"Organization","site_admin":false},"repo":{"id":61734561,"name":"amphtml","full_name":"pulsepointinc/amphtml","owner":{"login":"pulsepointinc","id":5683820,"avatar_url":"https://avatars.githubusercontent.com/u/5683820?v=3","gravatar_id":"","url":"https://api.github.com/users/pulsepointinc","html_url":"https://github.com/pulsepointinc","followers_url":"https://api.github.com/users/pulsepointinc/followers","following_url":"https://api.github.com/users/pulsepointinc/following{/other_user}","gists_url":"https://api.github.com/users/pulsepointinc/gists{/gist_id}","starred_url":"https://api.github.com/users/pulsepointinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulsepointinc/subscriptions","organizations_url":"https://api.github.com/users/pulsepointinc/orgs","repos_url":"https://api.github.com/users/pulsepointinc/repos","events_url":"https://api.github.com/users/pulsepointinc/events{/privacy}","received_events_url":"https://api.github.com/users/pulsepointinc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulsepointinc/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":true,"url":"https://api.github.com/repos/pulsepointinc/amphtml","forks_url":"https://api.github.com/repos/pulsepointinc/amphtml/forks","keys_url":"https://api.github.com/repos/pulsepointinc/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulsepointinc/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulsepointinc/amphtml/teams","hooks_url":"https://api.github.com/repos/pulsepointinc/amphtml/hooks","issue_events_url":"https://api.github.com/repos/pulsepointinc/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/pulsepointinc/amphtml/events","assignees_url":"https://api.github.com/repos/pulsepointinc/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/pulsepointinc/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/pulsepointinc/amphtml/tags","blobs_url":"https://api.github.com/repos/pulsepointinc/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulsepointinc/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulsepointinc/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulsepointinc/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulsepointinc/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/pulsepointinc/amphtml/languages","stargazers_url":"https://api.github.com/repos/pulsepointinc/amphtml/stargazers","contributors_url":"https://api.github.com/repos/pulsepointinc/amphtml/contributors","subscribers_url":"https://api.github.com/repos/pulsepointinc/amphtml/subscribers","subscription_url":"https://api.github.com/repos/pulsepointinc/amphtml/subscription","commits_url":"https://api.github.com/repos/pulsepointinc/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulsepointinc/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulsepointinc/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulsepointinc/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulsepointinc/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/pulsepointinc/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulsepointinc/amphtml/merges","archive_url":"https://api.github.com/repos/pulsepointinc/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulsepointinc/amphtml/downloads","issues_url":"https://api.github.com/repos/pulsepointinc/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/pulsepointinc/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/pulsepointinc/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/pulsepointinc/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulsepointinc/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/pulsepointinc/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/pulsepointinc/amphtml/deployments","created_at":"2016-06-22T16:29:25Z","updated_at":"2016-06-23T21:30:34Z","pushed_at":"2016-07-07T21:48:50Z","git_url":"git://github.com/pulsepointinc/amphtml.git","ssh_url":"git@github.com:pulsepointinc/amphtml.git","clone_url":"https://github.com/pulsepointinc/amphtml.git","svn_url":"https://github.com/pulsepointinc/amphtml","homepage":"https://ampproject.org","size":110585,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ampproject:master","ref":"master","sha":"d445cd423c1809357b87fb4e2e14783a75f848ea","user":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"repo":{"id":41766002,"name":"amphtml","full_name":"ampproject/amphtml","owner":{"login":"ampproject","id":14114390,"avatar_url":"https://avatars.githubusercontent.com/u/14114390?v=3","gravatar_id":"","url":"https://api.github.com/users/ampproject","html_url":"https://github.com/ampproject","followers_url":"https://api.github.com/users/ampproject/followers","following_url":"https://api.github.com/users/ampproject/following{/other_user}","gists_url":"https://api.github.com/users/ampproject/gists{/gist_id}","starred_url":"https://api.github.com/users/ampproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampproject/subscriptions","organizations_url":"https://api.github.com/users/ampproject/orgs","repos_url":"https://api.github.com/users/ampproject/repos","events_url":"https://api.github.com/users/ampproject/events{/privacy}","received_events_url":"https://api.github.com/users/ampproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ampproject/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":false,"url":"https://api.github.com/repos/ampproject/amphtml","forks_url":"https://api.github.com/repos/ampproject/amphtml/forks","keys_url":"https://api.github.com/repos/ampproject/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ampproject/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ampproject/amphtml/teams","hooks_url":"https://api.github.com/repos/ampproject/amphtml/hooks","issue_events_url":"https://api.github.com/repos/ampproject/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/ampproject/amphtml/events","assignees_url":"https://api.github.com/repos/ampproject/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/ampproject/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/ampproject/amphtml/tags","blobs_url":"https://api.github.com/repos/ampproject/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ampproject/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ampproject/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/ampproject/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/ampproject/amphtml/languages","stargazers_url":"https://api.github.com/repos/ampproject/amphtml/stargazers","contributors_url":"https://api.github.com/repos/ampproject/amphtml/contributors","subscribers_url":"https://api.github.com/repos/ampproject/amphtml/subscribers","subscription_url":"https://api.github.com/repos/ampproject/amphtml/subscription","commits_url":"https://api.github.com/repos/ampproject/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/ampproject/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/ampproject/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/ampproject/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/ampproject/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/ampproject/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ampproject/amphtml/merges","archive_url":"https://api.github.com/repos/ampproject/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ampproject/amphtml/downloads","issues_url":"https://api.github.com/repos/ampproject/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/ampproject/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/ampproject/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/ampproject/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ampproject/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/ampproject/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/ampproject/amphtml/deployments","created_at":"2015-09-01T22:10:53Z","updated_at":"2016-07-07T20:09:05Z","pushed_at":"2016-07-07T21:48:50Z","git_url":"git://github.com/ampproject/amphtml.git","ssh_url":"git@github.com:ampproject/amphtml.git","clone_url":"https://github.com/ampproject/amphtml.git","svn_url":"https://github.com/ampproject/amphtml","homepage":"https://ampproject.org","size":130922,"stargazers_count":7834,"watchers_count":7834,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1104,"mirror_url":null,"open_issues_count":572,"forks":1104,"open_issues":572,"watchers":7834,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/3919"},"html":{"href":"https://github.com/ampproject/amphtml/pull/3919"},"issue":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/3919"},"comments":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/3919/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/3919/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/3919/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amphtml/statuses/f9c87a8213700593d73faae596c147be03d473d8"}}}}
{"actor":{"display_login":"anand-venkatraman"}}