From eea2dd802ab4c79e7fa2bf10a04b5907d475657e Mon Sep 17 00:00:00 2001 From: "dhruv.sonone" Date: Mon, 16 Sep 2024 12:44:37 +0530 Subject: [PATCH] Set creative duration matching policy only if video durations are present. --- modules/pubmatic/openwrap/beforevalidationhook.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/pubmatic/openwrap/beforevalidationhook.go b/modules/pubmatic/openwrap/beforevalidationhook.go index aa4a938e87c..21783b8ff2b 100644 --- a/modules/pubmatic/openwrap/beforevalidationhook.go +++ b/modules/pubmatic/openwrap/beforevalidationhook.go @@ -172,11 +172,10 @@ func (m OpenWrap) handleBeforeValidationHook( } videoAdDuration := models.GetVersionLevelPropertyFromPartnerConfig(partnerConfigMap, models.VideoAdDurationKey) - policy := models.GetVersionLevelPropertyFromPartnerConfig(partnerConfigMap, models.VideoAdDurationMatchingKey) if len(videoAdDuration) > 0 { rCtx.AdpodProfileConfig = &models.AdpodProfileConfig{ AdserverCreativeDurations: utils.GetIntArrayFromString(videoAdDuration, models.ArraySeparator), - AdserverCreativeDurationMatchingPolicy: policy, + AdserverCreativeDurationMatchingPolicy: models.GetVersionLevelPropertyFromPartnerConfig(partnerConfigMap, models.VideoAdDurationMatchingKey), } }