Where can get the IDs for technology and device category targeting? (PHP lib)

298 views
Skip to first unread message

Francesco Pascariello

unread,
Jul 21, 2016, 8:25:44 AM7/21/16
to Google's DoubleClick for Publishers API Forum
Hi,

we want to target different technologies by using the PHP library but it seems that we need the IDs for the different device categories (smartphone, tablet, desktop).
Does anyone now where we can find a list of the IDs for device categories or technologies in general?

According to the example file \v201605\LineItemService\CreateLineItems.php
is the technology ID for chrome 500072 but whats about the rest?

Thank You very much!
Best regards
Francesco

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Jul 21, 2016, 10:10:10 AM7/21/16
to Google's DoubleClick for Publishers API Forum
Hi Francesco,

For device category information, you can use the Device_Category table from the PQL (Publisher Query Language) service. Yes, the ID 500072 belongs to the Chrome browser and you can find the complete list using the Browser table from the PQL service. Please see below a Java version of the select statement to retrieve the device category information. You can tweak the code to suit your need in PHP. 

          .select("Id,DeviceCategoryName")
        .from("Device_Category")

Here is the PHP sample code from our client library to get the browser information. Feel free to let me know if you have any question on this.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team

Francesco Pascariello

unread,
Jul 21, 2016, 10:26:31 AM7/21/16
to Google's DoubleClick for Publishers API Forum
Hi Tesfamichael,

Thank You very much! That helps a lot :)

Cheers,
Francesco
Reply all
Reply to author
Forward
0 new messages