Get AdUnit ID in slotRenderEnded Event

224 views
Skip to first unread message

Sascha Klein

unread,
Apr 11, 2018, 8:23:41 AM4/11/18
to Google's DoubleClick for Publishers API Forum
Hi there -

I try to get some parameters of the rendered ad (if one was rendered) from the slot available in the event. For example I get the ad unit path by: 

googletag.pubads().addEventListener('slotRenderEnded', function (event) {
    console
.log(event.slot.getAdUnitPath());
});

Now I need the Id of the AdUnit. Like %epid! from ad server macros. 

Definition: 

%epid!ID of the ad unit where the line item is being served

I hope someone could help. 

Thanks in advanced. 

Sascha

Nicholas Figeac (DFP API Team)

unread,
Apr 11, 2018, 10:45:18 AM4/11/18
to Google's DoubleClick for Publishers API Forum
Hello,

Can you please post your question on our Product forum as your question is not related to DFP API?

Thanks,
Nicholas Figeac, DFP API Team

Sascha Klein

unread,
Apr 11, 2018, 4:46:04 PM4/11/18
to Google's DoubleClick for Publishers API Forum
Oh Sorry. Yes sure. Thanks. ;-) 
Reply all
Reply to author
Forward
0 new messages