Sudden "Could not connect to host" while accessing bing ads API from PHP SDK

Dmitriy Lezhnev 11 Reputation points
2022-09-26T05:56:26.443+00:00

Since 25th of Sept 2022 we see many "SoapFault exception: [HTTP] Could not connect to host" exceptions. We use PHP sdk, upgraded to the latest version as of now.
I logs we see that some requests pass through, while some return that exception.

I see that failed requests were to SearchAccounts, GetUser.

Increasing retry timeouts does not help and error is 100% reproducible, it shows up only for certain requests and not for others.

Any advice what to do here?

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
393 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dmitriy Lezhnev 11 Reputation points
    2022-09-26T17:35:01.13+00:00

    I found the problem, the soap location returned from Bing is... weird: <soap:address location="https://[::]/Api/CustomerManagement/v13/CustomerManagementService.svc" />
    see https://github.com/BingAds/BingAds-PHP-SDK/issues/171

    That explains why only customer related requests failed.

    0 comments No comments