Conta de serviços do Google Adsense

Eu tenho o problema com a API do Google Adsense. Eu usei a conta de serviços para authen e este é o meu código:

require_once dirname(__FILE__) . '/google-api-php-client/Google_Client.php';    
require_once dirname(__FILE__) . '/google-api-php-client/contrib/Google_AdSenseService.php';
require_once dirname(__FILE__) . '/google-api-php-client/contrib/Google_Oauth2Service.php';

$SERVICE_ACCOUNT_PKCS12_FILE_PATH = dirname(__FILE__) . '/keyfile.p12';

// create client object and set app name
$client = new Google_Client();
$client->setApplicationName("XXXX"); // name of your app

// set assertion credentials
$key  = file_get_contents($SERVICE_ACCOUNT_PKCS12_FILE_PATH);
$auth = new Google_AssertionCredentials("[email protected]", // email you added to GA
    array('https://www.googleapis.com/auth/adsense.readonly'), $key);

$client->setAssertionCredentials($auth);
$client->getAuth()->refreshTokenWithAssertion();
$accessToken = $client->getAccessToken();
// other settings
$client->setClientId("XYZ.apps.googleusercontent.com"); // from API console
$service   = new Google_AdsenseService($client);
$optParams = array('metric' => array('earnings'), 'dimension' => 'date');
$data      = $service->reports->generate('2013-01-01', '2013-03-03', $optParams);

E então eu tenho esse erro messege:

Erro fatal: exceção não identificada 'Google_ServiceException' com mensagem 'Erro ao chamar GEThttps://www.googleapis.com/adsense/v1.3/reports?startDate=2013-01-01&endDate=2013-03-03&metric=earnings&dimension=date: (403) O usuário não possui uma conta do AdSense. ' em /opt/lampp/htdocs/googleads/google-api-php-client/io/Google_REST.php:66 Rastreio de pilha: # 0 / opt / lampp / htdocs / googleads / google-api-php-client / io / Google_REST .php (36): Google_REST :: decodeHttpResponse (Objeto (Google_HttpRequest)) # 1 /opt/lampp/htdocs/googleads/google-api-php-client/service/Google_ServiceResource.php(186): Google_REST :: execute (objeto (Google_HttpRequest)) # 2 /opt/lampp/htdocs/googleads/google-api-php-client/contrib/Google_AdSenseService.php(849): Google_ServiceResource -> __ chamada ('gerar', Matriz) # 3 / opt / lampp / htdocs / googleads / index.php (28): Google_ReportsServiceResource-> generate ('2013-01-01', '2013-03-03', Matriz) # 4 {main} lançado em / opt / lampp / htdocs / googleads / google-api-php-client / io / Google_REST.php na linha 66

questionAnswers(2)

yourAnswerToTheQuestion