DFP API for third party partner

234 views
Skip to first unread message

Michael Elbaz

unread,
Oct 31, 2016, 11:10:00 AM10/31/16
to Google's DoubleClick for Publishers API Forum
Hello,

I'm new to DFP API and I have a few questions:

1. Is there a way to requests a specific creative/ad based on a user information(i.e. geo-location) via DFP API?
2. Is there a way to update DFP for a click/impression made on the fetched creative/ad via server side?

Thanks

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Oct 31, 2016, 1:37:14 PM10/31/16
to Google's DoubleClick for Publishers API Forum
Hi,

For 1, is this about targeting specific users and specific geo location? If this is yes, you need to set the targeting fields like geoTargeting as to where the ads are to be shown and also you can add user specific criteria using custom targeting while creating a line item. Once you have created the line item, you can associate the line item with the corresponding creative via line item creative association (LICA). There are sample codes in our client library available in PHP, .NET, Java, Python and Ruby. The Java sample codes can be found here:


Could you please elaborate a little bit about 2 " Is there a way to update DFP for a click/impression made on the fetched creative/ad via server side?" For instance, you can elaborate on what your use case is or what you wanted to achieve here.
 
Thanks,
Tesfamichael Hailegeorgis, DFP API Team

Michael Elbaz

unread,
Nov 1, 2016, 9:33:25 AM11/1/16
to Google's DoubleClick for Publishers API Forum
Hi,
thanks about the reply but let me try to rephrase my question and elaborate a bit further.

Background story:
I have a client X whom using DFP as a delivery-system / ad-server. He manage on DFP a lot of line items (with special targeting as geo, browsers etc.) and creatives.
I want to fetch those line items/creative from his DFP account to my own self-developed platform and serve the ad to the user.
This means X will manage his creatives on DFP while my platform will serve the creative to the end-user using all the targeting/restrictions the creative has on DFP; but I would like to keep DFP reports in the loop and count impressions/clicks etc. there as well.

To do so I thought about to ways (which I'm not completely sure it can be done, I've just started to read DFP API documentations):
A. I will fetch all the line items/creatives every 10min to my platform but I still need somehow to notify DFP about successful impression / click that my platform counted.
B. Using programmatic integration similar to OpenRTB to get creative in response to a request my platform will send to DFP (with all the user details etc), but I will need to get the raw creative from the line-item and not a tag.

Thanks

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Nov 1, 2016, 3:29:40 PM11/1/16
to Google's DoubleClick for Publishers API Forum
Hi,

Are you both in the same DFP network and have the same user permissions? If so, you can both access the creatives or line items and no need to copy. For your reporting question, you can use the reporting service to pull reporting data about the columns or impressions and clicks that you are interested in.Take a look at these documents to get started with DFP reporting:



Please check the sample codes from our client library:


Thanks,
Tesfamichael Hailegeorgis, DFP API Team

Michael Elbaz

unread,
Nov 8, 2016, 5:57:39 AM11/8/16
to Google's DoubleClick for Publishers API Forum
Hello,

I'm interested to pass DFP variables via server-side as key-values, ad unit etc. and receive creative in return and notify DFP when impressions has occurred once I served the creative by myself.

Please help

Tesfamichael Hailegeorgis(DFP API Team)

unread,
Nov 8, 2016, 12:05:40 PM11/8/16
to Google's DoubleClick for Publishers API Forum
Hi Michael,

The way DFP API works is that, if you want to pull information about each entity or manipulate an entity, there is a corresponding API call. For instance if you want to pull all the creatives in your network, you'd want to make the getCreativesByStatement call. I would also recommend to try in the UI (DFP UI) what you wanted to achieve as the API is doing the same thing. Let us know if you are able to do this in the UI. If you're able to do this on this UI, please share the screenshot of the UI so I'll try to help how to achieve it via the API.

Thanks,
Tesfamichael Hailegeorgis, DFP API Team
Reply all
Reply to author
Forward
0 new messages