Skip to content

Commit 0c730de

Browse files
author
Thang Duong
committed
Release 33.0.0.
1 parent 3458450 commit 0c730de

File tree

4,756 files changed

+140228
-396727
lines changed

Some content is hidden

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

4,756 files changed

+140228
-396727
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
### 33.0.0
2+
3+
##### AdWords
4+
5+
* Accepted [PR #429](https://github.com/googleads/googleads-php-lib/pull/429).
6+
* Removed support and examples for v201702. See deprecation schedule at:
7+
https://developers.google.com/adwords/api/docs/sunset-dates
8+
9+
##### DFP
10+
11+
* Accepted [PR #438](https://github.com/googleads/googleads-php-lib/pull/438).
12+
* Added support and examples for v201802.
13+
* Removed support for v201702.
14+
* Removed examples for v201705.
15+
16+
##### Common
17+
18+
* Fixed [issue
19+
#194](https://github.com/googleads/googleads-php-lib/issues/194).
20+
* Accepted [PR #396](https://github.com/googleads/googleads-php-lib/pull/396).
21+
* Accepted [PR #415](https://github.com/googleads/googleads-php-lib/pull/415).
22+
* Accepted [PR #421](https://github.com/googleads/googleads-php-lib/pull/421).
23+
* Accepted [PR #422](https://github.com/googleads/googleads-php-lib/pull/422).
24+
* Fixed
25+
[issue #426](https://github.com/googleads/googleads-php-lib/issues/426).
26+
127
### 32.1.0
228

329
##### DFP

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ This library determines the home directory of your computer by using
3939
[`EnvironmentalVariables::getHome()`](https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/Common/Util/EnvironmentalVariables.php#L34).
4040

4141
* [AdWords
42-
adsapi_php.ini](https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/adsapi_php.ini)
42+
adsapi_php.ini](https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/adsapi_php.ini)
4343
* [DFP
44-
adsapi_php.ini](https://github.com/googleads/googleads-php-lib/blob/master/examples/Dfp/adsapi_php.ini)
44+
adsapi_php.ini](https://github.com/googleads/googleads-php-lib/blob/master/examples/Dfp/adsapi_php.ini)
4545

4646
### Downloading this library
4747

@@ -345,9 +345,12 @@ To remedy, see [Steps for troubleshooting CA file issues](https://github.com/goo
345345

346346
### Documentation
347347

348-
> PHPDoc is not yet available for the new ads API PHP library. Follow the
349-
> [PHPDoc issue](https://github.com/googleads/googleads-php-lib/issues/194) for
350-
> updates.
348+
PHPDoc for this library can be found in the
349+
[gh-pages](https://github.com/googleads/googleads-php-lib/tree/gh-pages) branch
350+
of this repository and can be viewed at:
351+
352+
* [AdWords](http://googleads.github.io/googleads-php-lib/AdWords/)
353+
* [DFP](http://googleads.github.io/googleads-php-lib/Dfp/)
351354

352355
General AdWords and DFP API documentation can be found on our Google Developers
353356
site:
@@ -356,6 +359,22 @@ site:
356359
* [DFP API
357360
documentation](https://developers.google.com/doubleclick-publishers)
358361

362+
### Coding Style
363+
364+
We use PSR-2 as a coding style standard. Assuming that you're at the root
365+
directory of your project, to check for coding style violations,
366+
run
367+
368+
```
369+
vendor/bin/phpcs src --standard=phpcs_ruleset.xml -np
370+
```
371+
372+
To automatically fix (fixable) coding style violations, run
373+
374+
```
375+
vendor/bin/phpcbf src --standard=phpcs_ruleset.xml
376+
```
377+
359378
### Getting support
360379

361380
For client library specific bug reports, feature requests, and patches,

UPGRADING.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,15 @@ DFP examples location | [Examples](https://github.com/googleads/googleads-ph
198198

199199
## PHPDoc
200200

201-
The old library provided PHPDoc pages under
201+
The old library does not provide PHPDoc pages anymore. The new library provides
202+
PHPDoc pages under
202203
[gh-pages](https://github.com/googleads/googleads-php-lib/tree/gh-pages) on
203-
GitHub. The new library does not provide these yet. See
204-
[issue #194](https://github.com/googleads/googleads-php-lib/issues/194) to track
205-
progress on this.
206-
207-
| | Old library | New library
208-
-------------- | ---------------------------------------------------------------------------------------------------- | -----------
209-
AdWords PHPDoc | [PHPDoc](http://googleads.github.io/googleads-php-lib/\(Deprecated%20-%20old%20library\)%20AdWords/) | TBD
210-
DFP PHPDoc | [PHPDoc](http://googleads.github.io/googleads-php-lib/\(Deprecated%20-%20old%20library\)%20Dfp/) | TBD
204+
GitHub.
205+
206+
| | Old library | New library
207+
-------------- | -------------- | -----------
208+
AdWords PHPDoc | Already sunset | [PHPDoc](http://googleads.github.io/googleads-php-lib/AdWords/)
209+
DFP PHPDoc | Already sunset | [PHPDoc](http://googleads.github.io/googleads-php-lib/Dfp/)
211210

212211
## Questions?
213212

check_conditions.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
if (PHP_INT_SIZE === 4) {
3+
print "\033[1;97;41mYou are using the 32-bit PHP. Please beware that when you"
4+
. " pass numeric values that exceed the 32-bit PHP_INT_MAX to intval(),"
5+
. " you'll not get a correct value.\nIf you plan to try our code examples"
6+
. ", please change all instances of intval() to floatval() first.\n"
7+
. " In addition, when writing your own code, do not apply intval() on any"
8+
. " attributes that are explicitly an integer.\n\033[0m";
9+
}

composer.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
},
1515
"require-dev": {
1616
"php": ">=5.5.17",
17-
"phpunit/phpunit": "^4.8.35 || ^5.7"
17+
"phpunit/phpunit": "^4.8.35 || ^5.7",
18+
"squizlabs/php_codesniffer": "^2.9 || ^3.2"
1819
},
1920
"suggest": {
2021
"php-64bit": ">=5.5.9"
@@ -29,5 +30,9 @@
2930
"name": "Google",
3031
"homepage": "https://github.com/googleads/googleads-php-lib/contributors"
3132
}
32-
]
33+
],
34+
"scripts": {
35+
"pre-update-cmd": "@php check_conditions.php",
36+
"pre-install-cmd": "@php check_conditions.php"
37+
}
3338
}

examples/AdWords/v201702/AccountManagement/AcceptServiceLink.php

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

examples/AdWords/v201702/AccountManagement/CreateAccount.php

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

0 commit comments

Comments
 (0)