How to add VAST Ads on APICodes scripts?

Just open index.php or embed.php (if you use CPanel). Then, scroll down and add this code above tracks like this.

"advertising": {
	"client": "vast",
	"adscheduleid": "Az87bY12",
	"schedule": [
	  {
		"tag": "https://playertest.longtailvideo.com/vast-30s-ad.xml"
	  }
	]
},

If you want to add multi vast ads. Just use this code (also above tracks).

"advertising": {
	"client": "vast",
	"adscheduleid": "Az87bY12",
	"schedule": [
	  {
		"offset": "pre",
		"tag": "https://www.domain.com/adtag.xml"
	  },
	  {
		"offset": 10,
		"tag": "https://www.domain.com/adtag-mid-roll1.xml"
	  },
	  {
		"offset": "00:00:15:000",
		"tag": "https://www.domain.com/adtag-mid-roll2.xml"
	  },
	  {
		"offset": "25%",
		"tag": "https://www.domain.com/adtag-mid-roll3.xml"
	  },
	  {
		"offset": "post",
		"tag": "https://www.domain.com/adtag-post-roll.xml"
	  }
	]
},

That’s all. Thank you for reading!