4.12.3.1 :: Admob

Description


The <admobChunk> element allows you to place an Admob advertising chunk onto your site. You will need to have an account with Admob

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.   <admobChunk>
  5.   <mobile_site_id>xxxxxxxxxxxxxx</mobile_site_id>
  6.   <iphone_site_id>xxxxxxxxxxxxxx</iphone_site_id>
  7.   <iphone_background_color>0000FF</iphone_background_color>
  8.   <iphone_text_color>FF0000</iphone_text_color>
  9.   </admobChunk>
  10.   </layout>
  11.  </wapl>

Child Elements


mobile_site_id


This is the SiteID supplied to you by Admob.

Example:

<mobile_site_id>xxxxxxxxxxxxxxx</mobile_site_id>

iphone_site_id


This is the SiteID for iPhone's supplied to you by Admob.
Example:

<iphone_site_id>xxxxxxxxxxx</iphone_site_id>

iphone_background_color


Specify a background color for adverts when displayed on an iPhone. Please supply the color value as a hex without the hash symbol. i.e Red = FF0000
Example:

<iphone_background_color>FF0000</iphone_background_color>

iphone_text_color


Specify a text color for adverts when displayed on an iPhone. Please supply the color value as a hex without the hash symbol. i.e Black = 000000
Example:

<iphone_text_color>000000</iphone_text_color>

Contents