Skip to content

Commit 843cea9

Browse files
1 parent 79f6c22 commit 843cea9

File tree

3 files changed

+115
-0
lines changed

3 files changed

+115
-0
lines changed

src/DisplayVideo/AdGroupAd.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ class AdGroupAd extends \Google\Collection
7171
protected $audioAdDataType = '';
7272
protected $bumperAdType = BumperAd::class;
7373
protected $bumperAdDataType = '';
74+
protected $dcmTrackingInfoType = DcmTrackingInfo::class;
75+
protected $dcmTrackingInfoDataType = '';
7476
protected $demandGenCarouselAdType = DemandGenCarouselAd::class;
7577
protected $demandGenCarouselAdDataType = '';
7678
protected $demandGenImageAdType = DemandGenImageAd::class;
@@ -227,6 +229,25 @@ public function getBumperAd()
227229
{
228230
return $this->bumperAd;
229231
}
232+
/**
233+
* Optional. The DCM tracking ad info. Only valid for Demand Gen ads. To
234+
* remove the DCM tracking ad info, please leave this field empty. Retrieval
235+
* and management of Demand Gen resources is currently in beta. This field is
236+
* only available to allowlisted users.
237+
*
238+
* @param DcmTrackingInfo $dcmTrackingInfo
239+
*/
240+
public function setDcmTrackingInfo(DcmTrackingInfo $dcmTrackingInfo)
241+
{
242+
$this->dcmTrackingInfo = $dcmTrackingInfo;
243+
}
244+
/**
245+
* @return DcmTrackingInfo
246+
*/
247+
public function getDcmTrackingInfo()
248+
{
249+
return $this->dcmTrackingInfo;
250+
}
230251
/**
231252
* Details of a [Demand Gen carousel ad](//support.google.com/displayvideo/ans
232253
* wer/15598924?&sjid=11207068802760924844-NC#CarouselAd).
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\DisplayVideo;
19+
20+
class DcmTrackingInfo extends \Google\Model
21+
{
22+
/**
23+
* Required. The DCM creative id.
24+
*
25+
* @var string
26+
*/
27+
public $creativeId;
28+
/**
29+
* Required. The DCM placement id.
30+
*
31+
* @var string
32+
*/
33+
public $placementId;
34+
/**
35+
* Required. The DCM tracking ad id.
36+
*
37+
* @var string
38+
*/
39+
public $trackingAdId;
40+
41+
/**
42+
* Required. The DCM creative id.
43+
*
44+
* @param string $creativeId
45+
*/
46+
public function setCreativeId($creativeId)
47+
{
48+
$this->creativeId = $creativeId;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getCreativeId()
54+
{
55+
return $this->creativeId;
56+
}
57+
/**
58+
* Required. The DCM placement id.
59+
*
60+
* @param string $placementId
61+
*/
62+
public function setPlacementId($placementId)
63+
{
64+
$this->placementId = $placementId;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getPlacementId()
70+
{
71+
return $this->placementId;
72+
}
73+
/**
74+
* Required. The DCM tracking ad id.
75+
*
76+
* @param string $trackingAdId
77+
*/
78+
public function setTrackingAdId($trackingAdId)
79+
{
80+
$this->trackingAdId = $trackingAdId;
81+
}
82+
/**
83+
* @return string
84+
*/
85+
public function getTrackingAdId()
86+
{
87+
return $this->trackingAdId;
88+
}
89+
}
90+
91+
// Adding a class alias for backwards compatibility with the previous class name.
92+
class_alias(DcmTrackingInfo::class, 'Google_Service_DisplayVideo_DcmTrackingInfo');

src/DisplayVideo/DemandGenBiddingStrategy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class DemandGenBiddingStrategy extends \Google\Model
8484
* Optional. The value used by the bidding strategy. This can be set at the
8585
* line item and ad group level. This field is only applicable for the
8686
* following strategy types: * `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPA` *
87+
* `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPC` *
8788
* `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_ROAS` Value of this field is in
8889
* micros of the advertiser's currency or ROAS value. For example, 1000000
8990
* represents 1.0 standard units of the currency or 100% ROAS value. If not
@@ -159,6 +160,7 @@ public function getType()
159160
* Optional. The value used by the bidding strategy. This can be set at the
160161
* line item and ad group level. This field is only applicable for the
161162
* following strategy types: * `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPA` *
163+
* `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_CPC` *
162164
* `DEMAND_GEN_BIDDING_STRATEGY_TYPE_TARGET_ROAS` Value of this field is in
163165
* micros of the advertiser's currency or ROAS value. For example, 1000000
164166
* represents 1.0 standard units of the currency or 100% ROAS value. If not

0 commit comments

Comments
 (0)