Google has announced a significant update to its Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK, introducing network code parameter support for stream requests. This update, released on January 27, 2025, brings enhanced control over ads identifier usage across multiple platforms.
The new functionality enables developers to pass the network code parameter when creating full-service stream requests through the IMA DAI SDK. This implementation specifically affects integrations using LiveStreamRequest or VODStreamRequest classes.
The integration of network code support allows IMA DAI to honor Ad Manager settings, making it a crucial enhancement for developers looking to maintain consistent ad delivery policies across their applications.
Developers can now construct an IMA DAI HTML5 LiveStreamRequest class by including the network code in the Ad Manager request. The implementation requires a simple one-time modification to include the network code parameter:
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);
}
The network code can be utilized across various platforms, including HTML5, Android, iOS, tvOS, Chromecast, and Roku. For further details, refer to the programmatic limited ads Ad Manager article and the guide on how to Find your Ad Manager network code. For inquiries, the IMA technical forum is available for assistance.