4.13.3.6 :: Google Adsense

Description


Google Adsense ChunkThe <adsenseChunk> element allows you to place a Google Adsense ad onto your mobile page.

Quick Example


  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <layout>
  4.   <adsenseChunk>
  5.   <channel_id>xxx</channel_id>
  6.   <client_id>xxx</client_id>
  7.   <items_per_page>1</items_per_page>
  8.   <col_border>FFFFFF</col_border>
  9.   <col_bg>252525</col_bg>
  10.   <col_link>0000CC</col_link>
  11.   <col_text>999999</col_text>
  12.   <col_url>008000</col_url>
  13.   </adsenseChunk>
  14.   </layout>
  15.  </wapl>

Child Elements


channel_id


The Google Adsense channel id to serve ads from.

client_id


Your Google adsense client id.

items_per_page


The number of ads to display. Set to 1 for a single layout mode, or 2 for a double layout. No other values are accepted. (Default: 1)

col_border


A hexidecimal colour code for the border colour of the ad (Note: Don't include the '#')

Example:

<col_border>555555</col_border>

col_bg


A hexidecimal colour code for the background colour of the ad (Note: Don't include the '#')

Example:

<col_bg>EEEEEE</col_bg>

col_link


A hexidecimal colour code for the colour of links on the ad (Note: Don't include the '#')

Example:

<col_link>0000CC</col_link>

col_text


A hexidecimal colour code for the colour of text on the ad (Note: Don't include the '#')

Example:

<col_text>000000</col_text>

col_url


A hexidecimal colour code for the colour of urls on the ad (Note: Don't include the '#')

Example:

<col_url>008000</col_url>



Note: The values shown for colours are the defaults used if none are set.

Contents