Sessions
From Admob For Developers
Contents |
Sessions
Session tracking is used both by Analytics and Ad serving to enhance are services.
Analytics
Analytics uses Session information passed from the server to help identify visitors as they navigate throughout your mobile site. To receive the proper information, your environment needs to support sessions.
Setup
PHP
By default, PHP ships with auto session ID generation disabled. Automatic Session ID generation needs to be enabled in the PHP Information settings (php.ini). To do this, set the session.auto_start parameter to "On". You can use the php_info() function to verify that sessions are enabled. If you do not wish to modify or create a new php.ini settings file, you can start a new session using the session_start() function.
If managing your own session generation, you will need to set the current session id in the $admob_params array.
$admob_params['SID'] = '<your unique session identifier>'
