How to set 'Run of network' ad unit in Line Item using DFP API

776 views
Skip to first unread message

Pradeep Sharma

unread,
Mar 11, 2015, 2:46:16 PM3/11/15
to google-doubleclick...@googlegroups.com
Hi.

We have id of an ad unit which we can set in Line item. In DFP UI, I can see if user do not select any targeting then by default 'Run of Network' get selected by default. Is there any id of 'Run of Network' as well. If yes how can I see that id as it's not visible in 'Inventory' section. Also how can I set 'Run of Network' in a line item using DFP API v 201411.

Best Regards,
Pradeep Sharma

Pradeep Sharma

unread,
Mar 11, 2015, 3:52:16 PM3/11/15
to google-doubleclick...@googlegroups.com
Quick response will be highly appreciated.
Thanks !!

Pradeep Sharma

unread,
Mar 12, 2015, 10:20:06 AM3/12/15
to google-doubleclick...@googlegroups.com
Please let me know how would I know the id of 'Run of Network' ad unit?? is it possible through API??

We have id of an ad unit which we can set in Line item. In DFP UI, I can see if user do not select any targeting then by default 'Run of Network' get selected by default. Is there any id of 'Run of Network' as well. If yes how can I see that id as it's not visible in 'Inventory' section. Also how can I set 'Run of Network' in a line item using DFP API v 201411.


Chris Seeley (DFP API Team)

unread,
Mar 12, 2015, 10:34:10 AM3/12/15
to google-doubleclick...@googlegroups.com
Hi Pradeep,

You'll want to target the network's effective root ad unit, and include descendants. You can get this from the NetworkService.getCurrentNetwork:

Thanks,
Chris Seeley, DFP API Team

Pradeep Sharma

unread,
Mar 12, 2015, 10:41:40 AM3/12/15
to google-doubleclick...@googlegroups.com
So that mean the network's effective root ad Unit id is the Run Of Network id??

Thank you very much for your help Sir !!

Chris Seeley (DFP API Team)

unread,
Mar 12, 2015, 11:18:39 AM3/12/15
to google-doubleclick...@googlegroups.com
Yes, if you target the effective root ad unit and include descendants, it's will target the whole network.

Thanks,
Chris Seeley, DFP API Team
Reply all
Reply to author
Forward
0 new messages