googleads / google-ads-php

Google Ads API Client Library for PHP
https://developers.google.com/google-ads/api/docs/client-libs/php
Apache License 2.0
294 stars 262 forks source link

LinkedCustomerId header is not set when using GoogleAdsClientBuilder #902

Closed heyhsieh closed 1 year ago

heyhsieh commented 1 year ago

Description of the bug: The linked customer id header is not sent when it is configured via the GoogleAdsClientBuilder. Calling withLinkedCustomerId will set the linkedCustomerId property in the builder. However the headers are set by the addFixedHeaderMiddleware method in GoogleAdsGapicClientTrait, which sets the developer token and login customer id headers but doesn't account for the linked customer id LINK.

I found a similar issue that was reported for login-customer-id LINK.

fiboknacky commented 1 year ago

Thanks for reporting. We'll get back to this as soon as we can.

fiboknacky commented 1 year ago

Fixed with v20.1.0