Current version: (AGNO-JavaScript API)
This feature can be used as follows:
// required parameters:
brand: "agnoplay",
videoId: "Mbdskc9KsAii",
url: window.location.href,
...
// add the following:
googleAdManager: true,
gamCmsId: 496,
gamAdUnitId: '/124319096/external/ad_rule_samples',
gamNoPersonalisedAds: 1,
gamVideoSize: '640x480',
gamVideoTargeting: { sample_ar: 'premidpostpod' },
gamTargeting: {deployment: 'gmf-js'},
ads_skip: true,
ads_threshold: 30 // in seconds
This feature can be enabled or disabled in the player configuration. Once enabled with the values, a provided VAST url will be generated and ads will load.
gamCmsId
The cmsid is a unique number for each content source. To locate this in Ad Manager, click Video and then Content sources and then the name of the source.
Google Ad Manager parameter: cmsid
gamAdUnitId
The ad unit parameter accepts a variable value which should be set to the current ad
unit,in the format: /network_id/.../ad_unit.
Google Ad Manager parameter: iu
gamNoPersonalisedAds
this value is generated from user's consent on the website, 0 means personal ads, 1 means no personal ads.
Google Ad Manager parameter: npa
gamVideoSize
ad video size. Google Ad Manager parameter: sz
gamVideoTargeting
and gamTargeting
are values for targeting the ads, they are merged and sent as Google Ad Manager parameter: cust_params
If the player configuration has the autoplay: true
parameter, the ad will also start automatically
For full documentation visit link