Google Adsense

Author Message

Jan Frode Bentsen

Tuesday 08 April 2008 8:53:40 am

Hi. I tried to implement this in my front page left column without any luck. Do enyone have experience with google ads?

<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxxxxx";
/* 728x90, opprettet 08.04.08 */
google_ad_slot = "xxxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Error message:
Utkastet kunne ikke lagres. (English= the draft could not be stored)
PĂ„krevde data mangler eller er ugyldige: (English = data is missing or are invalid)

Left column: Ukjent tag: <script>. (English = left column; unknown tag:<script>)

I could not find anything on this web page regarding google ads. So any suggestions would be helpful.

Jan Frode Bentsen

Tuesday 08 April 2008 10:34:50 am

Hi, I would suggest putting this code either directly in the frontpage template or create a custom tag and in the template for the custom tag you would place the AdSense code.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/datatypes/xml_block/custom_tags

Jan Frode Bentsen

Saturday 19 April 2008 8:28:19 am

Hi.

I have not worked so much with ez publish. And I have difficulties do understand how to do this, and in with files? Is there any other detailed guideline avaliable?

Or any other way to implement java scripts easy, like google adsense?

H. K.

Sunday 20 April 2008 4:22:36 am

Google ads work with ez publish 4, so your doing something wrong.
Past the rest of your left menu code

Jan Frode Bentsen

Sunday 20 April 2008 9:15:10 am

Hi.

I do not have anything else in the left column. I tried on a site using 3.10 and on another using 4.0

I implement the code using the admin panel, and deactivate the editing tool, so the hard code appear. Is this the wrong way to implement the adsense code?

The error message is something like this in english:

The draft could not be stored, due to data are missing og incomplete
* left colmn : unkonwn tag: <script>

Jan Frode Bentsen

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:05:45
Script start
Timing: Jan 18 2025 15:05:45
Module start 'layout'
Timing: Jan 18 2025 15:05:45
Module start 'content'
Timing: Jan 18 2025 15:05:45
Module end 'content'
Timing: Jan 18 2025 15:05:45
Script end

Main resources:

Total runtime0.6972 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.7813152.6094
Module start 'layout' 0.00500.0028 740.390639.3984
Module start 'content' 0.00780.6872 779.7891527.9531
Module end 'content' 0.69500.0021 1,307.742212.2031
Script end 0.6971  1,319.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4846160.0002
Check MTime0.00130.1890160.0001
Mysql Total
Database connection0.00080.109610.0008
Mysqli_queries0.645792.6193650.0099
Looping result0.00070.1033630.0000
Template Total0.669596.020.3348
Template load0.00220.312620.0011
Template processing0.667495.719320.3337
Template load and register function0.00030.043710.0003
states
state_id_array0.00080.115610.0008
state_identifier_array0.00070.097120.0003
Override
Cache load0.00170.2380390.0000
Sytem overhead
Fetch class attribute can translate value0.00070.103030.0002
Fetch class attribute name0.00100.146750.0002
XML
Image XML parsing0.00040.055730.0001
class_abstraction
Instantiating content class attribute0.00000.001350.0000
General
dbfile0.00080.1129100.0001
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs