{"action":"created","comment":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/88579415","pull_request_review_id":9150072,"id":88579415,"diff_hunk":"@@ -0,0 +1,77 @@\n+/**\n+ * Copyright 2016 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 {user} from '../../../src/log';\n+import {xhrFor} from '../../../src/xhr';\n+import {getConfigUrl} from './config-url';\n+import {isExperimentOn} from '../../../src/experiments';\n+\n+/** @const */\n+const TAG = 'amp-auto-ads';\n+\n+export class AmpAutoAds extends AMP.BaseElement {\n+\n+  /** @override */\n+  buildCallback() {\n+    if (isExperimentOn(self, 'amp-auto-ads')) {\n+      this.init();\n+    }\n+  }\n+\n+  /** @override */\n+  isLayoutSupported() {\n+    return true;\n+  }\n+\n+  /**\n+   * Initiates loading of the configuration and any subsequent tasks that\n+   * depend on the configuration.\n+   */\n+  init() {","path":"extensions/amp-auto-ads/0.1/amp-auto-ads.js","position":43,"original_position":43,"commit_id":"6241b0687677fa94b07054efe863d54e3d877de4","original_commit_id":"6241b0687677fa94b07054efe863d54e3d877de4","user":{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"body":"can be private?","created_at":"2016-11-18T00:40:00Z","updated_at":"2016-11-18T00:40:00Z","html_url":"https://github.com/ampproject/amphtml/pull/6197#discussion_r88579415","pull_request_url":"https://api.github.com/repos/ampproject/amphtml/pulls/6197","_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments/88579415"},"html":{"href":"https://github.com/ampproject/amphtml/pull/6197#discussion_r88579415"},"pull_request":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/6197"}}},"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/6197","id":93790080,"html_url":"https://github.com/ampproject/amphtml/pull/6197","diff_url":"https://github.com/ampproject/amphtml/pull/6197.diff","patch_url":"https://github.com/ampproject/amphtml/pull/6197.patch","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/6197","number":6197,"state":"open","locked":false,"title":"Skeleton of <amp-auto-ads> implementation","user":{"login":"tlong2","id":21240004,"avatar_url":"https://avatars.githubusercontent.com/u/21240004?v=3","gravatar_id":"","url":"https://api.github.com/users/tlong2","html_url":"https://github.com/tlong2","followers_url":"https://api.github.com/users/tlong2/followers","following_url":"https://api.github.com/users/tlong2/following{/other_user}","gists_url":"https://api.github.com/users/tlong2/gists{/gist_id}","starred_url":"https://api.github.com/users/tlong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlong2/subscriptions","organizations_url":"https://api.github.com/users/tlong2/orgs","repos_url":"https://api.github.com/users/tlong2/repos","events_url":"https://api.github.com/users/tlong2/events{/privacy}","received_events_url":"https://api.github.com/users/tlong2/received_events","type":"User","site_admin":false},"body":"Initial skeleton implementation of `<amp-auto-ads>.` This interprets the attributes in the tag and fires an XHR request to fetch the configuration. Nothing is yet done with the configuration.\r\n\r\nhttps://github.com/ampproject/amphtml/issues/6196","created_at":"2016-11-15T15:44:40Z","updated_at":"2016-11-18T00:56:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f239bf6daf9c70995a3852b31e4fd0304cab6c44","assignee":{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false},"assignees":[{"login":"lannka","id":8496897,"avatar_url":"https://avatars.githubusercontent.com/u/8496897?v=3","gravatar_id":"","url":"https://api.github.com/users/lannka","html_url":"https://github.com/lannka","followers_url":"https://api.github.com/users/lannka/followers","following_url":"https://api.github.com/users/lannka/following{/other_user}","gists_url":"https://api.github.com/users/lannka/gists{/gist_id}","starred_url":"https://api.github.com/users/lannka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lannka/subscriptions","organizations_url":"https://api.github.com/users/lannka/orgs","repos_url":"https://api.github.com/users/lannka/repos","events_url":"https://api.github.com/users/lannka/events{/privacy}","received_events_url":"https://api.github.com/users/lannka/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ampproject/amphtml/pulls/6197/commits","review_comments_url":"https://api.github.com/repos/ampproject/amphtml/pulls/6197/comments","review_comment_url":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/6197/comments","statuses_url":"https://api.github.com/repos/ampproject/amphtml/statuses/6241b0687677fa94b07054efe863d54e3d877de4","head":{"label":"tlong2:amp-auto-ads-v0","ref":"amp-auto-ads-v0","sha":"6241b0687677fa94b07054efe863d54e3d877de4","user":{"login":"tlong2","id":21240004,"avatar_url":"https://avatars.githubusercontent.com/u/21240004?v=3","gravatar_id":"","url":"https://api.github.com/users/tlong2","html_url":"https://github.com/tlong2","followers_url":"https://api.github.com/users/tlong2/followers","following_url":"https://api.github.com/users/tlong2/following{/other_user}","gists_url":"https://api.github.com/users/tlong2/gists{/gist_id}","starred_url":"https://api.github.com/users/tlong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlong2/subscriptions","organizations_url":"https://api.github.com/users/tlong2/orgs","repos_url":"https://api.github.com/users/tlong2/repos","events_url":"https://api.github.com/users/tlong2/events{/privacy}","received_events_url":"https://api.github.com/users/tlong2/received_events","type":"User","site_admin":false},"repo":{"id":71554292,"name":"amphtml","full_name":"tlong2/amphtml","owner":{"login":"tlong2","id":21240004,"avatar_url":"https://avatars.githubusercontent.com/u/21240004?v=3","gravatar_id":"","url":"https://api.github.com/users/tlong2","html_url":"https://github.com/tlong2","followers_url":"https://api.github.com/users/tlong2/followers","following_url":"https://api.github.com/users/tlong2/following{/other_user}","gists_url":"https://api.github.com/users/tlong2/gists{/gist_id}","starred_url":"https://api.github.com/users/tlong2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlong2/subscriptions","organizations_url":"https://api.github.com/users/tlong2/orgs","repos_url":"https://api.github.com/users/tlong2/repos","events_url":"https://api.github.com/users/tlong2/events{/privacy}","received_events_url":"https://api.github.com/users/tlong2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tlong2/amphtml","description":"AMP HTML source code, samples, and documentation.  See below for more info.","fork":true,"url":"https://api.github.com/repos/tlong2/amphtml","forks_url":"https://api.github.com/repos/tlong2/amphtml/forks","keys_url":"https://api.github.com/repos/tlong2/amphtml/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tlong2/amphtml/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tlong2/amphtml/teams","hooks_url":"https://api.github.com/repos/tlong2/amphtml/hooks","issue_events_url":"https://api.github.com/repos/tlong2/amphtml/issues/events{/number}","events_url":"https://api.github.com/repos/tlong2/amphtml/events","assignees_url":"https://api.github.com/repos/tlong2/amphtml/assignees{/user}","branches_url":"https://api.github.com/repos/tlong2/amphtml/branches{/branch}","tags_url":"https://api.github.com/repos/tlong2/amphtml/tags","blobs_url":"https://api.github.com/repos/tlong2/amphtml/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tlong2/amphtml/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tlong2/amphtml/git/refs{/sha}","trees_url":"https://api.github.com/repos/tlong2/amphtml/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tlong2/amphtml/statuses/{sha}","languages_url":"https://api.github.com/repos/tlong2/amphtml/languages","stargazers_url":"https://api.github.com/repos/tlong2/amphtml/stargazers","contributors_url":"https://api.github.com/repos/tlong2/amphtml/contributors","subscribers_url":"https://api.github.com/repos/tlong2/amphtml/subscribers","subscription_url":"https://api.github.com/repos/tlong2/amphtml/subscription","commits_url":"https://api.github.com/repos/tlong2/amphtml/commits{/sha}","git_commits_url":"https://api.github.com/repos/tlong2/amphtml/git/commits{/sha}","comments_url":"https://api.github.com/repos/tlong2/amphtml/comments{/number}","issue_comment_url":"https://api.github.com/repos/tlong2/amphtml/issues/comments{/number}","contents_url":"https://api.github.com/repos/tlong2/amphtml/contents/{+path}","compare_url":"https://api.github.com/repos/tlong2/amphtml/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tlong2/amphtml/merges","archive_url":"https://api.github.com/repos/tlong2/amphtml/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tlong2/amphtml/downloads","issues_url":"https://api.github.com/repos/tlong2/amphtml/issues{/number}","pulls_url":"https://api.github.com/repos/tlong2/amphtml/pulls{/number}","milestones_url":"https://api.github.com/repos/tlong2/amphtml/milestones{/number}","notifications_url":"https://api.github.com/repos/tlong2/amphtml/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tlong2/amphtml/labels{/name}","releases_url":"https://api.github.com/repos/tlong2/amphtml/releases{/id}","deployments_url":"https://api.github.com/repos/tlong2/amphtml/deployments","created_at":"2016-10-21T10:09:31Z","updated_at":"2016-10-21T10:09:36Z","pushed_at":"2016-11-17T17:25:20Z","git_url":"git://github.com/tlong2/amphtml.git","ssh_url":"git@github.com:tlong2/amphtml.git","clone_url":"https://github.com/tlong2/amphtml.git","svn_url":"https://github.com/tlong2/amphtml","homepage":"https://ampproject.org","size":209475,"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":"1b7710c69a4b32c2e8d08592d2f5c814a32486be","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-11-17T21:59:00Z","pushed_at":"2016-11-18T00:35:15Z","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":229603,"stargazers_count":9078,"watchers_count":9078,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1399,"mirror_url":null,"open_issues_count":992,"forks":1399,"open_issues":992,"watchers":9078,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/6197"},"html":{"href":"https://github.com/ampproject/amphtml/pull/6197"},"issue":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/6197"},"comments":{"href":"https://api.github.com/repos/ampproject/amphtml/issues/6197/comments"},"review_comments":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/6197/comments"},"review_comment":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ampproject/amphtml/pulls/6197/commits"},"statuses":{"href":"https://api.github.com/repos/ampproject/amphtml/statuses/6241b0687677fa94b07054efe863d54e3d877de4"}}}}
{"actor":{"display_login":"lannka"}}