Re: php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi, Thanks for your response. My question is how to specify login-customer-id in the request by php, like this: header("login-customer-id: 1234567890"); ? I have specified the login-customer-id when I built googleAdsClient object, like this: $googleAdsClient = (new

php how to specify login-customer-id in the request

2021-08-16 Thread ma zhiwei
Hi, I am using google-ads-api to fetch campaign performance data, but I was stop by the following error. "message": "The caller does not have permission", "code": 7, "status": "PERMISSION_DENIED" My PHP code: ``` $customerId = "Manager ID"; $oAuth2Credential = (new

Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential

2021-04-01 Thread ma zhiwei
Hi, I am using google ads api to get adwords data, but I got an error when I execute the code. ``` $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile("google_ads_php.ini")->build(); // OAuth2 credentials above. $googleAdsClient = (new