-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(gam): update api version #676
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, when I add my service account credentials, I get a fatal error:
[28-Jun-2023 23:12:19 UTC] PHP Warning: Network code is not specified. An API function will reject requests if it requires a network code. in /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/vendor/googleads/googleads-php-lib/src/Google/AdsApi/AdManager/AdManagerSessionBuilder.php on line 337
[28-Jun-2023 23:12:19 UTC] PHP Fatal error: Uncaught Error: Class 'Google\AdsApi\AdManager\v202305\ServiceFactory' not found in /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/api/class-api.php:244
Stack trace:
#0 /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/api/class-api.php(213): Newspack_Ads\Providers\GAM\Api->get_networks(Object(Google\AdsApi\AdManager\AdManagerSession))
#1 /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/api/class-api.php(111): Newspack_Ads\Providers\GAM\Api->get_session()
#2 /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/class-gam-model.php(119): Newspack_Ads\Providers\GAM\Api->init()
#3 /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/class-gam-model.php(1139): Newspack_Ads\Providers\GAM_Model::get_api()
#4 /srv/users/user673052a8/apps/user673052a8/pub in /srv/users/user673052a8/apps/user673052a8/public/wp-content/plugins/newspack-ads/includes/providers/gam/api/class-api.php on line 244
Perhaps it's missing a |
I thought that too, but I see no change after doing a |
I'm unable to reproduce the issue and the class it's unable to find should be part of v202305: https://github.com/googleads/googleads-php-lib/blob/main/src/Google/AdsApi/AdManager/v202305/ServiceFactory.php Can you ping me when you're available to take a closer look at your instance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I re-tested on a JN and it's not happening, so it must be something with my dev environment. All good.
## [1.43.1-alpha.1](v1.43.0...v1.43.1-alpha.1) (2023-07-20) ### Bug Fixes * **gam:** update api version ([#676](#676)) ([6f3687d](6f3687d))
🎉 This PR is included in version 1.43.1-alpha.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
## [1.43.1](v1.43.0...v1.43.1) (2023-08-07) ### Bug Fixes * **gam:** update api version ([#676](#676)) ([6f3687d](6f3687d))
🎉 This PR is included in version 1.43.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Updates the GAM API version from
v202208
tov202305
.How to test