'"code": 403, "message": "Forbidden" when requesting data from YouTube Analytics API in youtube api document

I am creating an app related to customer service and marketing through social media and YouTube are the project i am working on.

I have a job to obtain ads related data from YouTube api. I need to show this data on my app so our client can make sure that their money used in promoting their YouTube channel are not wasted. i am used to work in this api social media related field but this project really give me headache.

First of all i am confused where to start to get the data i obtain. i try to see YouTube analytics and reporting data but keep getting this error when im trying their api.

picture of error

{
  "error": {
    "code": 403,
    "message": "Forbidden",
    "errors": [
      {
        "message": "Forbidden",
        "domain": "global",
        "reason": "forbidden"
      }
    ]
  }
}

i has enable the Youtube analytic and reporting api on my console

my active api

The coding language that i think i wii use is php so it will be great if you can give sugestion.



Solution 1:[1]

If you are not the main user and have just granted rights then maybe this will help:

YouTube APIs - Access mutiple youtube channels (Brand Accounts) using Google Admin account

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Professor Domblebizeps