Hi, I'm having an issue using Google Ads SDK, my application in on Laravel 8 and I'm using PHP Google libraries, I'm trying to create a customer client direclty linked with my manager ID, for doing it I'm using an external Business account that log in with my application credentials and next I generate a googleAdsClient form a php.ini file with service account credentials, I'm sure until this i did everything right, but next when i call
$customerServiceClient = $googleAdsClient->getCustomerServiceClient(); And $response = $googleAdsClient->createCustomerClient($managerCustomerId, $customer); The response return 1. message: "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project." 2. status: "UNAUTHENTICATED" It's like the client that I've generated by using: $oAuth2Credential = (new OAuth2TokenBuilder()) ->fromFile($key_file) ->build(); $googleAdsClient = (new GoogleAdsClientBuilder()) ->withOAuth2Credential($oAuth2Credential) ->fromFile($key_file) ->build(); does not have an access token for this call So I'm here to ask how can it be possible? Is possible to use a service account for generate Clients to Managers ID? Or why auth token is missing if the googleAdsClient build successfully? Is there another better way to do the same thing using createCustomerClient? -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/d8ed26bc-6516-4d08-b85f-7ee4d0f9d3e3n%40googlegroups.com.
