Skip to content

Commit d22d6be

Browse files
author
Vincent Tsao
committed
Preparing src for release 5.8.0
1 parent 0a64de1 commit d22d6be

File tree

522 files changed

+65476
-404554
lines changed

Some content is hidden

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

522 files changed

+65476
-404554
lines changed

ChangeLog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
### 5.8.0
2+
3+
AdWords:
4+
- Improved targetAll comments in the AddAdGroups.php examples.
5+
- Added code examples for upgraded URLs.
6+
7+
DFP:
8+
- Added support for v201502.
9+
- Removed support for v201311, v201308, and v201306.
10+
- Removed examples for v201403.
11+
- Updated ForecastService examples.
12+
- Removed support for ClientLogin with the removal of v201311 and earlier.
13+
114
### 5.7.1
215

316
AdWords:

examples/AdWords/v201406/AdvancedOperations/AddTextAdWithUpgradedUrls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function AddTextAdWithUpgradedUrlsExample(AdWordsUser $user, $adGroupId) {
6363
// specify one at customer, campaign, ad group, ad, criterion or
6464
// feed item levels.
6565
$textAd->trackingUrlTemplate =
66-
'http://tracker.example.com/?cid={_season}&promocode={_promocode}' .
66+
'http://tracker.example.com/?season={_season}&promocode={_promocode}' .
6767
'&u={lpurl}';
6868

6969
// Since your tracking url has two custom parameters, provide their

examples/AdWords/v201406/BasicOperations/AddAdGroups.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,17 @@ function AddAdGroupsExample(AdWordsUser $user, $campaignId) {
6161
// Set additional settings (optional).
6262
$adGroup->status = 'ENABLED';
6363

64-
// Targetting restriction settings - these setting only affect serving
64+
// Targeting restriction settings - these settings only affect serving
6565
// for the Display Network.
6666
$targetingSetting = new TargetingSetting();
6767
// Restricting to serve ads that match your ad group placements.
68+
// This is equivalent to choosing "Target and bid" in the UI.
6869
$targetingSetting->details[] =
69-
new TargetingSettingDetail('PLACEMENT', TRUE);
70-
// Using your ad group verticals only for bidding.
70+
new TargetingSettingDetail('PLACEMENT', FALSE);
71+
// Using your ad group verticals only for bidding. This is equivalent
72+
// to choosing "Bid only" in the UI.
7173
$targetingSetting->details[] =
72-
new TargetingSettingDetail('VERTICAL', FALSE);
74+
new TargetingSettingDetail('VERTICAL', TRUE);
7375
$adGroup->settings[] = $targetingSetting;
7476

7577
// Create operation.

examples/AdWords/v201409/AdvancedOperations/AddAdCustomizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function CreateAdsWithCustomizations(AdWordsUser $user, $adGroupIds) {
304304
$textAd->headline = 'Luxury Cruise to {=CustomizerFeed.Name}';
305305
$textAd->description1 = 'Only {=CustomizerFeed.Price}';
306306
$textAd->description2 = 'Offer ends in {=countdown(CustomizerFeed.Date)}!';
307-
$textAd->url = 'http://www.example.com';
307+
$textAd->finalUrls = array('http://www.example.com');
308308
$textAd->displayUrl = 'www.example.com';
309309

310310
// We add the same ad to both ad groups. When they serve, they will show

examples/AdWords/v201409/AdvancedOperations/AddClickToDownloadAd.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) {
5050

5151
$clickToDownloadAppAd->name = 'Ad for demo game';
5252
$clickToDownloadAppAd->templateId = 353;
53-
$clickToDownloadAppAd->url =
54-
'http://play.google.com/store/apps/details?id=com.example.demogame';
53+
$clickToDownloadAppAd->finalUrls = array(
54+
'http://play.google.com/store/apps/details?id=com.example.demogame');
5555
$clickToDownloadAppAd->displayUrl = 'play.google.com';
5656

5757
// Create the template elements for the ad. You can refer to
@@ -109,7 +109,7 @@ function AddClickToDownloadAd(AdWordsUser $user, $adGroupId) {
109109

110110
foreach ($result->value as $adGroupAd) {
111111
printf('New click-to-download ad with ID = %d and URL = "%s" ' .
112-
"was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->url);
112+
"was created.\n", $adGroupAd->ad->id, $adGroupAd->ad->finalUrls[0]);
113113
}
114114
}
115115

examples/AdWords/v201409/AdvancedOperations/AddTextAdWithUpgradedUrls.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22
/**
33
* This example adds text ads to an ad group that uses upgraded URLs.
4-
* This example will only work if your account is a test account or is
5-
* whitelisted for this feature.
64
*
75
* To get ad groups, run GetAdGroups.php.
86
*
@@ -63,7 +61,7 @@ function AddTextAdWithUpgradedUrlsExample(AdWordsUser $user, $adGroupId) {
6361
// specify one at customer, campaign, ad group, ad, criterion or
6462
// feed item levels.
6563
$textAd->trackingUrlTemplate =
66-
'http://tracker.example.com/?cid={_season}&promocode={_promocode}' .
64+
'http://tracker.example.com/?season={_season}&promocode={_promocode}' .
6765
'&u={lpurl}';
6866

6967
// Since your tracking url has two custom parameters, provide their

examples/AdWords/v201409/BasicOperations/AddAdGroups.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,17 @@ function AddAdGroupsExample(AdWordsUser $user, $campaignId) {
6161
// Set additional settings (optional).
6262
$adGroup->status = 'ENABLED';
6363

64-
// Targetting restriction settings - these setting only affect serving
64+
// Targeting restriction settings - these settings only affect serving
6565
// for the Display Network.
6666
$targetingSetting = new TargetingSetting();
6767
// Restricting to serve ads that match your ad group placements.
68+
// This is equivalent to choosing "Target and bid" in the UI.
6869
$targetingSetting->details[] =
69-
new TargetingSettingDetail('PLACEMENT', TRUE);
70-
// Using your ad group verticals only for bidding.
70+
new TargetingSettingDetail('PLACEMENT', FALSE);
71+
// Using your ad group verticals only for bidding. This is equivalent
72+
// to choosing "Bid only" in the UI.
7173
$targetingSetting->details[] =
72-
new TargetingSettingDetail('VERTICAL', FALSE);
74+
new TargetingSettingDetail('VERTICAL', TRUE);
7375
$adGroup->settings[] = $targetingSetting;
7476

7577
// Create operation.

examples/AdWords/v201409/BasicOperations/AddKeywords.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,15 @@ function AddKeywordsExample(AdWordsUser $user, $adGroupId) {
6060

6161
// Set additional settings (optional).
6262
$adGroupCriterion->userStatus = 'PAUSED';
63-
$adGroupCriterion->destinationUrl = 'http://www.example.com/mars';
63+
$adGroupCriterion->finalUrls = array('http://www.example.com/mars');
6464

6565
// Set bids (optional).
6666
$bid = new CpcBid();
6767
$bid->bid = new Money(500000);
6868
$biddingStrategyConfiguration = new BiddingStrategyConfiguration();
6969
$biddingStrategyConfiguration->bids[] = $bid;
70-
$adGroupCriterion->biddingStrategyConfiguration = $biddingStrategyConfiguration;
70+
$adGroupCriterion->biddingStrategyConfiguration =
71+
$biddingStrategyConfiguration;
7172

7273
$adGroupCriteria[] = $adGroupCriterion;
7374

examples/AdWords/v201409/BasicOperations/AddTextAds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function AddTextAdsExample(AdWordsUser $user, $adGroupId) {
5555
$textAd->description1 = 'Visit the Red Planet in style.';
5656
$textAd->description2 = 'Low-gravity fun for everyone!';
5757
$textAd->displayUrl = 'www.example.com';
58-
$textAd->url = 'http://www.example.com';
58+
$textAd->finalUrls = array('http://www.example.com');
5959

6060
// Create ad group ad.
6161
$adGroupAd = new AdGroupAd();

examples/AdWords/v201409/BasicOperations/UpdateKeyword.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* This example updates the destination URL of a keyword. To get keywords, run
3+
* This example updates the final URL of a keyword. To get keywords, run
44
* GetKeywords.php.
55
*
66
* Tags: AdGroupCriterionService.mutate
@@ -54,8 +54,8 @@ function UpdateKeywordExample(AdWordsUser $user, $adGroupId, $criterionId) {
5454
// instead of Keyword to avoid having to set keyword-specific fields.
5555
$adGroupCriterion->criterion = new Criterion($criterionId);
5656

57-
// Update destination URL.
58-
$adGroupCriterion->destinationUrl = 'http://www.example.com/new';
57+
// Update final URL.
58+
$adGroupCriterion->finalUrls = array('http://www.example.com/new');
5959

6060
// Create operation.
6161
$operation = new AdGroupCriterionOperation();

0 commit comments

Comments
 (0)