Hi guys.
I use (Old) Google Ads APIs Client Library for PHP v17.0.0
And I'm getting this error in the middle of something:
PHP Fatal error: Uncaught TypeError: Argument 3 passed to AdsUser::GetAuthVarValue() must be of the type array, boolean given, called in /.../library/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php on line 117 and defined in /.../library/vendor/googleads/googleads-php-lib/src/Google/Api/Ads/Common/Lib/AdsUser.php:80
Content of my script is that it gets list of all customer accounts of given MCC account and goes through them, get list of campaigns etc (then adgroups, ads, keywords).
There are tsousands of customer in our MCC. And suddenly, on 157th account, it gives this error.
Customer account ID is
8098601687, campaign ID is 278695493 and it fails on AdGroupService->get operation, but why?? It does hundreds of successful api calls prior to this error and fails exactly on that customer account. Moreover, when I'm running that exact operation separately, it succeeds. That error blows my mind, I'm stuck with it for days already. I hope for your help.
I looked over GetAuthVarValue method, and error is about some INI file parsing. But I don't use that file to authenticate, I use OAuth2 tokens, it works fine for ALL other cases.
Thanks.