Google AdSense

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/25/2009 10:09:40 PM
Gravatar
Total Posts 5

Google AdSense

Google AdSense API Implementation.

 

I've tried copying and pasting the code several times, not sure if im using the correct module (HTML Content) for the Code as the Adsense code Is Mostly Javascript. Regardless When i try posting the Search Form Box it works fine but after submitting to the results page where the results code is housed there is no results. (Blank Page)

11/26/2009 8:15:59 AM
Gravatar
Total Posts 18439

Re: Google AdSense

You can either put adsense scripts in the layout.master of your skin, or you can use an html content feature and paste it in using html view as I have done on the right side of the documentation page for example. I have no idea what you are talking about when you say

When i try posting the Search Form Box it works fine but after submitting to the results page where the results code is housed there is no results. (Blank Page)

Just use adsense ads, don't try to add a search form.

Hope it helps,

Joe

11/26/2009 7:48:26 PM
Gravatar
Total Posts 5

Re: Google AdSense

Sorry I Didnt make that clear. All of the below is referencing google adsense code.

This is how it is setup.

Search Page Contains the Adsense Search Box.

<form id="cse-search-box" action="http://Searching.Thruhere.net/search/results.aspx">

<div style="text-align: center;"><input name="cx" type="hidden" value="partner-pub-5639739796711961:ydbedda3n2d" /> <input name="cof" type="hidden" value="FORID:10" /> <input name="ie" type="hidden" value="ISO-8859-1" /> <input name="q" size="31" type="text" /> <input name="sa" type="submit" value="Search" /></div>

</form>

<script src="http://www.google.com/cse/brand?form=cse-search-box&amp;lang=en" type="text/javascript"></script>



Results Page is Supposed to Contain the Results.



<script type="text/javascript">// <![CDATA[

var googleSearchIframeName = "cse-search-results";

var googleSearchFormName = "cse-search-box";

var googleSearchFrameWidth = 800;

var googleSearchDomain = "www.google.com";

var googleSearchPath = "/cse";

// ]]></script>

<script src="http://www.google.com/afsonline/show_afs_search.js" type="text/javascript"></script>

When Text is submitted via the search box on search page no results are being displayed on the results page.

11/28/2009 7:35:54 AM
Gravatar
Total Posts 18439

Re: Google AdSense

That is not adsense for content that is adsense for search I guess. That will not work because in ASP.NET WebForms you cannot add more forms to the page there can only be one and it is already on the page. You might be able to create a plain html page with that form and then put it inside an iframe using the html view of the html content feature.

adsense for content has very simple script that you can embed and google will show ads relevant to your content.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.