Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
newchannel
Roku Guru

Display ads per region and statistics?

Can someone lead me in the right direction of where to find this information?

I will be running my own clickable ads from my server side. My question is how to set ads to play for viewers based on location? If a viewer is in CA and there is an advertiser that wants their ads to show for CA viewers specifically in their area, how to connect it in this fashion?

In addition, how to track the number of clicks to the ad and location of the viewer so there will be some type of statistics to give to advertisers?

Thank you in advance.
http://www.victoryNOWfilmsandtv.com
0 Kudos
1 REPLY 1
destruk
Binge Watcher

Re: Display ads per region and statistics?

#1) http://www.justin-cook.com/wp/2006/11/2 ... p-address/

#2) Easiest to do since you'll already want to verify against a database, is to create a table tracking the clicks and incrementing a value every time a request is received by your server.
for mysql, "UPDATE MyTable SET MyColumn=MyColumn+1 Where MyID=123" - you may also want a separate table for clicking timestamps and other information about the requestor.

Or you could look at one of the current preroll/inline advertising companies available for them to handle this directly for you.
I don't know how you would pitch your roku channel to independent end point advertising - like, do you send an email to Hostess Cake Company and ask them if they want to pay you to run some Twinkie ads on your channel?
0 Kudos