0.0.0:3000
CHAPTER 13 n TRACKING YOUR ADS WITH GOOGLE ADWORDS 276
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment . . .
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. INT => stop (no restart).
** Mongrel available at 0.0.0.0:3000
** Use CTRL-C to stop.
Open your web browser and enter the address http://127.0.0.1:3000/budget_
optimizer. You should see a screen similar to Figure 13-3. Type 100 into the text box and
click Create Report. Then you should see a screen similar to Figure 13-4.
Figure 13-3. AdWords reporter application form for creating a report
CHAPTER 13 n TRACKING YOUR ADS WITH GOOGLE ADWORDS 277
Figure 13-4. AdWords reporter application report
Let??™s look at a few lines from the application.
Dissecting the Code
First, let??™s take a look at the controller, apps/controllers/budget_optimizer_controller.rb
(Listing 13-3):
class BudgetOptimizerController < ApplicationController
def index
end
def report
@excel_view = params[:view_as_excel]
@target_clicks=params[:report][:target_clicks].
Pages:
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392