Skip to content

Commit

Permalink
add sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil authored Jan 25, 2018
1 parent 5696eff commit d2155ab
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Ad/AbstractAdNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,29 @@ public function setId($id)
return $this;
}

/**
* Format a VAST 3.0 response that groups multiple ads into a sequential pod of ads
*
* @param int $sequence a number greater than zero (0) that identifies the sequence in which an ad should play;
* all <Ad> elements with sequence values are part of a pod and are intended to be played
* in sequence
*
* @return InLine|Wrapper|AbstractAdNode
*/
public function setSequence($sequence)
{
$this->domElement->setAttribute('sequence', $sequence);
return $this;
}

/**
* @return int
*/
public function getSequence()
{
return $this->domElement->getAttribute('sequence');
}

/**
* /Vast/Ad/Inline/AdSystem element
*
Expand Down

0 comments on commit d2155ab

Please sign in to comment.