Composer - installing latest version of Adwords API

1,178 views
Skip to first unread message

mat...@kagoo.com

unread,
Oct 16, 2017, 1:40:40 AM10/16/17
to AdWords API Forum
I have been using v201609 of Adwords API just fine, but now want to update to the latest API.

I tried installing the latest version with composer:

php composer.phar require googleads/googleads-php-lib


But I get this response:

Using version ^31.0 for googleads/googleads-php-lib

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

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

  Problem 1

   - Installation request for googleads/googleads-php-lib ^31.0 -> satisfiable by googleads/googleads-php-lib[31.0.0].

   - Conclusion: remove google/auth v0.11.1

   - Conclusion: don't install google/auth v0.11.1

   - googleads/googleads-php-lib 31.0.0 requires google/auth ^1.0.0 -> satisfiable by google/auth[v1.0, v1.0.1, v1.1.0].

   - Can only install one of: google/auth[v1.0, v0.11.1].

   - Can only install one of: google/auth[v1.0.1, v0.11.1].

   - Can only install one of: google/auth[v1.1.0, v0.11.1].

   - Installation request for google/auth (locked at v0.11.1) -> satisfiable by google/auth[v0.11.1].

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


My composer.json file is as follows:

{

   "require": {

       "jonnyw/php-phantomjs": "4.*",

       "php": ">=5.3.0",

       "zendframework/zendframework1": "dev-master",

       "phpoffice/phpexcel": "dev-master",

       "mustache/mustache": "~2.5",

       "google/apiclient": "^2.0",

       "googleads/googleads-php-lib": "^25.1"

   },


   "config": {

       "bin-dir": "bin"

   },


    "scripts": {

       "post-install-cmd": [

           "PhantomInstaller\\Installer::installPhantomJS"

       ],


        "post-update-cmd": [

           "PhantomInstaller\\Installer::installPhantomJS"

       ]

   },


    "autoload": {

       "psr-0" : {

           "Oara" : "",

           "Google" : "vendor/google/apiclient/src/"

       }

   }

}


I assume it's some sort of version conflict that is causing the problem, but I can't find out what I need to change. Any help would be greatly appreciate.

Vincent Racaza (AdWords API Team)

unread,
Oct 16, 2017, 3:19:22 AM10/16/17
to AdWords API Forum
Hi Matthew,

This seems to be an issue on the PHP client library itself. With this, I suggest you to post this concern here so the library owners can provide you better assistance on this.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages