Hi all,
I'm very much a novice in this area to apologies if I explain myself poorly. Any help that anyone can provide would be very very much appreciated.
We've been using Adwords API for a few years, though it was set up by a person who's no longer with the company. We received the notice about migrating to Ads API, and anticipated that our existing API would stop working in April 2022. Well, it didn't; thankfully, it carried on working.
We recently updated our PHP version to 8.1.11. In the days since, we've noticed that our Adwords API calls no longer work. Is this connected to the PHP upgrade, or is this coincidental?
I've tried searching and searching for help with migration, but am very confused about where to go and what to do. No help page I've found seems to provide information that's specific to our situation.
Here's what I can think to do. I'm going to post some of the API functions and calls we use, and hopefully people can let me know what should be expected to work and not work:
$user = new AdWordsServices();
$oAuth2Credential = (new OAuth2TokenBuilder())
->fromFile($_SERVER['DOCUMENT_ROOT']."/adsapi_php.ini")->build();
$session = (new AdWordsSessionBuilder())->fromFile($_SERVER['DOCUMENT_ROOT']."/adsapi_php.ini")->withOAuth2Credential($oAuth2Credential)->build();
$targetingIdeaService = $user->get($session,TargetingIdeaService::class);
There's much more but this might be a good starting point. Should this code still work?
Let me know if you need any more info...
Thanks,
Nick