Now that your data is stored in the database, let??™s create a simple Rails reporting
application that helps your boss spend his advertising revenue.
CHAPTER 13 n TRACKING YOUR ADS WITH GOOGLE ADWORDS 271
Creating the AdWords Campaign Reporter Application
The Rails reporting application will let you specify a number of clicks, and using past
data, create an ad campaign that gives you that many clicks for the least money.
First, create the framework for the application:
rails adwords_reporter
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
create doc
create lib
. . .
create log/production.log
create log/development.log
create log/test.log
Next, create your single controller for this application:
cd adwords_reporter
ruby script/generate controller budget_optimizer
exists app/controllers/
exists app/helpers/
create app/views/budget_optimizer
exists test/functional/
create app/controllers/budget_optimizer_controller.
Pages:
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387