Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Ads rendering response time similar to ?googfc #10

Open
paulrajj opened this issue Aug 11, 2016 · 4 comments
Open

Ads rendering response time similar to ?googfc #10

paulrajj opened this issue Aug 11, 2016 · 4 comments

Comments

@paulrajj
Copy link

Is it possible to get the loading time and rendering time of creatives in the page using gpt-slot_render_delay or gpt-slot_rendering events ? I have totally four adunits in the page. I wanted to log all the adunit's rendering and loading response time similar to google publisher console's ?googfc does.

@ghost
Copy link

ghost commented Apr 17, 2017

Subscribing +1

@oaoleif
Copy link

oaoleif commented Aug 22, 2017

@paulrajj If you haven't stumbled into this yet, I'd suggest taking a look at the global googletag object written by the DFP javascript. specifically googletag.pubads() unfortunately it looks like google will dynamically obfuscate some attributes of the code, but tucked away in there (I had to look at googletag.pubads.oa and was able to find a ton of data, request URL, ad path, timing, response object.

@paulrajj
Copy link
Author

@oaoleif I already tried using googletag.pubads() and its methods. Since the ads rendering time happened over loading of the adunits through the iframe, there is no option to get the response time using googletag.pubads() service.

@oaoleif
Copy link

oaoleif commented Aug 23, 2017

@paulrajj got it. One other thought (if you haven't tried already) might be to leverage the logger function events (https://github.com/mcountis/dfp-events) and on execution set a variable with the timestamp- then do the calculations on the difference in event timing. I haven't tried it yet myself (hopefully get to it today).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants