Skip to content

Commit a798904

Browse files
committed
Preparing src for release 8.1.0
1 parent 683f5d0 commit a798904

File tree

442 files changed

+37127
-25125
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

442 files changed

+37127
-25125
lines changed

ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
### 8.1.0
2+
3+
AdWords:
4+
- Fixed [issue #119](https://github.com/googleads/googleads-php-lib/issues/119).
5+
6+
DFP:
7+
- Added support for v201602.
8+
- Removed examples for v201502 (deprecated).
9+
- Removed support for v201411 (sunset).
10+
111
### 8.0.0
212

313
AdWords:

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,11 @@ below.
166166
- REQUEST_INFO_LOG: Logs all requests from the client library along
167167
with information such as the timestamp, email, service, method,
168168
request Id, response time and which server was used. The default
169-
behavior is to log this information to "logs/request_info.log" relative to
169+
behavior is to log this information to "request_info.log" relative to
170170
your project's home directory.
171171

172172
- SOAP_XML_LOG: Logs all incoming and outgoing SOAP requests/responses. The
173-
default behavior is to log this information to "logs/soap_xml.log" relative
173+
default behavior is to log this information to "soap_xml.log" relative
174174
to your project's home directory. Sensitive information, such as
175175
authentication tokens, will be stripped.
176176

@@ -187,6 +187,26 @@ Logging can be enabled using the following methods.
187187
You can use the methods of the Logger class directly for even more control over
188188
how requests are logged.
189189

190+
### Notes about using composer.json
191+
192+
As there are some classes declared with the same names in each version directory
193+
under `src/Google/Api/Ads/AdWords/Util`, this path cannot be included in
194+
`classmap` of `composer.json`.
195+
196+
Thus, if you use composer, you will still need to manually copy over the version
197+
of the utility files you need to use.
198+
For instance, if you use `classmap` and v201601 of this library, you may add the
199+
following to your project's `composer.json`:
200+
201+
```json
202+
"classmap": [
203+
"vendor/googleads/googleads-php-lib/src/Google/Api/Ads/AdWords/Util/v201601"
204+
]
205+
```
206+
207+
We are working on rewriting this library with namespacing and PSR-4 support.
208+
The progress and discussion of this work can be found at issue
209+
[#4](https://github.com/googleads/googleads-php-lib/issues/4).
190210

191211
### Where do I submit client library bug reports, feature requests, and patches?
192212

examples/AdWords/v201509/AccountManagement/GetAccountHierarchy.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function GetAccountHierarchyExample(AdWordsUser $user) {
6161
if (isset($graph->links)) {
6262
foreach ($graph->links as $link) {
6363
$childLinks[$link->managerCustomerId][] = $link;
64-
$parentLinks[$link->clientCustomerId][] = $link;
64+
$parentLinks[$link->clientCustomerId] = $link;
6565
}
6666
}
6767
foreach ($graph->entries as $account) {
@@ -79,9 +79,13 @@ function GetAccountHierarchyExample(AdWordsUser $user) {
7979
}
8080
}
8181

82-
// Display account tree.
83-
print "(Customer Id, Account Name)\n";
84-
DisplayAccountTree($rootAccount, $accounts, $childLinks, 0);
82+
if ($rootAccount !== null) {
83+
// Display account tree.
84+
print "(Customer Id, Account Name)\n";
85+
DisplayAccountTree($rootAccount, $accounts, $childLinks, 0);
86+
} else {
87+
printf("No accounts were found.\n");
88+
}
8589
}
8690

8791
/**

examples/AdWords/v201601/AccountManagement/GetAccountHierarchy.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function GetAccountHierarchyExample(AdWordsUser $user) {
6161
if (isset($graph->links)) {
6262
foreach ($graph->links as $link) {
6363
$childLinks[$link->managerCustomerId][] = $link;
64-
$parentLinks[$link->clientCustomerId][] = $link;
64+
$parentLinks[$link->clientCustomerId] = $link;
6565
}
6666
}
6767
foreach ($graph->entries as $account) {
@@ -79,9 +79,13 @@ function GetAccountHierarchyExample(AdWordsUser $user) {
7979
}
8080
}
8181

82-
// Display account tree.
83-
print "(Customer Id, Account Name)\n";
84-
DisplayAccountTree($rootAccount, $accounts, $childLinks, 0);
82+
if ($rootAccount !== null) {
83+
// Display account tree.
84+
print "(Customer Id, Account Name)\n";
85+
DisplayAccountTree($rootAccount, $accounts, $childLinks, 0);
86+
} else {
87+
printf("No accounts were found.\n");
88+
}
8589
}
8690

8791
/**

examples/Dfp/v201511/InventoryService/CreateMobileAdUnit.php

Lines changed: 0 additions & 90 deletions
This file was deleted.

examples/Dfp/v201511/InventoryService/CreateVideoAdUnit.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
$adUnit->description = 'Ad unit description.';
6565
$adUnit->targetWindow = 'BLANK';
6666
$adUnit->explicitlyTargeted = true;
67-
$adUnit->targetPlatform = 'WEB';
6867

6968
// Create master ad unit size.
7069
$masterAdUnitSize = new AdUnitSize();

examples/Dfp/v201502/ActivityGroupService/CreateActivityGroups.php renamed to examples/Dfp/v201602/ActivityGroupService/CreateActivityGroups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* limitations under the License.
2121
*
2222
* @package GoogleApiAdsDfp
23-
* @subpackage v201502
23+
* @subpackage v201602
2424
* @category WebServices
2525
* @copyright 2013, Google Inc. All Rights Reserved.
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
@@ -46,7 +46,7 @@
4646
$user->LogDefaults();
4747

4848
// Get the ActivityGroupService.
49-
$activityGroupService = $user->GetService('ActivityGroupService', 'v201502');
49+
$activityGroupService = $user->GetService('ActivityGroupService', 'v201602');
5050

5151
// Set the ID of the advertiser company this activity group is associated
5252
// with.

examples/Dfp/v201502/ActivityGroupService/GetActiveActivityGroups.php renamed to examples/Dfp/v201602/ActivityGroupService/GetActiveActivityGroups.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* limitations under the License.
2121
*
2222
* @package GoogleApiAdsDfp
23-
* @subpackage v201502
23+
* @subpackage v201602
2424
* @category WebServices
2525
* @copyright 2014, Google Inc. All Rights Reserved.
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
@@ -35,7 +35,7 @@
3535
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
3636

3737
require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php';
38-
require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php';
38+
require_once 'Google/Api/Ads/Dfp/Util/v201602/StatementBuilder.php';
3939
require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php';
4040

4141
try {
@@ -47,7 +47,7 @@
4747
$user->LogDefaults();
4848

4949
// Get the ActivityGroupService.
50-
$activityGroupService = $user->GetService('ActivityGroupService', 'v201502');
50+
$activityGroupService = $user->GetService('ActivityGroupService', 'v201602');
5151

5252
// Create a statement to select only active activity groups.
5353
$statementBuilder = new StatementBuilder();

examples/Dfp/v201502/ActivityGroupService/GetAllActivityGroups.php renamed to examples/Dfp/v201602/ActivityGroupService/GetAllActivityGroups.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* limitations under the License.
2121
*
2222
* @package GoogleApiAdsDfp
23-
* @subpackage v201502
23+
* @subpackage v201602
2424
* @category WebServices
2525
* @copyright 2014, Google Inc. All Rights Reserved.
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
@@ -35,7 +35,7 @@
3535
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
3636

3737
require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php';
38-
require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php';
38+
require_once 'Google/Api/Ads/Dfp/Util/v201602/StatementBuilder.php';
3939
require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php';
4040

4141
try {
@@ -47,7 +47,7 @@
4747
$user->LogDefaults();
4848

4949
// Get the ActivityGroupService.
50-
$activityGroupService = $user->GetService('ActivityGroupService', 'v201502');
50+
$activityGroupService = $user->GetService('ActivityGroupService', 'v201602');
5151

5252
// Create a statement to select all activity groups.
5353
$statementBuilder = new StatementBuilder();

examples/Dfp/v201502/ActivityGroupService/UpdateActivityGroups.php renamed to examples/Dfp/v201602/ActivityGroupService/UpdateActivityGroups.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* limitations under the License.
2121
*
2222
* @package GoogleApiAdsDfp
23-
* @subpackage v201502
23+
* @subpackage v201602
2424
* @category WebServices
2525
* @copyright 2014, Google Inc. All Rights Reserved.
2626
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
@@ -35,7 +35,7 @@
3535
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
3636

3737
require_once 'Google/Api/Ads/Dfp/Lib/DfpUser.php';
38-
require_once 'Google/Api/Ads/Dfp/Util/v201502/StatementBuilder.php';
38+
require_once 'Google/Api/Ads/Dfp/Util/v201602/StatementBuilder.php';
3939
require_once dirname(__FILE__) . '/../../../Common/ExampleUtils.php';
4040

4141
// Set the ID of the activity group to update.
@@ -53,7 +53,7 @@
5353
$user->LogDefaults();
5454

5555
// Get the ActivityGroupService.
56-
$activityGroupService = $user->GetService('ActivityGroupService', 'v201502');
56+
$activityGroupService = $user->GetService('ActivityGroupService', 'v201602');
5757

5858
// Create a statement to select a single activity group by ID.
5959
$statementBuilder = new StatementBuilder();

0 commit comments

Comments
 (0)