Macros

You can pass macros into the player that then can be used within your ad tags. To pass these values into the player you define an object 'macros' when calling the player and populate it with the key/value pairs you want to use. Here is an example:

<script>
Rumble("play", {video: "video_id", div: "rumble_player", macros: {
  custom_key: "custom_value",
  category:   "news"
}});</script>

With these values defined you can use these values in your ad tags with "[macro:key]" like in this example:

https://adserver.example.com/ads?adunit=1234&custom=[macro:custom_key]&target=[macro:category]

With the above example the final URL that will be called by the player will look like this:

https://adserver.example.com/ads?adunit=1234&custom=custom_value&target=news

results matching ""

    No results matching ""