Loading...
 
Skip to main content

Features / Usability


Give Me Adsense or Give Me Death-

Could someone please tell me EXACTLY how to get Google Adsense to work? I installed Tiki's module. It displayed an error about not having the account number. I added this (with the real account number) to parameters:

client=pub-xxxxxxxxxxxxxxxx,display=160*600_as

but then it posts this error:

Display type unknown, you have to enter the banner type

Does Adsense require certain Tiki settings for rows or cache or any other setting? If so, what are they?

If Tiki doesn't support Adsense, I would have chosen a different wiki but I don't see why this should be so difficult.

Thank you.

Sorry code didn't appear. I can email it to you if you wish. PM me

Hi, although it is not a answer to your question, I have created my adsense adds by setting the code from Google in an HTML page and refereced that from a module. I used the following code in my module:



(The googleads.html file is save in the wiki directory)

I am struggling to install any mods in my wiki at the moment, but I am also going to run into this problem when I get them working I guess.

Thank you for the reply. How did you reference the HTML page? Does your method generate ad results that are relevant to main page content?

Thank you.


> Hi, although it is not a answer to your question, I have created my adsense adds by setting the code from Google in an HTML page and refereced that from a module. I used the following code in my module:
>
>
>
> (The googleads.html file is save in the wiki directory)
>
> I am struggling to install any mods in my wiki at the moment, but I am also going to run into this problem when I get them working I guess.


> Could someone please tell me EXACTLY how to get Google Adsense to work? I installed Tiki's module. It displayed an error about not having the account number. I added this (with the real account number) to parameters:
>
> client=pub-xxxxxxxxxxxxxxxx,display=160*600_as
>
> but then it posts this error:
>
> Display type unknown, you have to enter the banner type

Same error here but I was able to create a new user module in admin modules and then
assign that one instead of calling the adsense module directly.

Named it adsense_2 and put this line in the data section.
{MODULE(module=>adsense,client=pub-xxx...etc,display=120*600_as)}{MODULE}

This also works in a wiki page.

Note: Preview first before assigning or you might spend some time in database land.


> Could someone please tell me EXACTLY how to get Google Adsense to work? I installed Tiki's module. It displayed an error about not having the account number. I added this (with the real account number) to parameters:
>
> client=pub-xxxxxxxxxxxxxxxx,display=160*600_as
>
> but then it posts this error:
>
> Display type unknown, you have to enter the banner type

OK, finally got it working on my site. There was a note in the docs about using
an ampersand for multiple parameters.

Instead of this:
client=pub-xxxxxxxxxxxxxxxx,display=160*600_as

Replace comma with an ampersand.
client=pub-xxxxxxxxxxxxxxxx&display=160*600_as


> Could someone please tell me EXACTLY how to get Google Adsense to work? I installed Tiki's module. It displayed an error about not having the account number. I added this (with the real account number) to parameters:
>
> client=pub-xxxxxxxxxxxxxxxx,display=160*600_as
>
> but then it posts this error:
>
> Display type unknown, you have to enter the banner type
>
> Does Adsense require certain Tiki settings for rows or cache or any other setting? If so, what are they?

No, I don't think so. The adsense module code seems to be buggy. I tried the module several months ago and it worked OK, but maybe something changed either with Google's script or how Tiki and/or the module handles it, but in any case I'm getting the same error message as you. I double-checked the module's files and don't see any obvious problems.

> If Tiki doesn't support Adsense, I would have chosen a different wiki but I don't see why this should be so difficult.

You can use Adsense with Tiki, by making a new template file rather than using a module. See this pageQuestion (make sure the theme is "Tikipedia" — right now the Adsense module is only called from that theme's tiki.tpl file. BTW, this theme will soon be available at themes.tw.oQuestion). Both the "toolbox" at the top of the left column and the Google ads box at the bottom are not actual modules but rather are separate template files with module display code details providing the look and functionality. templates/styles/tikipedia/tiki.tpl is modified with {include file="zukakakina_adsense.tpl"}, for example, added.

The adsense .tpl file is the Google javascript that normally is directly added to your web page, with lines from a module .php file at top and bottom to style it.

I'll do a tutorial page on this if the Adsense module is generally not working and people want a (slightly more complicated) alternative, until problems with the module are worked out. The advantage of this template method over the iframe method is that the ad is actually part of the page it appears in and will reflect its content in ad selection.

-- Gary - zukakakina.comQuestion

Chibaguy,

Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):

http://tikiwiki.org/tiki-view_forum_thread.php?comments_parentId=19965&topics_threshold=0&topics_offset=0&topics_sort_mode=lastPost_desc&topics_find=&forumId=4Question


Thank you.



> > Could someone please tell me EXACTLY how to get Google Adsense to work? I installed Tiki's module. It displayed an error about not having the account number. I added this (with the real account number) to parameters:
> >
> > client=pub-xxxxxxxxxxxxxxxx,display=160*600_as
> >
> > but then it posts this error:
> >
> > Display type unknown, you have to enter the banner type
> >
> > Does Adsense require certain Tiki settings for rows or cache or any other setting? If so, what are they?
>
> No, I don't think so. The adsense module code seems to be buggy. I tried the module several months ago and it worked OK, but maybe something changed either with Google's script or how Tiki and/or the module handles it, but in any case I'm getting the same error message as you. I double-checked the module's files and don't see any obvious problems.
>
> > If Tiki doesn't support Adsense, I would have chosen a different wiki but I don't see why this should be so difficult.
>
> You can use Adsense with Tiki, by making a new template file rather than using a module. See this pageQuestion (make sure the theme is "Tikipedia" — right now the Adsense module is only called from that theme's tiki.tpl file. BTW, this theme will soon be available at themes.tw.oQuestion). Both the "toolbox" at the top of the left column and the Google ads box at the bottom are not actual modules but rather are separate template files with module display code details providing the look and functionality. templates/styles/tikipedia/tiki.tpl is modified with {include file="zukakakina_adsense.tpl"}, for example, added.
>
> The adsense .tpl file is the Google javascript that normally is directly added to your web page, with lines from a module .php file at top and bottom to style it.
>
> I'll do a tutorial page on this if the Adsense module is generally not working and people want a (slightly more complicated) alternative, until problems with the module are worked out. The advantage of this template method over the iframe method is that the ad is actually part of the page it appears in and will reflect its content in ad selection.
>
> — Gary - zukakakina.comQuestion

> Chibaguy,
>
> Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):

I responded there but basically need more details. As for the Adsense module, thinking about it more, I think the best solution would be if the current module code could be fixed (obviously). This is best left to the original author or somebody with better PHP skills than I have. The second best would be to do an alternative module that didn't get its parameters from the Admin Modules page but instead had them hardwired in a new module file. I think I can do this. Last choice would be a non-module template file as I described, which works but doesn't have the Tiki spirit 😉. Anyway, I'll have a go at this as time permits.

-- Gary - zukakakina.comQuestion


Gary,

Pasting the google script in an HTM is easy enough but I didn't know what header to use and didn't know how to refer to the HTM.


PS: The other problem:

I tried your later version of Method 2 (column-free) and it did not work. However, I've since had more time and tried your Method 1 (phpMyAdmin) and it worked fine.

Thank you.








> > Chibaguy,
> >
> > Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):
>
> I responded there but basically need more details. As for the Adsense module, thinking about it more, I think the best solution would be if the current module code could be fixed (obviously). This is best left to the original author or somebody with better PHP skills than I have. The second best would be to do an alternative module that didn't get its parameters from the Admin Modules page but instead had them hardwired in a new module file. I think I can do this. Last choice would be a non-module template file as I described, which works but doesn't have the Tiki spirit 😉. Anyway, I'll have a go at this as time permits.
>
> — Gary - zukakakina.comQuestion




Sorry, I meant TPL not HTM and by "header" I meant what tiki language to put around the google script (it's been a long day).

Thank you.

>
> Gary,
>
> Pasting the google script in an HTM is easy enough but I didn't know what header to use and didn't know how to refer to the HTM.
>
>
> PS: The other problem:
>
> I tried your later version of Method 2 (column-free) and it did not work. However, I've since had more time and tried your Method 1 (phpMyAdmin) and it worked fine.
>
> Thank you.
>
>
>
>
>
>
>
>
> > > Chibaguy,
> > >
> > > Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):
> >
> > I responded there but basically need more details. As for the Adsense module, thinking about it more, I think the best solution would be if the current module code could be fixed (obviously). This is best left to the original author or somebody with better PHP skills than I have. The second best would be to do an alternative module that didn't get its parameters from the Admin Modules page but instead had them hardwired in a new module file. I think I can do this. Last choice would be a non-module template file as I described, which works but doesn't have the Tiki spirit 😉. Anyway, I'll have a go at this as time permits.
> >
> > — Gary - zukakakina.comQuestion
>
>
>
>
>

> Chibaguy,
>
> Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):

I made a "hardwired" version of the ))AdSense(( module, in which the client number and other parameters are edited directly into the module's template file rather than via the Admin Modules page. See GoogleAdSense2Question for details, and to get the files (which are attached to the page). Just put your own information in and upload them as indicated, and "adsense2" should appear in the list on your Admin Module page.

I'm trying the module at my site — seems to work fine. Let me know if there's any problem.

-- Gary - Tiki mooShowQuestion

Gary,

Thank you, that was simple, it worked fine, and it's generating relevant ads. I'm not sure why the standard Tiki is so difficult.

Thank you again.

> > Chibaguy,
> >
> > Yes, please do the tutorial but first please see my new problem here (I tried your advice but no luck):
>
> I made a "hardwired" version of the ))AdSense(( module, in which the client number and other parameters are edited directly into the module's template file rather than via the Admin Modules page. See GoogleAdSense2Question for details, and to get the files (which are attached to the page). Just put your own information in and upload them as indicated, and "adsense2" should appear in the list on your Admin Module page.
>
> I'm trying the module at my site — seems to work fine. Let me know if there's any problem.
>
> — Gary - Tiki mooShowQuestion

Do we have any progress on either method?

Thanks!