advertiser id in dfp

1,880 views
Skip to first unread message

Popup

unread,
May 8, 2013, 10:46:55 AM5/8/13
to google-doubleclick...@googlegroups.com
i am using dfp small business.
 
i need to accomplish two things:
 
1) every advertiser has a unique id and i want to input that id into dfp.  in what field can I add the id in dfp?
 
2) i want the advertiser id to be shown in the reports through api.  how do i do that?
 
thank you.

Popup

unread,
May 8, 2013, 1:33:40 PM5/8/13
to google-doubleclick...@googlegroups.com
In addition to my previous questions, i have one more:

i see a lot of fields in the api documentation, but i dont know where to find them in dfp.  For example, i know if i enter a PO number in dfp under Optional order fields, i will be able to retrieve that info thru type Order (v201302), field poNumber.  But in type Company (v201302), i see a field called externalId, but where is this field in dfp itself?  If i want to manually add an advertiser id in the externalId field in dfp, how would i do it? 

p.s. - i will be using php.

thank you.

Vincent Tsao (DFP API Team)

unread,
May 9, 2013, 12:53:47 PM5/9/13
to google-doubleclick...@googlegroups.com
Hello:

You can set the externalId field of a Company through the API:

You can also report on this as a dimension attribute:

To set the external ID through the DFP web UI for your companies you should be able to do this under the Admin tab and then the Companies tab. Please let me know if you're still running into issues with this and let me know your network code in that case.

Thanks,
Vincent Tsao, DFP API Team

Popup

unread,
May 10, 2013, 9:58:40 AM5/10/13
to google-doubleclick...@googlegroups.com
I was able to find externalId! Thank you.
 
Couple more questions:
 
You said I can set the externalId field through the API and provided me with the link.  When you say 'set through the API', can you provide me with an example of how I would set the id as 123 for company ABC through the API? 
 
Where can I find advertiser id, order id in the DFP UI?  Is every field listed in the API documentation available in DFP's UI?

Vincent Tsao (DFP API Team)

unread,
May 10, 2013, 11:28:00 AM5/10/13
to google-doubleclick...@googlegroups.com
You can set the externalId field in the Company object using the CompanyService. Most of our client libraries have examples, for instance, the PHP client library has an example here:

The IDs of objects in the DFP web UI are generally shown in the URL when you're viewing an object. The API is generally a subset of things in the DFP UI, so usually if you see something in the API, it will be available in the UI in a similar form.

Thanks,
Vincent Tsao, DFP API Team

Reply all
Reply to author
Forward
0 new messages