Skip to content

Commit

Permalink
fix typos in documentation and call renderStart (ampproject#5644)
Browse files Browse the repository at this point in the history
* call render-start when ad unit starts to load and fix typos in documentation

* minor documentation changes
  • Loading branch information
frazjp65 authored and Vanessa Pasque committed Dec 22, 2016
1 parent 9c903b1 commit cb0928d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 2 additions & 0 deletions ads/_config.js
Expand Up @@ -54,6 +54,7 @@ export const adConfig = {
'https://staticd.cdn.adblade.com',
'https://static.adblade.com',
],
renderStartImplemented: true,
},

adform: {},
Expand Down Expand Up @@ -214,6 +215,7 @@ export const adConfig = {
'https://staticd.cdn.industrybrains.com',
'https://static.industrybrains.com',
],
renderStartImplemented: true,
},

inmobi: {
Expand Down
5 changes: 5 additions & 0 deletions ads/adblade.js
Expand Up @@ -34,6 +34,11 @@ function addAdiantUnit(hostname, global, data) {
ins.setAttribute('data-tag-type', 1);
global.document.getElementById('c').appendChild(ins);

ins.parentNode.addEventListener(
'eventAdbladeRenderStart',
global.context.renderStart()
);

// run our JavaScript code to display the ad unit
writeScript(global, 'https://' + hostname + '/js/ads/async/show.js');
}
Expand Down
8 changes: 4 additions & 4 deletions ads/adblade.md
Expand Up @@ -21,8 +21,8 @@ limitations under the License.
```html
<amp-ad width=300 height=250
type="adblade"
width="300"
height="250"
data-width="300"
data-height="250"
data-cid="19626-3798936394">
</amp-ad>
```
Expand All @@ -34,5 +34,5 @@ For semantics of configuration, please see [ad network documentation](https://ww
Supported parameters:

- data-cid
- width
- height
- data-width
- data-height
8 changes: 4 additions & 4 deletions ads/industrybrains.md
Expand Up @@ -21,8 +21,8 @@ limitations under the License.
```html
<amp-ad width=300 height=250
type="industrybrains"
width="300"
height="250"
data-width="300"
data-height="250"
data-cid="19626-3798936394">
</amp-ad>
```
Expand All @@ -34,5 +34,5 @@ For semantics of configuration, please see [ad network documentation](https://ww
Supported parameters:

- data-cid
- width
- height
- data-width
- data-height

0 comments on commit cb0928d

Please sign in to comment.