Skip to content

Commit

Permalink
Preparing src for release 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Tsao committed May 19, 2015
1 parent 4b74737 commit 4453b02
Show file tree
Hide file tree
Showing 715 changed files with 230,265 additions and 6,849 deletions.
13 changes: 13 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
### 6.0.0

AdWords:
- 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.

DFP:
- Added support for v201505.
- Refactored utility classes so they are now version specific.
- 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.
- Removed ReportUtils.php from v201505 as it is deprecated. Please use ReportDownloader.php instead.
- Updated v201505 examples that deal with date time to ensure timezones are passed in anywhere date times are used.
- Removed deprecated functions from DateTimeUtils.php.

### 5.9.0

AdWords:
Expand Down
2 changes: 1 addition & 1 deletion examples/AdWords/Auth/CreateAdWordsUserWithoutIniFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function RunExample(AdWordsUser $user) {
);

// See AdWordsUser constructor
$user = new AdWordsUser(NULL, DEVELOPER_TOKEN, NULL, USER_AGENT, NULL, NULL,
$user = new AdWordsUser(null, DEVELOPER_TOKEN, USER_AGENT, null, null,
$oauth2Info);

$user->LogAll();
Expand Down
6 changes: 3 additions & 3 deletions examples/AdWords/Auth/GetRefreshTokenWithoutIniFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
* @return array the user's OAuth 2 credentials
*/
function GetOAuth2Credential(AdWordsUser $user) {
$redirectUri = NULL;
$offline = TRUE;
$redirectUri = null;
$offline = true;
// Get the authorization URL for the OAuth2 token.
// No redirect URL is being used since this is an installed application. A web
// application would pass in a redirect URL back to the application,
Expand Down Expand Up @@ -92,7 +92,7 @@ function GetOAuth2Credential(AdWordsUser $user) {
);

// See AdWordsUser constructor
$user = new AdWordsUser(NULL, NULL, NULL, NULL, NULL, NULL, $oauth2Info);
$user = new AdWordsUser(null, null, null, null, null, $oauth2Info);

$user->LogAll();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ function AddCampaignTargetingCriteriaExample(AdWordsUser $user, $campaignId) {
$operations[] = new CampaignCriterionOperation($campaignCriterion, 'ADD');
}

// Add a negative campaign criterion.
$negativeKeyword = new Keyword();
$negativeKeyword->text = 'jupiter cruise';
$negativeKeyword->matchType = 'BROAD';
$negativeCriterion = new NegativeCampaignCriterion();
$negativeCriterion->campaignId = $campaignId;
$negativeCriterion->criterion = $negativeKeyword;

$operations[] = new CampaignCriterionOperation($negativeCriterion, 'ADD');

// Make the mutate request.
$result = $campaignCriterionService->mutate($operations);

Expand Down
93 changes: 0 additions & 93 deletions examples/Dfp/v201405/CompanyService/UpdateCompaniesExample.php

This file was deleted.

This file was deleted.

113 changes: 0 additions & 113 deletions examples/Dfp/v201405/ContentService/GetContentByCategoryExample.php

This file was deleted.

Loading

0 comments on commit 4453b02

Please sign in to comment.