(You could, if you so desired, include a link to the regular HTML
version of the page on the Excel version, since Excel spreadsheets can contain HTML
links.)
Next, let??™s take a look at the actual display of the ads:
Ad Headline |
Avg Clicks |
Cost Per Click |
|---|
<%@results.each do |r| %>
<%=r.headline%> |
<%=r.clicks%> clicks |
<%=format_google_currency(r.cost/r.clicks) %> |
<%end%>
CHAPTER 13 n TRACKING YOUR ADS WITH GOOGLE ADWORDS 282
This code loops through each of the ads from your report, displaying the headline,
the number of estimated clicks, and the cost per click formatted as a number of cents.
The formatting is controlled by the format_google_currency helper, which is defined in
app/helpers/budget_optimizer_helper.rb. The clicks are only estimated, of course,
because there??™s no guarantee that next month will have an identical number of clicks (or
cost) for a given keyword. However, it??™s likely that things will remain similar, even if they
aren??™t completely identical.
Pages:
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399