{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/872","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/872/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/872/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/872/events","html_url":"https://github.com/ampproject/amphtml/pull/872","id":115632674,"number":872,"title":"Implement API for ad viewability.","user":{"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},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/LGTM","name":"LGTM","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-11-07T04:30:13Z","updated_at":"2015-11-10T01:40:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/872","html_url":"https://github.com/ampproject/amphtml/pull/872","diff_url":"https://github.com/ampproject/amphtml/pull/872.diff","patch_url":"https://github.com/ampproject/amphtml/pull/872.patch"},"body":"Exposes `window.context.observeIntersection` to ads that provides largely IntersectionObserver compatible change records of the ad's position in the container viewport.\r\n\r\nAlso makes the following advancements:\r\n- 3p frames now check that the claimed origin of the parent is correct. This helps ads trust the parent.\r\n- Adds tests for integration.js\r\n- adds `3p-frame/listenOnce,postMessage`\r\n- adds `rectIntersection` to layout-rect.js\r\n\r\nFixes #720\r\n\r\nFiled #873 to track increasing fidelity of change records."},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/155255637","html_url":"https://github.com/ampproject/amphtml/pull/872#issuecomment-155255637","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/872","id":155255637,"user":{"login":"erwinmombay","id":354746,"avatar_url":"https://avatars.githubusercontent.com/u/354746?v=3","gravatar_id":"","url":"https://api.github.com/users/erwinmombay","html_url":"https://github.com/erwinmombay","followers_url":"https://api.github.com/users/erwinmombay/followers","following_url":"https://api.github.com/users/erwinmombay/following{/other_user}","gists_url":"https://api.github.com/users/erwinmombay/gists{/gist_id}","starred_url":"https://api.github.com/users/erwinmombay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erwinmombay/subscriptions","organizations_url":"https://api.github.com/users/erwinmombay/orgs","repos_url":"https://api.github.com/users/erwinmombay/repos","events_url":"https://api.github.com/users/erwinmombay/events{/privacy}","received_events_url":"https://api.github.com/users/erwinmombay/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T01:40:41Z","updated_at":"2015-11-10T01:40:41Z","body":"LGTM"}}