Hello, I am encountering an issue while integrating the Google Ads API into my WordPress plugin. Despite following the setup instructions and successfully installing the googleads-php-lib via Composer, I'm facing a persistent error.
**Error Description:** When trying to initialize the Google Ads Client in my PHP code, I am receiving the following error message: Fatal error: Uncaught Error: Class "OAuth2TokenBuilder" not found in /var/www/html/wp-content/plugins/[Your Plugin Directory]/ga-analytics-plugin.php on line [Line Number] **Steps I Have Taken:** 1. Installed the `googleads-php-lib` using Composer in my WordPress plugin directory. 2. Included the Composer autoloader in my plugin PHP file: `require_once 'vendor/autoload.php';` 3. Attempted to use the `OAuth2TokenBuilder` class as per the library's documentation. I suspect the issue might be related to [any specific suspicions you have, like namespace usage, file paths, etc.], but I am unable to pinpoint the exact cause. Has anyone encountered a similar issue or can provide insights on what might be going wrong? Thank you in advance for your help! -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/cb6d49a1-b825-4e09-b624-8e808ad64cf9n%40googlegroups.com.
