Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

Possible Feature Feedback: Easy Google Ads

Last post 12-20-2007, 10:01 AM by carlcamera. 4 replies.
Sort Posts: Previous Next
  •  12-14-2007, 11:13 AM 37675

    Possible Feature Feedback: Easy Google Ads

    Okay I'll throw this one out there for feedback.  Since google ads on websites are so popular, how could Vine Type assist in adding Google Ads?  I haven't looked into this in quite some time, but ideally Vine Type could simplify adding this in with a template variable

    $_google_ad

    ..or perhaps two template variables

    $_google_ad_js
    $_google_ad

    where the first variable would create the < link > in the header and the second would place the xhtml on the page, and a couple config file variables

    $_google_ad_id:123123123123123

    where you would place your unique identifier.  What other steps would be necessary?


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under:
  •  12-15-2007, 3:43 PM 37707 in reply to 37675

    Re: Possible Feature Feedback: Easy Google Ads

    This (Google ads) is one of the reasons why I suggested the ability to "include" pages (not the only reason, but certainly one of them).

    The Google ad code varies based on what type of ad you have asked for. A single web page can have multiple kinds and sizes. So, this is what led me to realize that "include" pages would be a great way to tackle it.

    Honestly, if the "include" feature were granted in some future release, it would make adding Googles a snap.

    Just :

    1. Get your code from Google for the desired ad.

    2. Paste that code all by itself in a page (file), saved with an .xml extension. Name the file in a way that describes what kind of ad it is (ie. google_wide_leaderboard_ad.xml, or some such)

    3. Put an $_include_blah var in the config file, with the the path to the above named file.

    4. Drop it in the template pages as needed. Even if you have 5 or 10 or 20 template pages showing the add, you can update the ad's code with a single change to the "included" page.

    This would be ideal. And the process could be repeated for each different size and kind of ad needed or desired.


    Sincerely,
    Doug Joseph
    Filed under: ,
  •  12-19-2007, 12:09 PM 37789 in reply to 37707

    Re: Possible Feature Feedback: Easy Google Ads

    You make another good case for xml file include support.  My questions

    1. would the google snippet placed into the .xml file be actual, real, xml?
    2. isn't there some customization where you adjust for personalization?

     

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under:
  •  12-19-2007, 3:52 PM 37802 in reply to 37789

    Re: Possible Feature Feedback: Easy Google Ads

    An answer to #1 is: I think so, and here is an actual ad code chunk (below) that you can examine to see if it is up to snuff.

    <div id="googleheaderdiv">
     <script type="text/javascript"><!--
     google_ad_client = "pub-12345678912345678";
     //dj.net leaderboard (pics only) 728x90, created 12/8/07
     google_ad_slot = "0123456789";
     google_ad_width = 728;
     google_ad_height = 90;
     //--></script>
     <script type="text/javascript"
     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
     </script>
    </div>

    The answer to #2 is, once you've implemented the above code, the Google system knows from that code a couple of things: (1) it knows which ad publisher you are (this allows you to get paid) (see the 16-digit number above) and (2) it knows which of your ad setups (created on their site, and stored there as well, for management and later editing, etc) is being called for (see the 10-digit number above).

    The way to tweak your ad, is not by tweaking the code, but by managing your ads at Google.

    The code in your site varies for various ads that you've created. So, not every ad code chunk will look like the above. But each code would hopefully be as compliant with the strict rules of xml.

    PS: Please note that the fictional 10-digit and 16-digit numbers above would be one's actual numbers.  (If someone used your PUB number in implementing ads on their site, you would get paid instead of them. Also, if they were doing it maliciously, to get your account cancelled by clicking the ads themselves as though they were you clicking your own ads (which is prohibited), the Google team would (should be able to) examine the situation and tell it was not really you (IP addresses, ownership of the website used to host ads etc).)


    Sincerely,
    Doug Joseph
    Filed under: ,
  •  12-20-2007, 10:01 AM 37828 in reply to 37802

    Re: Possible Feature Feedback: Easy Google Ads

    well, that looks and walks like xml.  must be xml!  Thanks.

    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
    Filed under: ,
View as RSS news feed in XML