The IMA DAI SDK now supports passing the network code parameter when creating a full-service stream request. This change is specifically for IMA DAI integrations using either LiveStreamRequest or VODStreamRequest classes. Adding the network code is a one-time change that enables IMA DAI to respect your Ad Manager settings.
We recommend you provide the network code for IMA to apply your Ad Manager settings to the stream request. For example, if you turn off programmatic limited ads in Ad Manager, use the Google Ad Manager network code parameter to ensure local storage is also disabled for limited ads in DAI on your app.
The following example constructs an IMA DAI HTML5 LiveStreamRequest class with the network code in the request to Ad Manager:
function requestLiveStream(assetKey, apiKey, networkCode) {
var streamRequest = new google.ima.dai.api.LiveStreamRequest();
streamRequest.assetKey = assetKey;
streamRequest.apiKey = apiKey;
streamRequest.networkCode = networkCode;
streamManager.requestStream(streamRequest);
}
You can pass the network code using the IMA DAI SDK for full-service DAI on all of the platforms:
For more information, see the programmatic limited ads Ad Manager article . Additionally, follow Find your Ad Manager network code . If you have any questions, feel free to reach out using the IMA technical forum .
- Jackson Sui, Interactive Media Ads Developer Relations