• 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

http://thebogles.com/blog/2007/10/how-to-add-google-adsense-for-mobile-to-your-ruby-on-rails-site/
http://thebogles.com/_adsense.rhtml

手順

  1. 自分のアドセンスIDpub-123456789を取得
  2. モバイル コンテンツ向け AdSenseを開始しておく
  3. 下記のページを自分のRailsのviewsサブディレクトリにコピー
    http://thebogles.com/_adsense.rhtml
  4. 手順3でコピーしたページの8行目にあるcliend_idを手順1で取得した自分のアドセンスIDと置き換える
  5. アドセンスを載せたい場所に下記を挿入
       1  <%= render :partial => "adsense" %>
    
  6. おしまい

PS PCから表示確認を行うと <!-- google_afm -->というコメントが出るだけなので、携帯から確認を行ってください。

posted by Png satoko on Mon 1 Sep 2008 at 16:53
Contents
Railsで携帯版Google Adsenseを掲載する
Comments
KingofSmack: Here also good reads for this mobile applicatio... '14-5
satoko: stackoverflowでも同じエラーを挙げている人がいたので、1.3でアップロードしたよっ... '10-12
ujihisa: :%s/blog/glob/g '10-7
satoko: しゅが〜様 返事が遅くなって申し訳ありません。また、投稿百景ご購入ありがとうございます。 ... '09-10
しゅが~: こんにちは。投稿百景を発売日翌日から利用しています。本当にいいAppを作っていただきました。罫... '09-10
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ