Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. detect javascript code for google ad sense

detect javascript code for google ad sense

Scheduled Pinned Locked Moved C#
csharpjavascript
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anil Veeraghattapu 4
    wrote on last edited by
    #1

    Hi using c#.net i want to detect whether there is any javascript code present on the webpage for google adsense. please tell me about the javascript code for the google adsense Thanks Anil Veeraghattapu ...

    B 1 Reply Last reply
    0
    • A Anil Veeraghattapu 4

      Hi using c#.net i want to detect whether there is any javascript code present on the webpage for google adsense. please tell me about the javascript code for the google adsense Thanks Anil Veeraghattapu ...

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      If you want to have a look at what the javascript looks like, you've got two options 1) Find a site that uses google adsense and view it's source (search for google_ad_client in the source) 2) Sign up for a adsense account, and request the javascript snippet yourself As I say in (1) searching for "google_ad_client" within a script tag should probably be enough

      Help me! I'm turning into a grapefruit! Buzzwords!

      A 1 Reply Last reply
      0
      • B benjymous

        If you want to have a look at what the javascript looks like, you've got two options 1) Find a site that uses google adsense and view it's source (search for google_ad_client in the source) 2) Sign up for a adsense account, and request the javascript snippet yourself As I say in (1) searching for "google_ad_client" within a script tag should probably be enough

        Help me! I'm turning into a grapefruit! Buzzwords!

        A Offline
        A Offline
        Anil Veeraghattapu 4
        wrote on last edited by
        #3

        Hi benjymous Thanks for your reply well i am also thinking about your 1st option so are you sure if a website is running google ad sense then it should contain the keywords like "google_ad_client" ????? Thanks Anil Veeraghattapu.

        B 1 Reply Last reply
        0
        • A Anil Veeraghattapu 4

          Hi benjymous Thanks for your reply well i am also thinking about your 1st option so are you sure if a website is running google ad sense then it should contain the keywords like "google_ad_client" ????? Thanks Anil Veeraghattapu.

          B Offline
          B Offline
          benjymous
          wrote on last edited by
          #4

          Well, their javascript block has been formatted like that for a good few years, so if they changed it, it'd probably break all the sites using adsense, so it's a fairly safe assumption that it won't change, but it's never guaranteed!

          Help me! I'm turning into a grapefruit! Buzzwords!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups