google-ads-php: Error Customer Id Login
Hi Team,
I have a problem, now working with the new version for Google Ads but I have this error.
` Grpc\Timeval::__construct() expects parameter 1 to be integer, float given in C:\xampp\htdocs\google_ads_new_version\google-ads-php\vendor\grpc\grpc\src\lib\AbstractCall.php on line 55
Warning: Grpc\Timeval::__construct() expects parameter 1 to be integer, float given in C:\xampp\htdocs\google_ads_new_version\google-ads-php\vendor\grpc\grpc\src\lib\AbstractCall.php on line 55 PHP Fatal error: Uncaught InvalidArgumentException: Timeval expects a long in C:\xampp\htdocs\google_ads_new_version\google-ads-php\vendor\grpc\grpc\src\lib\AbstractCall.php:55`
CUSTOMER_ID = ‘629-195-0585’;
$response = $googleAdsServiceClient->search($customerId, $query, [‘pageSize’ => self::PAGE_SIZE]);
Note: This Customer Id working in the old version in production.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (8 by maintainers)
Hi, @fiboknacky thank for you help you right for this version need another ClientId and accept new API Conditions.
Thank you.
That’s totally fine.
However, the login-customer-id header is necessary, so you need to provide it. You can use this function to provide it programmatically instead.
As hinted in the error message, have you passed the login-customer-id header?
Looks like it’s a duplicate of this issue. Could you please use 64-bit PHP instead?