Skip to content

Commit 4453b02

Browse files
author
Vincent Tsao
committed
Preparing src for release 6.0.0
1 parent 4b74737 commit 4453b02

File tree

715 files changed

+230265
-6849
lines changed

Some content is hidden

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

715 files changed

+230265
-6849
lines changed

ChangeLog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 6.0.0
2+
3+
AdWords:
4+
- Removed the applicationToken parameter from the AdWordsUser.php constructor, as applicationToken is no longer required and ignored. Please see the [CreateAdWordsUserWithoutIniFile.php](https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php) auth example for updated usage.
5+
6+
DFP:
7+
- Added support for v201505.
8+
- Refactored utility classes so they are now version specific.
9+
- Removed ServiceUtils.php from all versions. Please see the [migration guide](https://github.com/googleads/googleads-php-lib/wiki/Migrating-off-of-DFP-ServiceUtils-functions) for more information.
10+
- Removed ReportUtils.php from v201505 as it is deprecated. Please use ReportDownloader.php instead.
11+
- Updated v201505 examples that deal with date time to ensure timezones are passed in anywhere date times are used.
12+
- Removed deprecated functions from DateTimeUtils.php.
13+
114
### 5.9.0
215

316
AdWords:

examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function RunExample(AdWordsUser $user) {
6161
);
6262

6363
// See AdWordsUser constructor
64-
$user = new AdWordsUser(NULL, DEVELOPER_TOKEN, NULL, USER_AGENT, NULL, NULL,
64+
$user = new AdWordsUser(null, DEVELOPER_TOKEN, USER_AGENT, null, null,
6565
$oauth2Info);
6666

6767
$user->LogAll();

examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
* @return array the user's OAuth 2 credentials
3636
*/
3737
function GetOAuth2Credential(AdWordsUser $user) {
38-
$redirectUri = NULL;
39-
$offline = TRUE;
38+
$redirectUri = null;
39+
$offline = true;
4040
// Get the authorization URL for the OAuth2 token.
4141
// No redirect URL is being used since this is an installed application. A web
4242
// application would pass in a redirect URL back to the application,
@@ -92,7 +92,7 @@ function GetOAuth2Credential(AdWordsUser $user) {
9292
);
9393

9494
// See AdWordsUser constructor
95-
$user = new AdWordsUser(NULL, NULL, NULL, NULL, NULL, NULL, $oauth2Info);
95+
$user = new AdWordsUser(null, null, null, null, null, $oauth2Info);
9696

9797
$user->LogAll();
9898

examples/AdWords/v201502/Targeting/AddCampaignTargetingCriteria.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ function AddCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) {
102102
$operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD');
103103
}
104104

105+
// Add a negative campaign criterion.
106+
$negativeKeyword = new Keyword();
107+
$negativeKeyword->text = 'jupiter cruise';
108+
$negativeKeyword->matchType = 'BROAD';
109+
$negativeCriterion = new NegativeCampaignCriterion();
110+
$negativeCriterion->campaignId = $campaignId;
111+
$negativeCriterion->criterion = $negativeKeyword;
112+
113+
$operations[] = new CampaignCriterionOperation($negativeCriterion, 'ADD');
114+
105115
// Make the mutate request.
106116
$result = $campaignCriterionService->mutate($operations);
107117

examples/Dfp/v201405/CompanyService/UpdateCompaniesExample.php

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

examples/Dfp/v201405/ContentMetadataKeyHierarchyService/DeleteContentMetadataKeyHierarchiesExample.php

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

examples/Dfp/v201405/ContentService/GetContentByCategoryExample.php

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

0 commit comments

Comments
 (0)