Hi. how can i disapear error log in the browser?

6 views
Skip to first unread message

phil

unread,
Oct 15, 2011, 12:04:19 AM10/15/11
to AdSense API Forum
I am using google-sensapility-3.0

<?php
include_once(dirname(__FILE__).'/google-sensapility-3.0/
sensapility.php');
global $SENSAPILITY_AUTH;
global $SENSAPILITY_CLIENTS;
$lang = 'ko';
$acctSrvc = $SENSAPILITY_CLIENTS->getService('Account');
$SENSAPILITY_AUTH->setDebugMode(false);

$correspondenceLanguage = $lang;
$websiteLanguage = 'ko';
try{
$SENSAPILITY_AUTH->setDebugAssociation( 'NotAssociated');
$SENSAPILITY_AUTH->setDebugZip($zipcode);
$SENSAPILITY_AUTH->setDebugPhone($phone);
$result = $acctSrvc->createAccount( $email,
'Individual','pptwear.com', $websiteLanguage,
$correspondenceLanguage, true,
array('ContentAds'),'code.google.com') ;
$SENSAPILITY_AUTH->setDebugAssociation( 'NotAssociated');
}
catch (Exception $e)
{
echo "Duplicate $loginEmail\n";
}


And this is error log. but I don't want see error log.
I want disapear error log.

array(1) { [0]=> array(2) { ["type"]=> array(1) { ["value"]=>
string(10) "ContentAds" } ["id"]=> string(23) "ca-
pub-4042624592630261" } } array(1) { [0]=> array(2) { ["type"]=>
array(1) { ["value"]=> string(10) "ContentAds" } ["id"]=> string(23)
"ca-pub-4042624592630261" } } Fault occured!
Code:
Message: soapenv:Server.userException
Detail: The specified email address is already in use.
Created account:

Silvano Luciani

unread,
Oct 21, 2011, 6:49:22 AM10/21/11
to AdSense API Forum
Hello Phil,

please check this code example that will show you how to handle errors
during account creation:
http://code.google.com/p/google-sensapility/source/browse/trunk/standaloneexamples/ErrorHandlingCreateAccount.php

If after that you still have problems or any additional question,
please don't hesitate to post again.

Cheers,
Silvano

--
Silvano Luciani | Developer Programs Engineer

Google UK Limited
Registered Office: Belgrave House, 76 Buckingham Palace Road, London
SW1W 9TQ
Registered in England Number: 3977902
Reply all
Reply to author
Forward
0 new messages