Skip to content

Commit

Permalink
Merge pull request #37 from tbuchok/companion-ad-doc
Browse files Browse the repository at this point in the history
updates docs to appropriate usage of companion ads
  • Loading branch information
tbuchok committed Apr 12, 2016
2 parents 316fb43 + 2fc511c commit b5b7386
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Expand Up @@ -127,13 +127,10 @@ var creative = ad.attachCreative('NonLinear', {
## Attach Companion Ad creatives

```javascript
var creative = ad.attachCreative('CompanionAd', {
width : 300
, height : 250
, type : 'image/jpeg'
, url : 'http://companionad.com/image.jpg'
});
creative.attachTrackingEvent('creativeView', 'http://companionad.com/creativeView');
var creative = ad.attachCreative('CompanionAd', { width : 300 , height : 250 })
.attachResource('StaticResource', 'http://companionad.com/image.jpg', 'image/jpeg')
.attachTrackingEvent('creativeView', 'http://companionad.com/creativeView')
;
```

## Generate XML
Expand Down

0 comments on commit b5b7386

Please sign in to comment.