To use the consent string of the user in the VAST URL, you simply set {consentString} at the corresponding place.

Alternatively you can define the consent string in the config:

{
  dataid: '...',
  container: '...',
  consentString: '...'
}

SmartClip

If you use SmartClip, the player automatically sets the value of optout based on the consent string