Client

From Admob For Developers

Jump to: navigation, search

NOTE: This programmatic interface has been deprecated and should no longer be used. AdMob has ceased updating and maintaining this request interface. At this time, we do not have an alternative API available. This page will be updated once another solution is available.

AdMob for Client Applications

AdMob for Client Applications allows publishers to integrate AdMob advertising into client applications. In most client environments, the standard set of HTTP headers that AdMob uses to target ads in a mobile web environment are not available, but publishers can easily adapt AdMob's core ad request code for serving ads into mobile clients or other non-web environments such as J2ME or BREW, enabling quick and effective monetization across any channel where you interact with users.

How does AdMob for Client Applications work?

  • Ads are requested dynamically using AdMob's standard publisher code. Ads cannot be cached and served at a later date, or in another application session.
  • Publishers request ads that return xHTML (to display text ads). Note that banners/images are not supported. Upon click, these ads launches a browser and displays the ad landing page (note, in some cases this will close or minimize an open application)

Getting Started

1. Register a mobile site with AdMob.

2. Include a token parameter "t" with each ad request (documented here).

3. Do not include the user agent parameter "u"

4. Include the "i" parameter but don't set a value for it. (use i="")

Simple Example

Here is a simple example using the CURL utility.

curl -v --data 'rt=0&s=<your AdMob publisher id>&t=abcd1234&i=' http://r.admob.com/ad_source.php

Explanation

# Invoke "curl" with verbose output (-v)
# Long string within single quotes will be passed as POST data
# rt = 0 means it’s an ad request
# s parameter is the Site ID
# t is the 8-32 character token parameter that somehow uniquely identifies the user or session
# i is usually the IP Address and can be set to blank or a value but must be included in the request
# URL is the location of where to request an ad

Learn more about AdMob request parameters, or contact support@admob.com with any questions.

Personal tools
Documentation