Steps i followed
1. Create a new google account.
2. create a google ads manager account.
3. get a google ads developer token for test account.
4. setup cloud console by enabling the google ads api and api credentials(oauth client id and secret) and add same google account as test user in consent screen.
5. create a different google account and create a test manager account and test account in it.
6. setup client library in php and fill up configuration details placed in home directory (developer token of manager account, client id and secret of manager account id cloud console and login customer id of manager account)
7. command php authenticateindesktopapplication.php and get refresh token and then filling it in configuration file.
8. command php getcampaignsphp --customerId xxxxxxxxx (using the customer id of test account) is returning USER PERMISSION DENIED. User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header.
But i did fill up login customer id in google_ads_php.ini file.
Can anyone please point out what am i m doing wrong here?