Can i do this with AdSense API?

37 views
Skip to first unread message

dinox

unread,
May 30, 2012, 5:00:33 AM5/30/12
to adsen...@googlegroups.com
hi,

am hosting a website programmed in PHP, and i want to log into my database every successful displayed Ad unit in the page..
i want to store information such as visitor info, the visited address which displayed the Ad, etc..

i want this to be done only ( if ) ad served correctly!
is it possible for API to have a callback function on successful served ads? 
i don't want to relay on server scripts only, since it will record every page view regardless if ads served right or not!

some users might be browsing fast, or do not wait the page to be loaded fully, some might be using ad blockers, and in these cases, i do not want to log it in database.

any help appreciated!

thanks

Sérgio Gomes

unread,
May 30, 2012, 6:01:49 AM5/30/12
to adsen...@googlegroups.com
Hi there,

I'm afraid the API doesn't provide that sort of functionality; it only allows you to retrieve your inventory (ad units, channels, etc.) and reporting data.

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London SW1W 9TQ
Registered in England Number: 3977902


---
Reply all
Reply to author
Forward
0 new messages