2
I Use This!
Activity Not Available

News

Analyzed about 2 months ago. based on code collected 3 months ago.
Posted over 15 years ago by [email protected] (Mauricio Scheffer)
I've been working for the last month on a library that implements API bindings for OpenX in .Net. The OpenX API is quite big and I recently finished mapping all available methods so I decided to call it an early alpha release. With this you can do: ... [More] CRUD operations on all OpenX entities (Advertiser, Banner, Campaign, Manager, Publisher, User, Zone) Configure banner targeting Link/unlink zones with banners and campaigns Get various stats with strongly typed results It relies on Charles Cook's XML-RPC.NET library (which is the de-facto standard xml-rpc library for .Net) which I had to modify slightly due to some irregularities in the OpenX XML-RPC server. Hopefully Charles will make xml-rpc.net more tolerant to these glitches soon so I can kill off my fork and use the standard xml-rpc.net. Anyway here's a sample snippet querying for an advertiser's daily stats: [Test] public void AdvertiserDailyStats() { using (ISession session = new SessionImpl("user", "password", "http://localhost:10002/openx/api/v2/xmlrpc/")) { DailyStats[] r = session.GetAdvertiserDailyStatistics(1, DateTime.Now.AddYears(-1), DateTime.Now); Console.WriteLine("got {0} stats", r.Length); foreach (DailyStats stat in r) { Console.WriteLine("Stats for day {0}:", stat.Day.ToShortDateString()); Console.WriteLine("Impressions: {0}", stat.Impressions); Console.WriteLine("Clicks: {0}", stat.Clicks); Console.WriteLine("Requests: {0}", stat.Requests); Console.WriteLine("Revenue: {0}", ((decimal) stat.Revenue).ToString("C")); } } } I wanted to release this as as early as possible because it's feature-complete but barely tested so I need people to try it and help me stabilize it by reporting any bugs and hopefully also contribute patches! You can browse the code and fork it on github. Binaries are available here. PS: It seems that both Roger Dickey and I have been working independently on this at the same time, a situation that always sucks. I pinged him when I discovered this and he agreed to work together with me on this one. [Less]
Posted over 15 years ago by [email protected] (Mauricio Scheffer)
I've been working for the last month on a library that implements API bindings for OpenX in .Net. The OpenX API is quite big and I recently finished mapping all available methods so I decided to call it an early alpha release. With this you can do: ... [More] CRUD operations on all OpenX entities (Advertiser, Banner, Campaign, Manager, Publisher, User, Zone) Configure banner targeting Link/unlink zones with banners and campaigns Get various stats with strongly typed results It relies on Charles Cook's XML-RPC.NET library (which is the de-facto standard xml-rpc library for .Net) which I had to modify slightly due to some irregularities in the OpenX XML-RPC server. Hopefully Charles will make xml-rpc.net more tolerant to these glitches soon so I can kill off my fork and use the standard xml-rpc.net. Anyway here's a sample snippet querying for an advertiser's daily stats: [Test] public void AdvertiserDailyStats() { using (ISession session = new SessionImpl("user", "password", "http://localhost:10002/openx/api/v2/xmlrpc/")) { DailyStats[] r = session.GetAdvertiserDailyStatistics(1, DateTime.Now.AddYears(-1), DateTime.Now); Console.WriteLine("got {0} stats", r.Length); foreach (DailyStats stat in r) { Console.WriteLine("Stats for day {0}:", stat.Day.ToShortDateString()); Console.WriteLine("Impressions: {0}", stat.Impressions); Console.WriteLine("Clicks: {0}", stat.Clicks); Console.WriteLine("Requests: {0}", stat.Requests); Console.WriteLine("Revenue: {0}", ((decimal) stat.Revenue).ToString("C")); } } } I wanted to release this as as early as possible because it's feature-complete but barely tested so I need people to try it and help me stabilize it by reporting any bugs and hopefully also contribute patches! You can browse the code and fork it on github. Binaries are available here. PS: It seems that both Roger Dickey and I have been working independently on this at the same time, a situation that always sucks. I pinged him when I discovered this and he agreed to work together with me on this one. [Less]
Posted over 15 years ago by [email protected] (mausch)
I've been working for the last month on a library that implements API bindings for OpenX in .Net. The OpenX API is quite big and I recently finished mapping all available methods so I decided to call it an early alpha release. With this you can do: ... [More] CRUD operations on all OpenX entities (Advertiser, Banner, Campaign, Manager, Publisher, User, Zone) Configure banner targeting Link/unlink zones with banners and campaigns Get various stats with strongly typed results It relies on Charles Cook's XML-RPC.NET library (which is the de-facto standard xml-rpc library for .Net) which I had to modify slightly due to some irregularities in the OpenX XML-RPC server. Hopefully Charles will make xml-rpc.net more tolerant to these glitches soon so I can kill off my fork and use the standard xml-rpc.net. Anyway here's a sample snippet querying for an advertiser's daily stats: [Test] public void AdvertiserDailyStats() { using (ISession session = new SessionImpl("user", "password", "http://localhost:10002/openx/api/v2/xmlrpc/")) { DailyStats[] r = session.GetAdvertiserDailyStatistics(1, DateTime.Now.AddYears(-1), DateTime.Now); Console.WriteLine("got {0} stats", r.Length); foreach (DailyStats stat in r) { Console.WriteLine("Stats for day {0}:", stat.Day.ToShortDateString()); Console.WriteLine("Impressions: {0}", stat.Impressions); Console.WriteLine("Clicks: {0}", stat.Clicks); Console.WriteLine("Requests: {0}", stat.Requests); Console.WriteLine("Revenue: {0}", ((decimal) stat.Revenue).ToString("C")); } } } I wanted to release this as as early as possible because it's feature-complete but barely tested so I need people to try it and help me stabilize it by reporting any bugs and hopefully also contribute patches! You can browse the code and fork it on github. Binaries are available here. PS: It seems that both Roger Dickey and I have been working independently on this at the same time, a situation that always sucks. I pinged him when I discovered this and he agreed to work together with me on this one. [Less]