From 1e9d2c04852cee39da3e11ca599aeb057d621908 Mon Sep 17 00:00:00 2001 From: edujugon <edujugon@gmail.com> Date: Sat, 4 Nov 2017 12:18:51 +0100 Subject: [PATCH 1/2] Update readme with last google-ad version --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c3c56ef..b46306b 100644 --- a/readme.md +++ b/readme.md @@ -162,7 +162,7 @@ or $ads->service(AdGroupAdService::class); ``` -or Any google ads services available under `Google\AdsApi\AdWords\v201708\cm` folder. +or Any google ads services available under `Google\AdsApi\AdWords\v201710\cm` folder. Also you can use the global helper in order the get an instance of Service. From 01ee10c931c27f71fa9ce1af13e23f517cf4d1fc Mon Sep 17 00:00:00 2001 From: edujugon <edujugon@gmail.com> Date: Sat, 4 Nov 2017 12:32:37 +0100 Subject: [PATCH 2/2] config file --- src/Config/config.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/Config/config.php diff --git a/src/Config/config.php b/src/Config/config.php new file mode 100644 index 0000000..96c73f7 --- /dev/null +++ b/src/Config/config.php @@ -0,0 +1,28 @@ +<?php +return [ + //Environment=> test/production + 'env' => 'test', + //Google Ads + 'production' => [ + 'developerToken' => "YOUR-DEV-TOKEN", + 'clientCustomerId' => "CLIENT-CUSTOMER-ID", + 'userAgent' => "YOUR-NAME", + 'clientId' => "CLIENT-ID", + 'clientSecret' => "CLIENT-SECRET", + 'refreshToken' => "REFRESH-TOKEN" + ], + 'test' => [ + 'developerToken' => "YOUR-DEV-TOKEN", + 'clientCustomerId' => "CLIENT-CUSTOMER-ID", + 'userAgent' => "YOUR-NAME", + 'clientId' => "CLIENT-ID", + 'clientSecret' => "CLIENT-SECRET", + 'refreshToken' => "REFRESH-TOKEN" + ], + 'oAuth2' => [ + 'authorizationUri' => 'https://accounts.google.com/o/oauth2/v2/auth', + 'redirectUri' => 'urn:ietf:wg:oauth:2.0:oob', + 'tokenCredentialUri' => 'https://www.googleapis.com/oauth2/v4/token', + 'scope' => 'https://www.googleapis.com/auth/adwords' + ] +]; \ No newline at end of file