{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/6350","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/6350/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/6350/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/6350/events","html_url":"https://github.com/ampproject/amphtml/issues/6350","id":191813809,"number":6350,"title":"Amazon CPM (A9) ad format not properly documented","user":{"login":"kevinlisota","id":4521682,"avatar_url":"https://avatars.githubusercontent.com/u/4521682?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlisota","html_url":"https://github.com/kevinlisota","followers_url":"https://api.github.com/users/kevinlisota/followers","following_url":"https://api.github.com/users/kevinlisota/following{/other_user}","gists_url":"https://api.github.com/users/kevinlisota/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlisota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlisota/subscriptions","organizations_url":"https://api.github.com/users/kevinlisota/orgs","repos_url":"https://api.github.com/users/kevinlisota/repos","events_url":"https://api.github.com/users/kevinlisota/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlisota/received_events","type":"User","site_admin":false},"labels":[{"id":283436627,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Related%20to:%20Ads","name":"Related to: Ads","color":"d4c5f9","default":false},{"id":270707801,"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Discussion","name":"Type: Discussion","color":"207de5","default":false}],"state":"open","locked":false,"assignee":{"login":"kevinlisota","id":4521682,"avatar_url":"https://avatars.githubusercontent.com/u/4521682?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlisota","html_url":"https://github.com/kevinlisota","followers_url":"https://api.github.com/users/kevinlisota/followers","following_url":"https://api.github.com/users/kevinlisota/following{/other_user}","gists_url":"https://api.github.com/users/kevinlisota/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlisota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlisota/subscriptions","organizations_url":"https://api.github.com/users/kevinlisota/orgs","repos_url":"https://api.github.com/users/kevinlisota/repos","events_url":"https://api.github.com/users/kevinlisota/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlisota/received_events","type":"User","site_admin":false},"assignees":[{"login":"kevinlisota","id":4521682,"avatar_url":"https://avatars.githubusercontent.com/u/4521682?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinlisota","html_url":"https://github.com/kevinlisota","followers_url":"https://api.github.com/users/kevinlisota/followers","following_url":"https://api.github.com/users/kevinlisota/following{/other_user}","gists_url":"https://api.github.com/users/kevinlisota/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinlisota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinlisota/subscriptions","organizations_url":"https://api.github.com/users/kevinlisota/orgs","repos_url":"https://api.github.com/users/kevinlisota/repos","events_url":"https://api.github.com/users/kevinlisota/events{/privacy}","received_events_url":"https://api.github.com/users/kevinlisota/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/11","html_url":"https://github.com/ampproject/amphtml/milestones/Pending%203P%20Implementation","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/11/labels","id":1621313,"number":11,"title":"Pending 3P Implementation","description":"","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars.githubusercontent.com/u/3888212?v=3","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":52,"state":"open","created_at":"2016-03-04T00:20:47Z","updated_at":"2016-12-01T01:55:24Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-11-26T16:23:14Z","updated_at":"2016-12-01T03:36:00Z","closed_at":null,"body":"We use Amazon CPM ads on our site. Inserting Amazon ads is documented in the A9 section [here](https://github.com/ampproject/amphtml/blob/master/ads/a9.md).\r\n\r\nThe A9 example is looking for the parameters `aax_size`, `aax_pubname` and `aax_src`. It then uses these parameters to call a script on amazon's ad server here: `https://c.amazon-adsystem.com/aax2/assoc.js`.\r\n\r\nThis differs from the parameters and script generated when you create an ad code on the Amazon Associates website for Amazon CPM ads.  Those ad codes look like this:\r\n\r\n```<script type=\"text/javascript\" language=\"javascript\" src=\"//c.amazon-adsystem.com/aax2/getads.js\"></script>\r\n<script type=\"text/javascript\" language=\"javascript\">\r\n  //<![CDATA[\r\n    aax_getad_mpb({\r\n      \"slot_uuid\":\"XXX-XXX-XXX-XXXX-XXX\"\r\n    });\r\n  //]]>\r\n</script>\r\n```\r\n\r\nNote that there is a call to a different script `getads.js` and only a single parameter of `slot_uuid`.\r\n\r\nI don't know if this is outdated documentation or simply a different use case of A9 ads, but I am unable to use these A9 ad codes in AMP because of the mismatch.\r\n\r\nNot sure if this is the AMP team or A9's responsibility. I was unable to locate the original contributor of the A9 ad documentation on Github. Can someone tag an A9 developer to help document this for Amazon CPM ads?"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/264070186","html_url":"https://github.com/ampproject/amphtml/issues/6350#issuecomment-264070186","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/6350","id":264070186,"user":{"login":"jasti","id":2366341,"avatar_url":"https://avatars.githubusercontent.com/u/2366341?v=3","gravatar_id":"","url":"https://api.github.com/users/jasti","html_url":"https://github.com/jasti","followers_url":"https://api.github.com/users/jasti/followers","following_url":"https://api.github.com/users/jasti/following{/other_user}","gists_url":"https://api.github.com/users/jasti/gists{/gist_id}","starred_url":"https://api.github.com/users/jasti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasti/subscriptions","organizations_url":"https://api.github.com/users/jasti/orgs","repos_url":"https://api.github.com/users/jasti/repos","events_url":"https://api.github.com/users/jasti/events{/privacy}","received_events_url":"https://api.github.com/users/jasti/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T03:36:00Z","updated_at":"2016-12-01T03:36:00Z","body":"Reached out to Amazon to request support as well. "}}
{"actor":{"display_login":"jasti"}}