CPM, CPI, PPC, CPA, CTR and ECPM in AD serving logic

Many people wondering what is CPM, CPI, PPC, CPA, CTR and ECPM concepts. As I worked on ad serving projects so I created some points these concepts. I worked in to admedia domain for some years. I worked with openx adserver technology. I am going to give you very brief ieda about CPM, CPI, PPC, CPA, CTR and ECPM logics.

CPM, CPI, PPC, CPA, CTR and ECPM in AD serving logic

First I am going to give small description and brief about same.

CPM, CPI, PPC, CPA, CTR and ECPM in AD serving logic
CPM, CPI, PPC, CPA, CTR and ECPM in AD serving logic

CPM – Cost per thousand
CPI – Cost Per Impression
PPC – Pay per click
CPA – Cost Per Action
CTR – Click-through rate
ad serving
Click fraud
Cost Per Click
View-through rate
Clicktag

Breif description is helpful for common people as well as developers.

Impression – Per Page Views( per Page loads)
Click – Per ad click
CTR (Click through rate)
Click-through rate or CTR is a way of measuring the success of an online advertising campaign. A CTR is obtained by dividing the “number of users who clicked on an ad” on a web page by the “number of times the ad was delivered” (impressions).

Formulae:
CTR (%) = (Clicks/Impressions)*100

For example, if a banner ad was delivered 100 times (impressions delivered) and one person clicked on it (clicks recorded), then the resulting CTR would be 1 percent.
CTR (%) = (1/100)*100 = 1%

CPM (Cost Per Thousand Impressions)
The CPM model refers to advertising bought on the basis of impression.
The total price paid in a CPM deal is calculated by multiplying the CPM rate by the number of CPM units.

Formulae:
CPM unit = (Impressions/1000)
Total Price ($) = CPM unit * CPM rate ($)
Per Impression cost ($)= CPM rate ($) / 1000

For example, one million impressions at $10 CPM equals a $10,000 total price.
1,000,000 / 1,000 = 1,000 units
1,000 units X $10 CPM = $10,000 total price

The amount paid per impression is calculated by dividing the CPM by 1000. For example, a $10 CPM equals $.01 per impression.
$10 CPM / 1000 impressions = $0.01 per impression

ECPM (Effective Cost Per Thousand Impressions)
eCPM is calculated by dividing total earnings by total number of impressions in thousands.
It is a great performance measure for your various ad units, so when experimenting, you can use eCPM to compare your results.
Even for smaller sites, eCPM can be a useful statistic to track ad performance.

Formulae:
eCPM = (Total Earnings / Impressions) * 1000
Note : In openx total earnings refers to Rev (Revenue) in statistics

For example, eCPM for 370 page impressions and $1.48 total earnings will be :
eCPM = (Total Earnings / Impressions) * 1000
= ($1.48 / 370 ) * 1000
= $4.00

Reading this article, I think you will be able to catch the CPM, CPI, PPC, CPA, CTR and ECPM concepts

how to create rounded corners using css

CSS tutorial, how to create rounded corners using css. We always need the rounded corners for our various web projects. W3C has offered borders in CSS3.

W3C has offered some new options for borders in CSS3, of which one is border-radius. Both Mozila/Firefox and Safari 3 have implemented this function.

how to create rounded corners using css

There are many javascripts are available to create the rounded corner using scripts. But specially recommend use pur css to avoid unnecessary script loading. So many sites uses the background image also, We need to avoid that also.

Following css will give you the rounded corners using only css:

.main_container {background:#ccc; color:#fff; margin:0 15px;}
.wordpressapitop, .wordpressapibottom{
display:block;
background:#fff;
}
.wordpressapitop *, .wordpressapibottom *{
display: block;
height: 1px;
overflow: hidden;
background:#ccc;
}
.wordpressapi1{margin: 0 5px}
.wordpressapi2{margin: 0 3px}
.wordpressapi3{margin: 0 2px}
.wordpressapi4{
margin: 0 1px;
height: 2px
}

Use following code in your html file and you are able to use rounded corners without using the javascript

round-code

How to create rounded corner using css
How to create rounded corner using css

Above script will work on all browsers FF, Chrome, Safari, IE6, IE7, IE8.

how to create basic layout in dreamweaver

Web design tutorial, how to create basic layout in dreamweaver. First click on start button on desktop select program then select adobe folder & select dream wear when you click on dream wear.

Let’s start dream wear with cool side

how to create basic layout in dreamweaver

It will look like this …..

main dreamweaver
how to create basic layout in dreamweaver

In dream wear panel in that having three panel first open a recent item, second create new, third one is create from sample.

second

In open recent item can open your exciting files

In create new can open already build pages in HTML, Cold Fusion, PHP, like this have many pages in more tab have more pages options

In create from samples can css style sheet

how to create easy web layout in dreamweaver

In dream weaver you can easy create web layout, edit web layout & modified. you just have to go in dream weaver click file then select new after clicking new there is open new window in that many option to select new layouts in new layouts there is many basic layout in dream weaver select first basic layout & click on finish. in dream weaver having code window & preview window you can access both of in one window that is more fine.

here are some best youtube videos:
Dreamweaver Tutorial – Create a SIMPLE website using CSS and HTML (for beginners)

In this Dreamweaver CS6 video we will:

– Create a web page template
– Style and position elements in the page using CSS
– Create a border radius on your DIV container using CSS
– We are going to load some new web fonts into Dreamweaver, so you can include really cool fonts on your projects, and ensure your visitors can see the fonts you intend for them to see, even if they do not have them on their computer.
– Explore some HTML5 tags
– Demonstrate how to add HTML 5 tags code hinting to Dreamweaver CS6 tag library
– Layout a basic page structure using a combination of HTML5 tags and regular DIV tags
– Create a hover effect using CSS for our newly created top and bottom navigation menu

CSS Build a Simple Web Page in Dreamweaver!

How To Make a Website in Dreamweaver (AMAZING Tutorial!)

In this video I will show you how to create a basic web page and how to set up a CSS website layout in Dreamweaver using div tags. I will explain to you the CSS box model, I will show you how to define a site, how to create a CSS layout, how to insert content: images, text, how to style text with CSS, how to create links and how to link one page to an other, how to fill out the meta tags, and how to style your elements in CSS.

How to Create Your First Web Page in Dreamweaver CS6 & CC

In this Dreamweaver CS6 video we will:

– Create a web page template
– Style and position elements in the page using CSS
– Create a border radius on your DIV container using CSS
– We are going to load some new web fonts into Dreamweaver, so you can include really cool fonts on your projects, and ensure your visitors can see the fonts you intend for them to see, even if they do not have them on their computer.
– Explore some HTML5 tags
– Demonstrate how to add HTML 5 tags code hinting to Dreamweaver CS6 tag library
– Layout a basic page structure using a combination of HTML5 tags and regular DIV tags
– Create a hover effect using CSS for our newly created top and bottom navigation menu

16 best firefox addons for Programmers and Developers

Mozilla Firefox is becoming more and more powerful tool in these days. Using right add-ons it will start to become a tool, You can`t live without as web-developer! Each of these plugins can make certain things easier and that`s especially important for web-developers

1. ColorZilla
ColorZilla offers You an advanced eyedropper, colorPicker, page Zoomer and other colorful goodies.

2.Delicious Bookmarks
Delicious bookmarks is official Firefox addon for del.icio.us. It integrates your browser bookmarks and tags, to keep them in order and “easy to find” way.

3. Domain Details
Displays Server Type, Headers, IP Address, Location Flag, and links to Whois Reports. Shows links to check server status and cache when page fails to load.

4. DOM Inspector
DOM Inspector is a tool that can be used to inspect and edit the live DOM of any web document or XUL application. The DOM hierarchy can be navigated using a two-paned window that allows for a variety of different views on the document and all nodes within.

Check my firefox plugins screenshot.

5. Firebug
Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page…
6. Firephp
FirePHP enables you to log to your Firebug Console using a simple PHP method call.

7. IE NetRenderer
Render the current page with IE NetRenderer

8. JavaScript Debugger
A powerful JavaScript debugging environment for Mozilla based browsers.

9. JavaScript Options
Provides advanced JavaScript options for Firefox.

10. MeasureIt
Little Firefox extension that enables you to draw a ruler across any webpage to check the width or height of a element.

11. ScreenGrab!
Screengrab saves entire web pages as images. This tool will allow You to take screenshots of what is currently on your screen – you can even choose the portion of the screen you want to “grab”!

12. Speed dial
Direct access to your most visited websites

13.StumbleUpon
StumbleUpon helps you to find new sites very easy.If you are a web-developer, StumbleUpon can drive a huge amount of visitors to your website.

14. View Cookies
It adds a tab to the Page Info dialog box, which shows the cookies belonging to the current page.

15. View Source Chart
HTML Source Code GUI

16. Web developer
Web Developer`s tool bar probably will become one of the best plugins You`ve ever seen. It comes with his own tool bar that gives many useful tools for analyzing, validating and optimizing web-pages. The great thing about this plugin is that it’s on a few different browsers, so if you switch between them you will be able to use the same plugin on all.

clean url with html file

We have site in plain html file and some time we want to use clean URLs or Pretty URLs for our site.
Clean URLs are in demand becasue of Seach Engine Optimiztion.

You can achive the Clean URLs. With not doing rework of building site.

Requirement:
Apache Server.
mod_rewrite engine need to on.

Create .htaccess file
and copy paste the following lines

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

#code for About us Page
RewriteRule ^about-us(\d+)*$ ./about.html$1

Put this file into your root folder.

What this will do?

For example I want

www.example.com/about.html to look like www.example.com/about-us/

Rich Text Editor in Rails Application

Many times you need normal CMS for your application. You want to need some pages data need to handle through CMS.

It is really very easy to Install any RTE in the Rails. There are many open source RTE available.

I used the Cross-Browser Rich Text Editor for my project.
I downloaded files from there and uploaded to my public folder. I added required CSS and JS file to my layout.

You need to add following lines to your application.html.erb file.(you will find this file in view/layout/ folder)

1. You can add that files on conditional base also. Means for that particular page.
2. Add following lines to your form
:html => { :name => ‘BlogRTE’, :onsubmit => “submitForm();”}

In to add following lines to your form;

<script language=”JavaScript” type=”text/javascript”>
<!–
function submitForm() {
updateRTEs();
return false;
}
initRTE(“/cbrte/images/”, “/cbrte/”, “”, true);
//–>
</script>
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
<script language=”JavaScript” type=”text/javascript”>
<!–
//build new richTextEditor
var rte1 = new richTextEditor(‘text_content’);
rte1.html = ‘Write your thoughts here.’;
rte1.toggleSrc = true;
rte1.width = 500;
rte1.build();
//–>
</script>

You will get the text_content params in Rails.

For Edit page functionality i got error in form. So you need to this default code for all languages.
rte1.html =””;

When i used this i got an error.

But i solved this issue after some R&D and modification in code.

Use following code for Rails(Edit functionality)
rte1.html =”<%=text_content.gsub(/”/, “‘”).gsub(/\n/, ”).gsub(/\r/, ”) %>”;

this will solve your problem.

Full code: (IF YOUR CODE NOT WORKS THAN USE MY FULL CODE)

<script language=”JavaScript” type=”text/javascript”>
<!–
function submitForm() {
updateRTEs();
return false;
}
initRTE(“/cbrte/images/”, “/cbrte/”, “”, true);
//–>
</script>
<noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript>
<script language=”JavaScript” type=”text/javascript”>
<!–
//build new richTextEditor
var rte1 = new richTextEditor(‘text_content’);
rte1.html = ‘Write your thoughts here.’;
rte1.toggleSrc = true;
rte1.width = 500;
rte1.build();
//–>
</script>