I'm implementing google analytics Api.
Authorization is done without problems.After successfully authorization i get 403 return code and get the message : User does not have sufficient permissions for this profile.
My account has google analytics data, tracking multiple websites, and I can access it from web browser without problem. I've allowed Analytics api through google apis console.
Here is the Response i get after successfull authorization :
array(2) {
["http_code"]=>
int(403)
["error"]=>
array(3) {
["errors"]=>
array(1) {
[0]=>
array(3) {
["domain"]=>
string(6) "global"
["reason"]=>
string(23) "insufficientPermissions"
["message"]=>
string(59) "User does not have sufficient permissions for this profile."
}
}
["code"]=>
int(403)
["message"]=>
string(59) "User does not have sufficient permissions for this profile."
}
}
Any immediate help will be highly appreciable. Thanks