From 3d9b6f51514fff547847b5f809b911a9adcbba6b Mon Sep 17 00:00:00 2001 From: Eduardo Marcos Date: Tue, 11 Apr 2017 15:34:58 +0200 Subject: [PATCH] Make the package compatible with last google API version (v201702) --- composer.lock | 307 +++++++++++++++-------------- src/GoogleAds.php | 2 +- src/Reports/Fields.php | 2 +- src/Reports/Format.php | 2 +- src/Reports/Report.php | 4 +- src/Reports/ReportTypes.php | 2 +- src/Services/AdGroup.php | 2 +- src/Services/AdGroupAd.php | 2 +- src/Services/Campaign.php | 2 +- src/Services/Service.php | 3 - src/Services/ServiceCollection.php | 12 +- tests/GoogleAdsTest.php | 4 +- tests/ServicesTest.php | 23 ++- 13 files changed, 187 insertions(+), 180 deletions(-) diff --git a/composer.lock b/composer.lock index e2eabe0..7a73965 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "023120abf54c79439674930528b717f7", + "content-hash": "b96aedc2717f28a33a899f7ce41a9a97", "packages": [ { "name": "doctrine/inflector", @@ -166,16 +166,16 @@ }, { "name": "googleads/googleads-php-lib", - "version": "25.2.0", + "version": "25.4.0", "source": { "type": "git", "url": "https://github.com/googleads/googleads-php-lib.git", - "reference": "6ddf248adf137bec5d06afa7aca634f9b8cf8d09" + "reference": "c3ccadc280b596e548d51bdcb517f52b74d69ee0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/googleads/googleads-php-lib/zipball/6ddf248adf137bec5d06afa7aca634f9b8cf8d09", - "reference": "6ddf248adf137bec5d06afa7aca634f9b8cf8d09", + "url": "https://api.github.com/repos/googleads/googleads-php-lib/zipball/c3ccadc280b596e548d51bdcb517f52b74d69ee0", + "reference": "c3ccadc280b596e548d51bdcb517f52b74d69ee0", "shasum": "" }, "require": { @@ -213,7 +213,7 @@ ], "description": "Google Ads APIs Client Library for PHP (AdWords and DFP)", "homepage": "https://github.com/googleads/googleads-php-lib", - "time": "2017-02-14T21:03:44+00:00" + "time": "2017-03-03T16:58:18+00:00" }, { "name": "guzzlehttp/guzzle", @@ -221,17 +221,17 @@ "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "01324c2fbc7994bca00d10323bc3826a41426a9b" + "reference": "b517bd912afa5aa1033ce434d7138641fd6c31ab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/01324c2fbc7994bca00d10323bc3826a41426a9b", - "reference": "01324c2fbc7994bca00d10323bc3826a41426a9b", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b517bd912afa5aa1033ce434d7138641fd6c31ab", + "reference": "b517bd912afa5aa1033ce434d7138641fd6c31ab", "shasum": "" }, "require": { "guzzlehttp/promises": "^1.0", - "guzzlehttp/psr7": "^1.3.1", + "guzzlehttp/psr7": "^1.4", "php": ">=5.5" }, "require-dev": { @@ -278,7 +278,7 @@ "rest", "web service" ], - "time": "2017-02-05 02:32:13" + "time": "2017-04-07 20:03:48" }, { "name": "guzzlehttp/promises", @@ -286,12 +286,12 @@ "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + "reference": "73815f322dc2d2aa711f8af41f87d3e9d9246bae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", - "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "url": "https://api.github.com/repos/guzzle/promises/zipball/73815f322dc2d2aa711f8af41f87d3e9d9246bae", + "reference": "73815f322dc2d2aa711f8af41f87d3e9d9246bae", "shasum": "" }, "require": { @@ -329,7 +329,7 @@ "keywords": [ "promise" ], - "time": "2016-12-20 10:07:11" + "time": "2017-03-28 16:54:57" }, { "name": "guzzlehttp/psr7", @@ -337,12 +337,12 @@ "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "41972f428b31bc3ebff0707f63dd2165d3ac4cf6" + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/41972f428b31bc3ebff0707f63dd2165d3ac4cf6", - "reference": "41972f428b31bc3ebff0707f63dd2165d3ac4cf6", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", "shasum": "" }, "require": { @@ -394,7 +394,7 @@ "uri", "url" ], - "time": "2017-02-18 11:43:27" + "time": "2017-03-20 17:10:46" }, { "name": "illuminate/console", @@ -402,12 +402,12 @@ "source": { "type": "git", "url": "https://github.com/illuminate/console.git", - "reference": "6d85ccd08b6337eb7275f1d4d1e70589d0b4af6c" + "reference": "cd8ed21d0a75b8606760de40c8dd627e67992db2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/console/zipball/6d85ccd08b6337eb7275f1d4d1e70589d0b4af6c", - "reference": "6d85ccd08b6337eb7275f1d4d1e70589d0b4af6c", + "url": "https://api.github.com/repos/illuminate/console/zipball/cd8ed21d0a75b8606760de40c8dd627e67992db2", + "reference": "cd8ed21d0a75b8606760de40c8dd627e67992db2", "shasum": "" }, "require": { @@ -445,7 +445,7 @@ ], "description": "The Illuminate Console package.", "homepage": "https://laravel.com", - "time": "2017-01-30 22:05:16" + "time": "2017-04-01 02:43:26" }, { "name": "illuminate/contracts", @@ -453,12 +453,12 @@ "source": { "type": "git", "url": "https://github.com/illuminate/contracts.git", - "reference": "981b767f2eec48664ed0f7207a372ddf3c1ec5fb" + "reference": "adca7e8f5e1910a1d43efe970829b30e353cb405" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/contracts/zipball/981b767f2eec48664ed0f7207a372ddf3c1ec5fb", - "reference": "981b767f2eec48664ed0f7207a372ddf3c1ec5fb", + "url": "https://api.github.com/repos/illuminate/contracts/zipball/adca7e8f5e1910a1d43efe970829b30e353cb405", + "reference": "adca7e8f5e1910a1d43efe970829b30e353cb405", "shasum": "" }, "require": { @@ -487,7 +487,7 @@ ], "description": "The Illuminate Contracts package.", "homepage": "https://laravel.com", - "time": "2017-02-10 21:32:45" + "time": "2017-04-05 17:50:48" }, { "name": "illuminate/support", @@ -495,12 +495,12 @@ "source": { "type": "git", "url": "https://github.com/illuminate/support.git", - "reference": "49a2b5c8f46803a7ce8d9fe2737a12393ed7753a" + "reference": "5f100c0dd8bfb5c11e5b9bd04d8df6ad87c0b727" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/illuminate/support/zipball/49a2b5c8f46803a7ce8d9fe2737a12393ed7753a", - "reference": "49a2b5c8f46803a7ce8d9fe2737a12393ed7753a", + "url": "https://api.github.com/repos/illuminate/support/zipball/5f100c0dd8bfb5c11e5b9bd04d8df6ad87c0b727", + "reference": "5f100c0dd8bfb5c11e5b9bd04d8df6ad87c0b727", "shasum": "" }, "require": { @@ -543,7 +543,7 @@ ], "description": "The Illuminate Support package.", "homepage": "https://laravel.com", - "time": "2017-02-15 19:41:59" + "time": "2017-04-11 10:15:12" }, { "name": "monolog/monolog", @@ -551,12 +551,12 @@ "source": { "type": "git", "url": "https://github.com/Seldaek/monolog.git", - "reference": "c82afaa30356d20e08cc74fec7ab9b6ecd38288a" + "reference": "4cdd014b809867f4c040523011d2c3607d55e6b4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/c82afaa30356d20e08cc74fec7ab9b6ecd38288a", - "reference": "c82afaa30356d20e08cc74fec7ab9b6ecd38288a", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4cdd014b809867f4c040523011d2c3607d55e6b4", + "reference": "4cdd014b809867f4c040523011d2c3607d55e6b4", "shasum": "" }, "require": { @@ -621,7 +621,7 @@ "logging", "psr-3" ], - "time": "2017-01-11 16:17:39" + "time": "2017-04-10 07:58:43" }, { "name": "nesbot/carbon", @@ -971,12 +971,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "60c9e716dc715f308b52872c9974856d4441f840" + "reference": "601dc28b33618b3e50617add1add92d90a11d04b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/60c9e716dc715f308b52872c9974856d4441f840", - "reference": "60c9e716dc715f308b52872c9974856d4441f840", + "url": "https://api.github.com/repos/symfony/console/zipball/601dc28b33618b3e50617add1add92d90a11d04b", + "reference": "601dc28b33618b3e50617add1add92d90a11d04b", "shasum": "" }, "require": { @@ -1031,7 +1031,7 @@ ], "description": "Symfony Console Component", "homepage": "https://symfony.com", - "time": "2017-02-16 14:18:56" + "time": "2017-04-05 15:05:16" }, { "name": "symfony/debug", @@ -1039,12 +1039,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/debug.git", - "reference": "897f7e81a6d987380ce0955874dfafff7eb1a804" + "reference": "9e74640b1bde034ec8ba30d426ba8a77113b3895" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/debug/zipball/897f7e81a6d987380ce0955874dfafff7eb1a804", - "reference": "897f7e81a6d987380ce0955874dfafff7eb1a804", + "url": "https://api.github.com/repos/symfony/debug/zipball/9e74640b1bde034ec8ba30d426ba8a77113b3895", + "reference": "9e74640b1bde034ec8ba30d426ba8a77113b3895", "shasum": "" }, "require": { @@ -1087,7 +1087,7 @@ ], "description": "Symfony Debug Component", "homepage": "https://symfony.com", - "time": "2017-02-16 15:37:45" + "time": "2017-04-10 06:31:22" }, { "name": "symfony/polyfill-mbstring", @@ -1154,21 +1154,22 @@ "source": { "type": "git", "url": "https://github.com/symfony/serializer.git", - "reference": "e54f18d95d8480bd97ee67fe5662aea8778628ba" + "reference": "f355354fccbdd13e187bb96db98ed686c17e7740" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/serializer/zipball/e54f18d95d8480bd97ee67fe5662aea8778628ba", - "reference": "e54f18d95d8480bd97ee67fe5662aea8778628ba", + "url": "https://api.github.com/repos/symfony/serializer/zipball/f355354fccbdd13e187bb96db98ed686c17e7740", + "reference": "f355354fccbdd13e187bb96db98ed686c17e7740", "shasum": "" }, "require": { "php": ">=5.5.9" }, "conflict": { + "symfony/dependency-injection": "<3.2", "symfony/property-access": ">=3.0,<3.0.4|>=2.8,<2.8.4", "symfony/property-info": "<3.1", - "symfony/yaml": "<3.1" + "symfony/yaml": "<3.3" }, "require-dev": { "doctrine/annotations": "~1.0", @@ -1180,7 +1181,7 @@ "symfony/http-foundation": "~2.8|~3.0", "symfony/property-access": "~2.8|~3.0", "symfony/property-info": "~3.1", - "symfony/yaml": "~3.1" + "symfony/yaml": "~3.3" }, "suggest": { "doctrine/annotations": "For using the annotation mapping. You will also need doctrine/cache.", @@ -1222,7 +1223,7 @@ ], "description": "Symfony Serializer Component", "homepage": "https://symfony.com", - "time": "2017-02-16 14:15:30" + "time": "2017-04-03 22:04:25" }, { "name": "symfony/translation", @@ -1230,12 +1231,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/translation.git", - "reference": "7a2e419ba26dd4d4ae51491d43c7828a85666dd5" + "reference": "90af9608e6ba4401feaa6f26fde62a66bcff8ff2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/translation/zipball/7a2e419ba26dd4d4ae51491d43c7828a85666dd5", - "reference": "7a2e419ba26dd4d4ae51491d43c7828a85666dd5", + "url": "https://api.github.com/repos/symfony/translation/zipball/90af9608e6ba4401feaa6f26fde62a66bcff8ff2", + "reference": "90af9608e6ba4401feaa6f26fde62a66bcff8ff2", "shasum": "" }, "require": { @@ -1243,13 +1244,14 @@ "symfony/polyfill-mbstring": "~1.0" }, "conflict": { - "symfony/config": "<2.8" + "symfony/config": "<2.8", + "symfony/yaml": "<3.3" }, "require-dev": { "psr/log": "~1.0", "symfony/config": "~2.8|~3.0", - "symfony/intl": "~2.8|~3.0", - "symfony/yaml": "~2.8|~3.0" + "symfony/intl": "^2.8.18|^3.2.5", + "symfony/yaml": "~3.3" }, "suggest": { "psr/log": "To use logging capability in translator", @@ -1286,7 +1288,7 @@ ], "description": "Symfony Translation Component", "homepage": "https://symfony.com", - "time": "2017-02-16 22:50:29" + "time": "2017-04-05 21:43:54" }, { "name": "webmozart/assert", @@ -1442,29 +1444,29 @@ "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb" + "reference": "abe41cb27f4e4207c6f54a09272969fe55e0bbff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/6c52c2722f8460122f96f86346600e1077ce22cb", - "reference": "6c52c2722f8460122f96f86346600e1077ce22cb", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/abe41cb27f4e4207c6f54a09272969fe55e0bbff", + "reference": "abe41cb27f4e4207c6f54a09272969fe55e0bbff", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", - "sebastian/comparator": "^1.1", - "sebastian/recursion-context": "^1.0|^2.0" + "sebastian/comparator": "^1.1|^2.0", + "sebastian/recursion-context": "^1.0|^2.0|^3.0" }, "require-dev": { - "phpspec/phpspec": "^2.0", + "phpspec/phpspec": "^2.5|^3.2", "phpunit/phpunit": "^4.8 || ^5.6.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.7.x-dev" } }, "autoload": { @@ -1497,7 +1499,7 @@ "spy", "stub" ], - "time": "2016-11-21 14:58:47" + "time": "2017-03-03 17:09:02" }, { "name": "phpunit/php-code-coverage", @@ -1505,31 +1507,31 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "7a2bfe73aa381a76cb6d13599ae37bf74a12a02f" + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7a2bfe73aa381a76cb6d13599ae37bf74a12a02f", - "reference": "7a2bfe73aa381a76cb6d13599ae37bf74a12a02f", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ef7b2f56815df854e66ceaee8ebe9393ae36a40d", + "reference": "ef7b2f56815df854e66ceaee8ebe9393ae36a40d", "shasum": "" }, "require": { + "ext-dom": "*", + "ext-xmlwriter": "*", "php": "^5.6 || ^7.0", - "phpunit/php-file-iterator": "~1.3", - "phpunit/php-text-template": "~1.2", - "phpunit/php-token-stream": "^1.4.2", - "sebastian/code-unit-reverse-lookup": "~1.0", + "phpunit/php-file-iterator": "^1.3", + "phpunit/php-text-template": "^1.2", + "phpunit/php-token-stream": "^1.4.2 || ^2.0", + "sebastian/code-unit-reverse-lookup": "^1.0", "sebastian/environment": "^1.3.2 || ^2.0", - "sebastian/version": "~1.0|~2.0" + "sebastian/version": "^1.0 || ^2.0" }, "require-dev": { - "ext-xdebug": ">=2.1.4", - "phpunit/phpunit": "^5.4" + "ext-xdebug": "^2.1.4", + "phpunit/phpunit": "^5.7" }, "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.4.0", - "ext-xmlwriter": "*" + "ext-xdebug": "^2.5.1" }, "type": "library", "extra": { @@ -1560,7 +1562,7 @@ "testing", "xunit" ], - "time": "2017-01-24 16:35:00" + "time": "2017-04-02 07:44:40" }, { "name": "phpunit/php-file-iterator", @@ -1652,25 +1654,30 @@ }, { "name": "phpunit/php-timer", - "version": "1.0.8", + "version": "dev-master", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260" + "reference": "d107f347d368dd8a384601398280c7c608390ab7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260", - "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/d107f347d368dd8a384601398280c7c608390ab7", + "reference": "d107f347d368dd8a384601398280c7c608390ab7", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4|~5" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, "autoload": { "classmap": [ "src/" @@ -1692,7 +1699,7 @@ "keywords": [ "timer" ], - "time": "2016-05-12T18:03:57+00:00" + "time": "2017-03-07 15:42:04" }, { "name": "phpunit/php-token-stream", @@ -1700,25 +1707,25 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b" + "reference": "9ddb181faa4a3841fe131c357fd01de75cbb4da9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3b402f65a4cc90abf6e1104e388b896ce209631b", - "reference": "3b402f65a4cc90abf6e1104e388b896ce209631b", + "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/9ddb181faa4a3841fe131c357fd01de75cbb4da9", + "reference": "9ddb181faa4a3841fe131c357fd01de75cbb4da9", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=5.3.3" + "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2" + "phpunit/phpunit": "^5.7 || ^6.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4-dev" + "dev-master": "2.0-dev" } }, "autoload": { @@ -1741,7 +1748,7 @@ "keywords": [ "tokenizer" ], - "time": "2016-11-15 14:06:22" + "time": "2017-03-07 07:36:57" }, { "name": "phpunit/phpunit", @@ -1749,12 +1756,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "184bc0918ff5fb0b2014486a1925ad1105403b65" + "reference": "69c4f49ff376af2692bad9cebd883d17ebaa98a1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/184bc0918ff5fb0b2014486a1925ad1105403b65", - "reference": "184bc0918ff5fb0b2014486a1925ad1105403b65", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/69c4f49ff376af2692bad9cebd883d17ebaa98a1", + "reference": "69c4f49ff376af2692bad9cebd883d17ebaa98a1", "shasum": "" }, "require": { @@ -1823,7 +1830,7 @@ "testing", "xunit" ], - "time": "2017-02-16 10:06:27" + "time": "2017-04-03 02:22:27" }, { "name": "phpunit/phpunit-mock-objects", @@ -1831,12 +1838,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24" + "reference": "4001a301f86fc006c32f532a741ab613f2bd8990" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", - "reference": "3ab72b65b39b491e0c011e2e09bb2206c2aa8e24", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/4001a301f86fc006c32f532a741ab613f2bd8990", + "reference": "4001a301f86fc006c32f532a741ab613f2bd8990", "shasum": "" }, "require": { @@ -1882,7 +1889,7 @@ "mock", "xunit" ], - "time": "2016-12-08 20:27:08" + "time": "2017-03-07 08:47:31" }, { "name": "sebastian/code-unit-reverse-lookup", @@ -1890,19 +1897,19 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "11606652af09e847cdbbbc3ca17df26b1173a454" + "reference": "3488be0a7b346cd6e5361510ed07e88f9bea2e88" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/11606652af09e847cdbbbc3ca17df26b1173a454", - "reference": "11606652af09e847cdbbbc3ca17df26b1173a454", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/3488be0a7b346cd6e5361510ed07e88f9bea2e88", + "reference": "3488be0a7b346cd6e5361510ed07e88f9bea2e88", "shasum": "" }, "require": { - "php": ">=5.6" + "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~5" + "phpunit/phpunit": "^5.7 || ^6.0" }, "type": "library", "extra": { @@ -1927,7 +1934,7 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", - "time": "2016-12-06 20:05:00" + "time": "2017-03-04 10:23:55" }, { "name": "sebastian/comparator", @@ -1935,12 +1942,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be" + "reference": "18a5d97c25f408f48acaf6d1b9f4079314c5996a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", - "reference": "2b7424b55f5047b47ac6e5ccb20b2aea4011d9be", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/18a5d97c25f408f48acaf6d1b9f4079314c5996a", + "reference": "18a5d97c25f408f48acaf6d1b9f4079314c5996a", "shasum": "" }, "require": { @@ -1991,7 +1998,7 @@ "compare", "equality" ], - "time": "2017-01-29 09:50:25" + "time": "2017-03-07 10:34:43" }, { "name": "sebastian/diff", @@ -1999,19 +2006,19 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "d0814318784b7756fb932116acd19ee3b0cbe67a" + "reference": "763d7adeb8c35d2af2b04c0f6cafeee059074dfb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/d0814318784b7756fb932116acd19ee3b0cbe67a", - "reference": "d0814318784b7756fb932116acd19ee3b0cbe67a", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/763d7adeb8c35d2af2b04c0f6cafeee059074dfb", + "reference": "763d7adeb8c35d2af2b04c0f6cafeee059074dfb", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": "^5.3.3 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "~4.8" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { @@ -2043,7 +2050,7 @@ "keywords": [ "diff" ], - "time": "2016-10-03 07:45:03" + "time": "2017-03-07 07:26:53" }, { "name": "sebastian/environment", @@ -2051,19 +2058,19 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac" + "reference": "144fedf9aa8e3f1c52199f3634eb699cb59741d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/5795ffe5dc5b02460c3e34222fee8cbe245d8fac", - "reference": "5795ffe5dc5b02460c3e34222fee8cbe245d8fac", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/144fedf9aa8e3f1c52199f3634eb699cb59741d9", + "reference": "144fedf9aa8e3f1c52199f3634eb699cb59741d9", "shasum": "" }, "require": { "php": "^5.6 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^5.0" + "phpunit/phpunit": "^5.7 || ^6.0" }, "type": "library", "extra": { @@ -2093,29 +2100,29 @@ "environment", "hhvm" ], - "time": "2016-11-26 07:53:53" + "time": "2017-03-07 12:59:58" }, { "name": "sebastian/exporter", - "version": "dev-master", + "version": "2.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4" + "reference": "5e8e30670c3f36481e75211dbbcfd029a41ebf07" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", - "reference": "ce474bdd1a34744d7ac5d6aad3a46d48d9bac4c4", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/5e8e30670c3f36481e75211dbbcfd029a41ebf07", + "reference": "5e8e30670c3f36481e75211dbbcfd029a41ebf07", "shasum": "" }, "require": { - "php": ">=5.3.3", - "sebastian/recursion-context": "~2.0" + "php": "^5.3.3 || ^7.0", + "sebastian/recursion-context": "^2.0" }, "require-dev": { "ext-mbstring": "*", - "phpunit/phpunit": "~4.4" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" }, "type": "library", "extra": { @@ -2160,7 +2167,7 @@ "export", "exporter" ], - "time": "2016-11-19 08:54:04" + "time": "2017-03-07T10:36:49+00:00" }, { "name": "sebastian/global-state", @@ -2168,12 +2175,12 @@ "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "5a2b9ba59e8cf82fd1fdd7efb7d7846fd69ac36d" + "reference": "cea85a84b00f2795341ebbbca4fa396347f2494e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/5a2b9ba59e8cf82fd1fdd7efb7d7846fd69ac36d", - "reference": "5a2b9ba59e8cf82fd1fdd7efb7d7846fd69ac36d", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/cea85a84b00f2795341ebbbca4fa396347f2494e", + "reference": "cea85a84b00f2795341ebbbca4fa396347f2494e", "shasum": "" }, "require": { @@ -2211,28 +2218,28 @@ "keywords": [ "global state" ], - "time": "2016-10-03 07:46:22" + "time": "2017-02-23 14:11:06" }, { "name": "sebastian/object-enumerator", - "version": "dev-master", + "version": "2.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35" + "reference": "c956fe7a68318639f694fc6bba0c89b7cdf1b08c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35", - "reference": "96f8a3f257b69e8128ad74d3a7fd464bcbaa3b35", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/c956fe7a68318639f694fc6bba0c89b7cdf1b08c", + "reference": "c956fe7a68318639f694fc6bba0c89b7cdf1b08c", "shasum": "" }, "require": { - "php": ">=5.6", - "sebastian/recursion-context": "~2.0" + "php": "^5.6 || ^7.0", + "sebastian/recursion-context": "^2.0" }, "require-dev": { - "phpunit/phpunit": "~5" + "phpunit/phpunit": "^5.7" }, "type": "library", "extra": { @@ -2257,20 +2264,20 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", - "time": "2016-11-19 07:35:10" + "time": "2017-03-07T10:37:45+00:00" }, { "name": "sebastian/recursion-context", - "version": "dev-master", + "version": "2.0.x-dev", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a" + "reference": "7e4d7c56f6e65d215f71ad913a5256e5439aca1c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/2c3ba150cbec723aa057506e73a8d33bdb286c9a", - "reference": "2c3ba150cbec723aa057506e73a8d33bdb286c9a", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/7e4d7c56f6e65d215f71ad913a5256e5439aca1c", + "reference": "7e4d7c56f6e65d215f71ad913a5256e5439aca1c", "shasum": "" }, "require": { @@ -2310,7 +2317,7 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "http://www.github.com/sebastianbergmann/recursion-context", - "time": "2016-11-19 07:33:16" + "time": "2017-03-08T08:21:15+00:00" }, { "name": "sebastian/resource-operations", @@ -2403,12 +2410,12 @@ "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "67119aa2e7d6f8a584ddc8658c9f21309eb83ead" + "reference": "192c21118ef5ea3c45e9982c81a718f629643440" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/67119aa2e7d6f8a584ddc8658c9f21309eb83ead", - "reference": "67119aa2e7d6f8a584ddc8658c9f21309eb83ead", + "url": "https://api.github.com/repos/symfony/yaml/zipball/192c21118ef5ea3c45e9982c81a718f629643440", + "reference": "192c21118ef5ea3c45e9982c81a718f629643440", "shasum": "" }, "require": { @@ -2450,7 +2457,7 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2017-02-17 15:52:41" + "time": "2017-04-10 06:31:22" } ], "aliases": [], diff --git a/src/GoogleAds.php b/src/GoogleAds.php index 2741938..64b0feb 100644 --- a/src/GoogleAds.php +++ b/src/GoogleAds.php @@ -107,7 +107,7 @@ public function fields() /** * Set the google adwords service. * - * @param \Google\AdsApi\AdWords\v201609\cm\* $service + * @param \Google\AdsApi\AdWords\v201702\cm\* $service * @return \Edujugon\GoogleAds\Services\Service */ public function service($service) diff --git a/src/Reports/Fields.php b/src/Reports/Fields.php index 9b37737..9743e8d 100644 --- a/src/Reports/Fields.php +++ b/src/Reports/Fields.php @@ -3,7 +3,7 @@ use Edujugon\GoogleAds\Session\AdwordsSession; use Google\AdsApi\AdWords\AdWordsServices; -use Google\AdsApi\AdWords\v201609\cm\ReportDefinitionService; +use Google\AdsApi\AdWords\v201702\cm\ReportDefinitionService; /** diff --git a/src/Reports/Format.php b/src/Reports/Format.php index 3a7f5ff..a83168b 100644 --- a/src/Reports/Format.php +++ b/src/Reports/Format.php @@ -11,7 +11,7 @@ use Edujugon\GoogleAds\Exceptions\ReportFormat; -use Google\AdsApi\AdWords\Reporting\v201609\DownloadFormat; +use Google\AdsApi\AdWords\Reporting\v201702\DownloadFormat; use ReflectionClass; abstract class Format diff --git a/src/Reports/Report.php b/src/Reports/Report.php index 5e2a988..0064e41 100644 --- a/src/Reports/Report.php +++ b/src/Reports/Report.php @@ -11,8 +11,8 @@ use Edujugon\GoogleAds\Session\AdwordsSession; -use Google\AdsApi\AdWords\Reporting\v201609\ReportDownloader; -use Google\AdsApi\AdWords\v201609\cm\ApiException; +use Google\AdsApi\AdWords\Reporting\v201702\ReportDownloader; +use Google\AdsApi\AdWords\v201702\cm\ApiException; class Report { diff --git a/src/Reports/ReportTypes.php b/src/Reports/ReportTypes.php index ffe3c1e..c2d2d9d 100644 --- a/src/Reports/ReportTypes.php +++ b/src/Reports/ReportTypes.php @@ -1,7 +1,7 @@ assertInstanceOf(\Google\AdsApi\AdWords\v201609\cm\CampaignService::class,$service->getService()); + $this->assertInstanceOf(\Google\AdsApi\AdWords\v201702\cm\CampaignService::class,$service->getService()); } @@ -117,15 +117,18 @@ public function update_campaign_name() $results = $campaignService->select('CampaignId','CampaignName')->get(); $campaign = $results->where('id',$this->testedCampaignId)->set('name','hello !!'); + if(! $campaign->isEmpty()){ - $campaign = $campaign->save(); + $changed = $campaign->save(); - if($campaign) - { - $this->assertInstanceOf(\Google\AdsApi\AdWords\v201609\cm\CampaignReturnValue::class,$campaign); + if($changed) + { + $this->assertInstanceOf(\Google\AdsApi\AdWords\v201702\cm\CampaignReturnValue::class,$changed); - $this->assertEquals('hello !!',$campaign->getValue()[0]->getName()); + $this->assertEquals('hello !!',$changed->getValue()[0]->getName()); + } } + } /** @test */ @@ -134,16 +137,16 @@ public function create_new_campaign() // $campaignService = (new \Edujugon\GoogleAds\Services\Service(CampaignService::class))->getService(); // // //Create the campaign -// $campaign = new \Google\AdsApi\AdWords\v201609\cm\Campaign(); +// $campaign = new \Google\AdsApi\AdWords\v201702\cm\Campaign(); // $campaign->setName('My first campaign'); -// $campaign->setStatus(\Google\AdsApi\AdWords\v201609\cm\CampaignStatus::PAUSED); +// $campaign->setStatus(\Google\AdsApi\AdWords\v201702\cm\CampaignStatus::PAUSED); // // $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); // $biddingStrategyConfiguration->setBiddingStrategyType(BiddingStrategyType::MANUAL_CPC); // $campaign->setBiddingStrategyConfiguration($biddingStrategyConfiguration); // // //Budget -// $budgetService = (new \Edujugon\GoogleAds\Services\Service(\Google\AdsApi\AdWords\v201609\cm\BudgetService::class))->getService(); +// $budgetService = (new \Edujugon\GoogleAds\Services\Service(\Google\AdsApi\AdWords\v201702\cm\BudgetService::class))->getService(); // $sharedBudget = new Budget(); // $budget = new Budget(); //