安装Google Adwords Api库(使用docker)

问题描述 投票:0回答:1

关于安装库的Googles文档,可在此处找到:https://github.com/googleads/googleads-php-lib/blob/master/README.md#getting-started,指示我们将adsapi_php.ini复制到您的主目录,如下所示:https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/adsapi_php.ini

我在.ini中填写了必要的变量,我使用的是docker,所以我把这个文件放在我的容器中/ var / www / home / node /当我运行命令composer require googleads/googleads-php-lib时,我给出了以下错误:命令提示符:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for googleads/googleads-php-lib ^37.1 -> satisfiable by googleads/googleads-php-lib[37.1.0].
    - googleads/googleads-php-lib 37.1.0 requires ext-soap * -> the requested PHP extension soap is missing from your system.

  To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/etc/php/php.ini
    - /usr/local/etc/php/conf.d/adsapi_php.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-pdo_pgsql.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
    - /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

我认为问题是我的adsapi_php.ini只是在错误的位置,因为它包含我认为必须避免上述问题,但我已经尝试将它放在几个不同的地方,但我总是得到相同的错误。

任何帮助,将不胜感激!

api docker terminal google-adwords
1个回答
0
投票

只是尝试在docker中编辑php.ini(docker exec -t {container} bashand enable那里有扩展soap

© www.soinside.com 2019 - 2024. All rights reserved.