blob: 2e1b1a297d963fce91a65d5c8bb8defe31e9ef9d [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="displayvideo_v1.html">Display & Video 360 API</a> . <a href="displayvideo_v1.advertisers.html">advertisers</a> . <a href="displayvideo_v1.advertisers.lineItems.html">lineItems</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="displayvideo_v1.advertisers.lineItems.targetingTypes.html">targetingTypes()</a></code>
79</p>
80<p class="firstline">Returns the targetingTypes Resource.</p>
81
82<p class="toc_element">
83 <code><a href="#bulkEditLineItemAssignedTargetingOptions">bulkEditLineItemAssignedTargetingOptions(advertiserId, lineItemId, body=None, x__xgafv=None)</a></code></p>
84<p class="firstline">Bulk edits targeting options under a single line item.</p>
85<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070086 <code><a href="#bulkListLineItemAssignedTargetingOptions">bulkListLineItemAssignedTargetingOptions(advertiserId, lineItemId, filter=None, pageToken=None, pageSize=None, orderBy=None, x__xgafv=None)</a></code></p>
Bu Sun Kim65020912020-05-20 12:08:20 -070087<p class="firstline">Lists assigned targeting options of a line item across targeting types.</p>
88<p class="toc_element">
89 <code><a href="#bulkListLineItemAssignedTargetingOptions_next">bulkListLineItemAssignedTargetingOptions_next(previous_request, previous_response)</a></code></p>
90<p class="firstline">Retrieves the next page of results.</p>
91<p class="toc_element">
92 <code><a href="#create">create(advertiserId, body=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Creates a new line item.</p>
94<p class="toc_element">
95 <code><a href="#delete">delete(advertiserId, lineItemId, x__xgafv=None)</a></code></p>
96<p class="firstline">Deletes a line item.</p>
97<p class="toc_element">
98 <code><a href="#get">get(advertiserId, lineItemId, x__xgafv=None)</a></code></p>
99<p class="firstline">Gets a line item.</p>
100<p class="toc_element">
101 <code><a href="#list">list(advertiserId, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
102<p class="firstline">Lists line items in an advertiser.</p>
103<p class="toc_element">
104 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
105<p class="firstline">Retrieves the next page of results.</p>
106<p class="toc_element">
107 <code><a href="#patch">patch(advertiserId, lineItemId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
108<p class="firstline">Updates an existing line item.</p>
109<h3>Method Details</h3>
110<div class="method">
111 <code class="details" id="bulkEditLineItemAssignedTargetingOptions">bulkEditLineItemAssignedTargetingOptions(advertiserId, lineItemId, body=None, x__xgafv=None)</code>
112 <pre>Bulk edits targeting options under a single line item.
113The operation will delete the assigned targeting options provided in
114BulkEditLineItemAssignedTargetingOptionsRequest.delete_requests and
115then create the assigned targeting options provided in
116BulkEditLineItemAssignedTargetingOptionsRequest.create_requests .
117
118Args:
119 advertiserId: string, Required. The ID of the advertiser the line item belongs to. (required)
120 lineItemId: string, Required. The ID of the line item the assigned targeting option will belong to. (required)
121 body: object, The request body.
122 The object takes the form of:
123
124{ # Request message for
125 # BulkEditLineItemAssignedTargetingOptions.
126 &quot;deleteRequests&quot;: [ # The assigned targeting options to delete in batch, specified as a list of
127 # `DeleteAssignedTargetingOptionsRequest`.
128 { # A request listing which assigned targeting options of a given targeting type
129 # should be deleted.
130 &quot;targetingType&quot;: &quot;A String&quot;, # Required. Identifies the type of this assigned targeting option.
131 &quot;assignedTargetingOptionIds&quot;: [ # Required. The assigned targeting option IDs to delete.
132 &quot;A String&quot;,
133 ],
134 },
135 ],
136 &quot;createRequests&quot;: [ # The assigned targeting options to create in batch, specified as a list of
137 # `CreateAssignedTargetingOptionsRequest`.
138 { # A request listing which assigned targeting options of a given targeting type
139 # should be created and added.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700140 &quot;targetingType&quot;: &quot;A String&quot;, # Required. Identifies the type of this assigned targeting option.
Bu Sun Kim65020912020-05-20 12:08:20 -0700141 &quot;assignedTargetingOptions&quot;: [ # Required. The assigned targeting options to create and add.
142 { # A single assigned targeting option, which defines the state of a targeting
143 # option for an entity with targeting settings, such as a Line Item or
144 # Insertion Order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700145 &quot;appDetails&quot;: { # Details for assigned app targeting option. This will be populated in the # App details. This field will be populated when the
146 # TargetingType is `TARGETING_TYPE_APP`.
147 # details field of an AssignedTargetingOption when
148 # targeting_type is
149 # `TARGETING_TYPE_APP`.
150 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app.
151 &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app.
152 #
153 # Android&#x27;s Play store app uses bundle ID, for example
154 # `com.google.android.gm`. Apple&#x27;s App store app ID uses 9 digit string, for
155 # example `422689480`.
156 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
157 },
158 &quot;parentalStatusDetails&quot;: { # Details for assigned parental status targeting option. This will be # Parental status details. This field will be populated when the
159 # TargetingType is `TARGETING_TYPE_PARENTAL_STATUS`.
160 # populated in the details field of an AssignedTargetingOption when
161 # targeting_type is
162 # `TARTGETING_TYPE_PARENTAL_STATUS`.
163 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
164 # TargetingOption of type `TARGETING_TYPE_PARENTAL_STATUS`.
165 &quot;parentalStatus&quot;: &quot;A String&quot;, # Output only. The parental status of the audience.
166 },
167 &quot;targetingType&quot;: &quot;A String&quot;, # Output only. Identifies the type of this assigned targeting option.
168 &quot;urlDetails&quot;: { # Details for assigned URL targeting option. This will be populated in the # URL details. This field will be populated when the
169 # TargetingType is `TARGETING_TYPE_URL`.
170 # details field of an AssignedTargetingOption when
171 # targeting_type is
172 # `TARGETING_TYPE_URL`.
173 &quot;url&quot;: &quot;A String&quot;, # Required. The URL, for example `example.com`.
174 #
175 # DV360 supports two levels of subdirectory targeting, for example
176 # `www.example.com/one-subdirectory-level/second-level`, and five levels of
177 # subdomain targeting, for example `five.four.three.two.one.example.com`.
178 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
179 },
180 &quot;onScreenPositionDetails&quot;: { # On screen position targeting option details. This will be # On screen position details. This field will be populated when the
181 # TargetingType is `TARGETING_TYPE_ON_SCREEN_POSITION`.
182 # populated in the
183 # on_screen_position_details
184 # field when
185 # targeting_type is
186 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700187 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
188 # targeting_type is
189 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700190 &quot;onScreenPosition&quot;: &quot;A String&quot;, # Output only. The on screen position.
Bu Sun Kim65020912020-05-20 12:08:20 -0700191 },
192 &quot;videoPlayerSizeDetails&quot;: { # Video player size targeting option details. This will be populated in the # Video player size details. This field will be populated when the
193 # TargetingType is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
194 # video_player_size_details
195 # field when targeting_type is
196 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
197 # Explicitly targeting all options is not supported. Remove all video player
198 # size targeting options to achieve this effect.
199 &quot;videoPlayerSize&quot;: &quot;A String&quot;, # Output only. The video player size.
200 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
201 # targeting_type is
202 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
203 },
204 &quot;channelDetails&quot;: { # Details for assigned channel targeting option. This will be populated in # Channel details. This field will be populated when the
205 # TargetingType is `TARGETING_TYPE_CHANNEL`.
206 # the details field of an AssignedTargetingOption when
207 # targeting_type is
208 # `TARGETING_TYPE_CHANNEL`.
209 &quot;channelId&quot;: &quot;A String&quot;, # Required. ID of the channel. Should refer to the channel ID
210 # field on a
211 # [Partner-owned channel](partners.channels#Channel.FIELDS.channel_id) or
212 # [advertiser-owned channel](advertisers.channels#Channel.FIELDS.channel_id)
213 # resource.
214 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. For advertiser
215 # level assigned targeting option, this field must be true.
216 },
217 &quot;operatingSystemDetails&quot;: { # Assigned operating system targeting option details. This will be # Operating system details. This field will be populated when the
218 # TargetingType is `TARGETING_TYPE_OPERATING_SYSTEM`.
219 # populated in the
220 # operating_system_details
221 # field when
222 # targeting_type is
223 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700224 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the operating system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700225 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
226 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting option ID populated in
227 # targeting_option_id field when
228 # targeting_type is
229 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700230 },
231 &quot;thirdPartyVerifierDetails&quot;: { # Assigned third party verifier targeting option details. This will be # Third party verification details. This field will be populated when the
232 # TargetingType is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
233 # populated in the details field of an AssignedTargetingOption when
234 # targeting_type is
235 # `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;integralAdScience&quot;: { # Details of Integral Ad Science settings. # Third party brand verifier -- Integral Ad Science.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700237 &quot;excludedAdFraudRisk&quot;: &quot;A String&quot;, # Ad Fraud settings.
238 &quot;displayViewability&quot;: &quot;A String&quot;, # Display Viewability section (applicable to display line items only).
239 &quot;excludedHateSpeechRisk&quot;: &quot;A String&quot;, # Brand Safety - **Hate speech**.
240 &quot;excludedOffensiveLanguageRisk&quot;: &quot;A String&quot;, # Brand Safety - **Offensive language**.
241 &quot;excludedDrugsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Drugs**.
242 &quot;excludedAdultRisk&quot;: &quot;A String&quot;, # Brand Safety - **Adult content**.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 &quot;traqScoreOption&quot;: &quot;A String&quot;, # True advertising quality (applicable to Display line items only).
244 &quot;videoViewability&quot;: &quot;A String&quot;, # Video Viewability Section (applicable to video line items only).
245 &quot;excludedAlcoholRisk&quot;: &quot;A String&quot;, # Brand Safety - **Alcohol**.
246 &quot;excludedGamblingRisk&quot;: &quot;A String&quot;, # Brand Safety - **Gambling**.
247 &quot;excludeUnrateable&quot;: True or False, # Brand Safety - **Unrateable**.
248 &quot;excludedIllegalDownloadsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Illegal downloads**.
249 &quot;excludedViolenceRisk&quot;: &quot;A String&quot;, # Brand Safety - **Violence**.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 },
251 &quot;doubleVerify&quot;: { # Details of DoubleVerify settings. # Third party brand verifier -- DoubleVerify.
252 &quot;videoViewability&quot;: { # Details of DoubleVerify video viewability settings. # Video viewability settings (applicable to video line items only).
253 &quot;playerImpressionRate&quot;: &quot;A String&quot;, # Target inventory to maximize impressions with 400x300 or greater player
254 # size.
255 &quot;videoIab&quot;: &quot;A String&quot;, # Target web inventory to maximize IAB viewable rate.
256 &quot;videoViewableRate&quot;: &quot;A String&quot;, # Target web inventory to maximize fully viewable rate.
257 },
258 &quot;avoidedAgeRatings&quot;: [ # Avoid bidding on apps with the age rating.
259 &quot;A String&quot;,
260 ],
261 &quot;fraudInvalidTraffic&quot;: { # DoubleVerify Fraud &amp; Invalid Traffic settings. # Avoid Sites and Apps with historical Fraud &amp; IVT Rates.
262 &quot;avoidInsufficientOption&quot;: True or False, # Insufficient Historical Fraud &amp; IVT Stats.
263 &quot;avoidedFraudOption&quot;: &quot;A String&quot;, # Avoid Sites and Apps with historical Fraud &amp; IVT.
264 },
265 &quot;brandSafetyCategories&quot;: { # Settings for brand safety controls. # DV Brand Safety Controls.
266 &quot;avoidedMediumSeverityCategories&quot;: [ # Brand safety medium severity avoidance categories.
267 &quot;A String&quot;,
268 ],
269 &quot;avoidedHighSeverityCategories&quot;: [ # Brand safety high severity avoidance categories.
270 &quot;A String&quot;,
271 ],
272 &quot;avoidUnknownBrandSafetyCategory&quot;: True or False, # Unknown or unrateable.
273 },
274 &quot;appStarRating&quot;: { # Details of DoubleVerify star ratings settings. # Avoid bidding on apps with the star ratings.
275 &quot;avoidedStarRating&quot;: &quot;A String&quot;, # Avoid bidding on apps with the star ratings.
276 &quot;avoidInsufficientStarRating&quot;: True or False, # Avoid bidding on apps with insufficient star ratings.
277 },
278 &quot;displayViewability&quot;: { # Details of DoubleVerify display viewability settings. # Display viewability settings (applicable to display line items only).
279 &quot;viewableDuring&quot;: &quot;A String&quot;, # Target web and app inventory to maximize 100% viewable duration.
280 &quot;iab&quot;: &quot;A String&quot;, # Target web and app inventory to maximize IAB viewable rate.
281 },
282 },
283 &quot;adloox&quot;: { # Details of Adloox settings. # Third party brand verifier -- Adloox.
284 &quot;excludedAdlooxCategories&quot;: [ # Adloox&#x27;s brand safety settings.
285 &quot;A String&quot;,
286 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700287 },
288 },
289 &quot;proximityLocationListDetails&quot;: { # Targeting details for proximity location list. This will be # Proximity location list details. This field will be populated when the
290 # TargetingType is
291 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
292 # populated in the details field of an AssignedTargetingOption when
293 # targeting_type is
294 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &quot;proximityRadiusRange&quot;: &quot;A String&quot;, # Required. Radius range for proximity location list.
296 # This represents the size of the area around a chosen location that will be
297 # targeted.
298 #
299 # `All` proximity location targeting under a single line item must have the
300 # same radius range value. Set this value to match any existing targeting.
301 # If updated, this field will change the radius range for all proximity
302 # targeting under the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700303 &quot;proximityLocationListId&quot;: &quot;A String&quot;, # Required. ID of the proximity location list. Should refer to the
304 # location_list_id field of a
305 # LocationList resource whose type is
306 # `TARGETING_LOCATION_TYPE_PROXIMITY`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 },
308 &quot;ageRangeDetails&quot;: { # Represents a targetable age range. This will be populated in the details # Age range details. This field will be populated when the
309 # TargetingType is `TARGETING_TYPE_AGE_RANGE`.
310 # field of an AssignedTargetingOption when
311 # targeting_type is
312 # `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700313 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
314 # TargetingOption of type `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;ageRange&quot;: &quot;A String&quot;, # Output only. The age range of an audience. We only support targeting a continuous age
316 # range of an audience. Thus, the age range represented in this field can be
317 # 1) targeted solely, or, 2) part of a larger continuous age range. The reach
318 # of a continuous age range targeting can be expanded by also targeting an
319 # audience of an unknown age.
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 },
321 &quot;subExchangeDetails&quot;: { # Details for assigned sub-exchange targeting option. This will be populated in # Sub-exchange details. This field will be populated when the
322 # TargetingType is `TARGETING_TYPE_SUB_EXCHANGE`.
323 # the details field of an AssignedTargetingOption when
324 # targeting_type is
325 # `TARGETING_TYPE_SUB_EXCHANGE`.
326 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
327 # TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`.
328 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700329 &quot;keywordDetails&quot;: { # Details for assigned keyword targeting option. This will be populated in the # Keyword details. This field will be populated when the TargetingType is
330 # `TARGETING_TYPE_KEYWORD`.
331 #
332 # A maximum of 5000 direct negative keywords can be assigned to a
333 # line item. No limit on number of positive keywords that can be assigned.
334 # details field of an AssignedTargetingOption when
335 # targeting_type is
336 # `TARGETING_TYPE_KEYWORD`.
337 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
338 &quot;keyword&quot;: &quot;A String&quot;, # Required. The keyword, for example `car insurance`.
339 #
340 # Positive keyword cannot be offensive word.
341 # Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number
342 # of characters is 80. Maximum number of words is 10.
343 },
344 &quot;deviceMakeModelDetails&quot;: { # Assigned device make and model targeting option details. This will be # Device make and model details. This field will be populated when the
345 # TargetingType is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
346 # populated in the
347 # device_make_model_details
348 # field when
349 # targeting_type is
350 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
351 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
352 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
353 # targeting_type is
354 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
355 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the device make and model.
356 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700357 &quot;digitalContentLabelExclusionDetails&quot;: { # Targeting details for digital content label. This will be # Digital content label details. This field will be populated when the
358 # TargetingType is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
359 #
360 # Digital content labels are targeting exclusions. Advertiser level digital
361 # content label exclusions, if set, are always applied in serving (even
362 # though they aren&#x27;t visible in line item settings). Line item settings can
363 # exclude content labels in addition to advertiser exclusions, but can&#x27;t
364 # override them. A line item won&#x27;t serve if all the digital content labels
365 # are excluded.
366 # populated in the details field of an AssignedTargetingOption when
367 # targeting_type is
368 # `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
369 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the digital content label to be EXCLUDED.
370 &quot;contentRatingTier&quot;: &quot;A String&quot;, # Output only. The display name of the digital content label rating tier.
371 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700372 &quot;browserDetails&quot;: { # Details for assigned browser targeting option. This will be populated in # Browser details. This field will be populated when the
373 # TargetingType is `TARGETING_TYPE_BROWSER`.
374 # the details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700376 # `TARGETING_TYPE_BROWSER`.
377 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
378 # TargetingOption of type `TARGETING_TYPE_BROWSER`.
379 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the browser.
380 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned browser
381 # targeting options on the same line item must have the same value for this
382 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700383 },
384 &quot;appCategoryDetails&quot;: { # Details for assigned app category targeting option. This will be # App category details. This field will be populated when the
385 # TargetingType is `TARGETING_TYPE_APP_CATEGORY`.
386 # populated in the
387 # app_category_details field of
388 # an AssignedTargetingOption when
389 # targeting_type
390 # is `TARGETING_TYPE_APP_CATEGORY`.
391 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
392 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
393 # targeting_type is
394 # `TARGETING_TYPE_APP_CATEGORY`.
395 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app category.
396 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;contentOutstreamPositionDetails&quot;: { # Assigned content outstream position targeting option details. This will be # Content outstream position details. This field will be populated when the
398 # TargetingType is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
399 # populated in the
400 # content_outstream_position_details
401 # field when
402 # targeting_type is
403 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
404 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
405 # targeting_type is
406 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
407 &quot;contentOutstreamPosition&quot;: &quot;A String&quot;, # Output only. The content outstream position.
408 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700409 &quot;negativeKeywordListDetails&quot;: { # Targeting details for negative keyword list. This will be populated in the # Keyword details. This field will be populated when the
410 # TargetingType is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
411 #
412 # A maximum of 4 negative keyword lists can be assigned to a line item.
413 # details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -0700414 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700415 # `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
416 &quot;negativeKeywordListId&quot;: &quot;A String&quot;, # Required. ID of the negative keyword list. Should refer to the
417 # negative_keyword_list_id
418 # field of a NegativeKeywordList resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700419 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700420 &quot;genderDetails&quot;: { # Details for assigned gender targeting option. This will be populated in # Gender details. This field will be populated when the
421 # TargetingType is `TARGETING_TYPE_GENDER`.
422 # the details field of an AssignedTargetingOption when
423 # targeting_type is
424 # `TARTGETING_TYPE_GENDER`.
425 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
426 # TargetingOption of type `TARGETING_TYPE_GENDER`.
427 &quot;gender&quot;: &quot;A String&quot;, # Output only. The gender of the audience.
428 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700429 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name for this assigned targeting option.
430 &quot;inventorySourceDetails&quot;: { # Targeting details for inventory source. This will be # Inventory source details. This field will be populated when the
431 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE`.
432 # populated in the details field of an AssignedTargetingOption when
433 # targeting_type is
434 # `TARGETING_TYPE_INVENTORY_SOURCE`.
435 &quot;inventorySourceId&quot;: &quot;A String&quot;, # Required. ID of the inventory source. Should refer to the
436 # inventory_source_id field of an
437 # InventorySource resource.
438 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;sensitiveCategoryExclusionDetails&quot;: { # Targeting details for sensitive category. This will be populated in the # Sensitive category details. This field will be populated when the
440 # TargetingType is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
441 #
442 # Sensitive categories are targeting exclusions. Advertiser level sensitive
443 # category exclusions, if set, are always applied in serving (even though
444 # they aren&#x27;t visible in line item settings). Line item settings can
445 # exclude sensitive categories in addition to advertiser exclusions, but
446 # can&#x27;t override them.
447 # details field of an AssignedTargetingOption when
448 # targeting_type is
449 # `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
450 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the sensitive category to be EXCLUDED.
451 &quot;sensitiveCategory&quot;: &quot;A String&quot;, # Output only. An enum for the DV360 Sensitive category content classifier.
452 },
453 &quot;audienceGroupDetails&quot;: { # Assigned audience group targeting option details. This will be populated in # Audience targeting details. This field will be populated when the
454 # TargetingType is `TARGETING_TYPE_AUDIENCE_GROUP`.
455 # You can only target one audience group option per line item.
456 # the details field of an AssignedTargetingOption when
457 # targeting_type is
458 # `TARGETING_TYPE_AUDIENCE_GROUP`.
459 # The relation between each group is UNION, except for
460 # excluded_first_and_third_party_audience_group and
461 # excluded_google_audience_group, of which COMPLEMENT is UNION&#x27;ed with other
462 # groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700463 &quot;includedFirstAndThirdPartyAudienceGroups&quot;: [ # The first and third party audience ids and recencies of included first
464 # and third party audience groups. Each first and third party audience group
465 # contains first and third party audience ids only.
466 # The relation between each first and third party audience group is
467 # INTERSECTION, and the result is UNION&#x27;ed with other audience groups.
468 # Repeated groups with same settings will be ignored.
469 { # Details of first and third party audience group.
470 # All first and third party audience targeting settings are logically ‘OR’ of
471 # each other.
472 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
473 # third party audience group.
474 # Repeated settings with same id are not allowed.
475 { # Details of first and third party audience targeting setting.
476 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
477 # Only applicable to first party audiences, otherwise
478 # will be ignored. For more info, refer to
479 # https://support.google.com/displayvideo/answer/2949947#recency
480 # When unspecified, no recency limit will be used.
481 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
482 # targeting setting. This id is
483 # first_and_third_party_audience_id.
484 },
485 ],
486 },
487 ],
488 &quot;includedCombinedAudienceGroup&quot;: { # Details of combined audience group. # The combined audience ids of the included combined audience group.
489 # Contains combined audience ids only.
490 # All combined audience targeting settings are logically ‘OR’ of each other.
491 &quot;settings&quot;: [ # Required. All combined audience targeting settings in combined audience group.
492 # Repeated settings with same id will be ignored.
493 # The number of combined audience settings should be no more than five, error
494 # will be thrown otherwise.
495 { # Details of combined audience targeting setting.
496 &quot;combinedAudienceId&quot;: &quot;A String&quot;, # Required. Combined audience id of combined audience targeting setting.
497 # This id is combined_audience_id.
498 },
499 ],
500 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700501 &quot;includedCustomListGroup&quot;: { # Details of custom list group. # The custom list ids of the included custom list group.
502 # Contains custom list ids only.
503 # All custom list targeting settings are logically ‘OR’ of each other.
504 &quot;settings&quot;: [ # Required. All custom list targeting settings in custom list group.
505 # Repeated settings with same id will be ignored.
506 { # Details of custom list targeting setting.
507 &quot;customListId&quot;: &quot;A String&quot;, # Required. Custom id of custom list targeting setting.
508 # This id is custom_list_id.
509 },
510 ],
511 },
512 &quot;excludedFirstAndThirdPartyAudienceGroup&quot;: { # Details of first and third party audience group. # The first and third party audience ids and recencies of the excluded
513 # first and third party audience group. Used for negative targeting. Its
514 # COMPLEMENT is used to UNION other audience groups.
515 # All first and third party audience targeting settings are logically ‘OR’ of
516 # each other.
517 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
518 # third party audience group.
519 # Repeated settings with same id are not allowed.
520 { # Details of first and third party audience targeting setting.
521 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
522 # Only applicable to first party audiences, otherwise
523 # will be ignored. For more info, refer to
524 # https://support.google.com/displayvideo/answer/2949947#recency
525 # When unspecified, no recency limit will be used.
526 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
527 # targeting setting. This id is
528 # first_and_third_party_audience_id.
529 },
530 ],
531 },
532 &quot;includedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the included Google audience group.
533 # Contains Google audience ids only.
534 # All Google audience targeting settings are logically ‘OR’ of each other.
535 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
536 # Repeated settings with same id will be ignored.
537 { # Details of Google audience targeting setting.
538 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
539 # This id is google_audience_id.
540 },
541 ],
542 },
543 &quot;excludedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the excluded Google audience group.
544 # Used for negative targeting. It&#x27;s COMPLEMENT is used to UNION other
545 # audience groups.
546 # Only contains Affinity, In-market and Installed-apps type Google audiences.
547 # All items are logically ‘OR’ of each other.
548 # All Google audience targeting settings are logically ‘OR’ of each other.
549 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
550 # Repeated settings with same id will be ignored.
551 { # Details of Google audience targeting setting.
552 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
553 # This id is google_audience_id.
554 },
555 ],
556 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700557 },
558 &quot;userRewardedContentDetails&quot;: { # User rewarded content targeting option details. This will be populated in # User rewarded content details. This field will be populated when the
559 # TargetingType is
560 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
561 # the
562 # user_rewarded_content_details
563 # field when
564 # targeting_type is
565 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
566 &quot;userRewardedContent&quot;: &quot;A String&quot;, # Output only. User rewarded content status for video ads.
567 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
568 # targeting_type is
569 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
570 },
571 &quot;languageDetails&quot;: { # Details for assigned language targeting option. This will be populated in the # Language details. This field will be populated when the TargetingType is
572 # `TARGETING_TYPE_LANGUAGE`.
573 # details field of an AssignedTargetingOption when
574 # targeting_type is
575 # `TARGETING_TYPE_LANGUAGE`.
576 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
577 # TargetingOption of type `TARGETING_TYPE_LANGUAGE`.
578 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the language (e.g., &quot;French&quot;).
579 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned
580 # language targeting options on the same line item must have the same value
581 # for this field.
582 },
583 &quot;authorizedSellerStatusDetails&quot;: { # Represents an assigned authorized seller status. This will be populated in # Authorized seller status details. This field will be populated when the
584 # TargetingType is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
585 #
586 # You can only target one authorized seller status option per line item.
587 #
588 # If a line item doesn&#x27;t have an authorized seller status option, all
589 # authorized sellers indicated as DIRECT or RESELLER in the ads.txt file
590 # are targeted by default.
591 # the details field of an AssignedTargetingOption when
592 # targeting_type is
593 # `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700594 &quot;authorizedSellerStatus&quot;: &quot;A String&quot;, # Output only. The authorized seller status to target.
Bu Sun Kim65020912020-05-20 12:08:20 -0700595 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
596 # TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700597 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700598 &quot;dayAndTimeDetails&quot;: { # Representation of a segment of time defined on a specific day of the week and # Day and time details. This field will be populated when the
599 # TargetingType is `TARGETING_TYPE_DAY_AND_TIME`.
600 # with a start and end time.
601 # The time represented by `start_hour` must be before the time represented by
602 # `end_hour`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. The day of the week for this day and time targeting setting.
604 &quot;startHour&quot;: 42, # Required. The start hour for day and time targeting. Must be between 0 (start of day)
605 # and 23 (1 hour before end of day).
606 &quot;endHour&quot;: 42, # Required. The end hour for day and time targeting. Must be between 1 (1 hour after
607 # start of day) and 24 (end of day).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700608 &quot;timeZoneResolution&quot;: &quot;A String&quot;, # Required. The mechanism used to determine which timezone to use for this day and time
609 # targeting setting.
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700611 &quot;inheritance&quot;: &quot;A String&quot;, # Output only. The inheritance status of the assigned targeting option.
Bu Sun Kim65020912020-05-20 12:08:20 -0700612 &quot;environmentDetails&quot;: { # Assigned environment targeting option details. This will be populated # Environment details. This field will be populated when the
613 # TargetingType is `TARGETING_TYPE_ENVIRONMENT`.
614 # in the details field of an AssignedTargetingOption when
615 # targeting_type is
616 # `TARGETING_TYPE_ENVIRONMENT`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700617 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
618 # TargetingOption of type `TARGETING_TYPE_ENVIRONMENT` (e.g., &quot;508010&quot;
619 # for targeting the `ENVIRONMENT_WEB_OPTIMIZED` option).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700620 &quot;environment&quot;: &quot;A String&quot;, # Output only. The serving environment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 },
622 &quot;geoRegionDetails&quot;: { # Details for assigned geographic region targeting option. This will be # Geographic region details. This field will be populated when the
623 # TargetingType is `TARGETING_TYPE_GEO_REGION`.
624 # populated in the details field of an AssignedTargetingOption when
625 # targeting_type is
626 # `TARGETING_TYPE_GEO_REGION`.
627 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
628 # TargetingOption of type `TARGETING_TYPE_GEO_REGION`.
629 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the geographic region (e.g., &quot;Ontario, Canada&quot;).
630 &quot;geoRegionType&quot;: &quot;A String&quot;, # Output only. The type of geographic region targeting.
631 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
632 },
633 &quot;deviceTypeDetails&quot;: { # Targeting details for device type. This will be # Device Type details. This field will be populated when the
634 # TargetingType is
635 # `TARGETING_TYPE_DEVICE_TYPE`.
636 # populated in the details field of an AssignedTargetingOption when
637 # targeting_type is
638 # `TARGETING_TYPE_DEVICE_TYPE`.
639 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the device type.
640 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. The display name of the device type.
641 },
642 &quot;exchangeDetails&quot;: { # Details for assigned exchange targeting option. This will be populated in # Exchange details. This field will be populated when the
643 # TargetingType is `TARGETING_TYPE_EXCHANGE`.
644 # the details field of an AssignedTargetingOption when
645 # targeting_type is
646 # `TARGETING_TYPE_EXCHANGE`.
647 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
648 # TargetingOption of type `TARGETING_TYPE_EXCHANGE`.
649 },
650 &quot;assignedTargetingOptionId&quot;: &quot;A String&quot;, # Output only. The unique ID of the assigned targeting option. The ID is only unique
651 # within a given line item and targeting type. It may be reused in other
652 # contexts.
653 &quot;householdIncomeDetails&quot;: { # Details for assigned household income targeting option. This will be # Household income details. This field will be populated when the
654 # TargetingType is `TARGETING_TYPE_HOUSEHOLD_INCOME`.
655 # populated in the details field of an AssignedTargetingOption when
656 # targeting_type is
657 # `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700658 &quot;householdIncome&quot;: &quot;A String&quot;, # Output only. The household income of the audience.
Bu Sun Kim65020912020-05-20 12:08:20 -0700659 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
660 # TargetingOption of type `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700661 },
662 &quot;contentInstreamPositionDetails&quot;: { # Assigned content instream position targeting option details. This will be # Content instream position details. This field will be populated when the
663 # TargetingType is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
664 # populated in the
665 # content_instream_position_details
666 # field when
667 # targeting_type is
668 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
670 # targeting_type is
671 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700672 &quot;contentInstreamPosition&quot;: &quot;A String&quot;, # Output only. The content instream position for video or audio ads.
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 },
674 &quot;categoryDetails&quot;: { # Assigned category targeting option details. This will be populated in the # Category details. This field will be populated when the TargetingType is
675 # `TARGETING_TYPE_CATEGORY`.
676 #
677 # Targeting a category will also target its subcategories. If a category is
678 # excluded from targeting and a subcategory is included, the exclusion will
679 # take precedence.
680 # category_details field when
681 # targeting_type is
682 # `TARGETING_TYPE_CATEGORY`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700683 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
684 # targeting_type is
685 # `TARGETING_TYPE_CATEGORY`.
686 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the category.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700687 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 },
689 &quot;inventorySourceGroupDetails&quot;: { # Targeting details for inventory source group. This will be # Inventory source group details. This field will be populated when the
690 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
691 # populated in the details field of an AssignedTargetingOption when
692 # targeting_type is
693 # `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
694 &quot;inventorySourceGroupId&quot;: &quot;A String&quot;, # Required. ID of the inventory source group. Should refer to the
695 # inventory_source_group_id
696 # field of an InventorySourceGroup resource.
697 },
698 &quot;regionalLocationListDetails&quot;: { # Targeting details for regional location list. This will be # Regional location list details. This field will be populated when the
699 # TargetingType is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
700 # populated in the details field of an AssignedTargetingOption when
701 # targeting_type is
702 # `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
703 &quot;regionalLocationListId&quot;: &quot;A String&quot;, # Required. ID of the regional location list. Should refer to the
704 # location_list_id field of a
705 # LocationList resource whose type is `TARGETING_LOCATION_TYPE_REGIONAL`.
706 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
707 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700708 &quot;carrierAndIspDetails&quot;: { # Details for assigned carrier and ISP targeting option. This will be populated # Carrier and ISP details. This field will be populated when the
709 # TargetingType is `TARGETING_TYPE_CARRIER_AND_ISP`.
710 # in the details field of an AssignedTargetingOption when
711 # targeting_type is
712 # `TARGETING_TYPE_CARRIER_AND_ISP`.
713 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned carrier
714 # and ISP targeting options on the same line item must have the same value
715 # for this field.
716 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
717 # TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`.
718 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the carrier or ISP.
719 },
720 &quot;viewabilityDetails&quot;: { # Assigned viewability targeting option details. This will be populated in the # Viewability details. This field will be populated when the TargetingType
721 # is `TARGETING_TYPE_VIEWABILITY`.
722 #
723 # You can only target one viewability option per line item.
724 # viewability_details field of
725 # an AssignedTargetingOption when
726 # targeting_type is
727 # `TARGETING_TYPE_VIEWABILITY`.
728 &quot;viewability&quot;: &quot;A String&quot;, # Output only. The predicted viewability percentage.
729 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
730 # TargetingOption of type `TARGETING_TYPE_VIEWABILITY` (e.g., &quot;509010&quot;
731 # for targeting the `VIEWABILITY_10_PERCENT_OR_MORE` option).
732 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700733 },
734 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700735 },
736 ],
737 }
738
739 x__xgafv: string, V1 error format.
740 Allowed values
741 1 - v1 error format
742 2 - v2 error format
743
744Returns:
745 An object of the form:
746
747 {
748 &quot;createdAssignedTargetingOptions&quot;: [ # The list of assigned targeting options that have been successfully created.
749 #
750 # This list will be absent if empty.
751 { # A single assigned targeting option, which defines the state of a targeting
752 # option for an entity with targeting settings, such as a Line Item or
753 # Insertion Order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 &quot;appDetails&quot;: { # Details for assigned app targeting option. This will be populated in the # App details. This field will be populated when the
755 # TargetingType is `TARGETING_TYPE_APP`.
756 # details field of an AssignedTargetingOption when
757 # targeting_type is
758 # `TARGETING_TYPE_APP`.
759 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app.
760 &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app.
761 #
762 # Android&#x27;s Play store app uses bundle ID, for example
763 # `com.google.android.gm`. Apple&#x27;s App store app ID uses 9 digit string, for
764 # example `422689480`.
765 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
766 },
767 &quot;parentalStatusDetails&quot;: { # Details for assigned parental status targeting option. This will be # Parental status details. This field will be populated when the
768 # TargetingType is `TARGETING_TYPE_PARENTAL_STATUS`.
769 # populated in the details field of an AssignedTargetingOption when
770 # targeting_type is
771 # `TARTGETING_TYPE_PARENTAL_STATUS`.
772 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
773 # TargetingOption of type `TARGETING_TYPE_PARENTAL_STATUS`.
774 &quot;parentalStatus&quot;: &quot;A String&quot;, # Output only. The parental status of the audience.
775 },
776 &quot;targetingType&quot;: &quot;A String&quot;, # Output only. Identifies the type of this assigned targeting option.
777 &quot;urlDetails&quot;: { # Details for assigned URL targeting option. This will be populated in the # URL details. This field will be populated when the
778 # TargetingType is `TARGETING_TYPE_URL`.
779 # details field of an AssignedTargetingOption when
780 # targeting_type is
781 # `TARGETING_TYPE_URL`.
782 &quot;url&quot;: &quot;A String&quot;, # Required. The URL, for example `example.com`.
783 #
784 # DV360 supports two levels of subdirectory targeting, for example
785 # `www.example.com/one-subdirectory-level/second-level`, and five levels of
786 # subdomain targeting, for example `five.four.three.two.one.example.com`.
787 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
788 },
789 &quot;onScreenPositionDetails&quot;: { # On screen position targeting option details. This will be # On screen position details. This field will be populated when the
790 # TargetingType is `TARGETING_TYPE_ON_SCREEN_POSITION`.
791 # populated in the
792 # on_screen_position_details
793 # field when
794 # targeting_type is
795 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
797 # targeting_type is
798 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700799 &quot;onScreenPosition&quot;: &quot;A String&quot;, # Output only. The on screen position.
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 },
801 &quot;videoPlayerSizeDetails&quot;: { # Video player size targeting option details. This will be populated in the # Video player size details. This field will be populated when the
802 # TargetingType is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
803 # video_player_size_details
804 # field when targeting_type is
805 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
806 # Explicitly targeting all options is not supported. Remove all video player
807 # size targeting options to achieve this effect.
808 &quot;videoPlayerSize&quot;: &quot;A String&quot;, # Output only. The video player size.
809 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
810 # targeting_type is
811 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
812 },
813 &quot;channelDetails&quot;: { # Details for assigned channel targeting option. This will be populated in # Channel details. This field will be populated when the
814 # TargetingType is `TARGETING_TYPE_CHANNEL`.
815 # the details field of an AssignedTargetingOption when
816 # targeting_type is
817 # `TARGETING_TYPE_CHANNEL`.
818 &quot;channelId&quot;: &quot;A String&quot;, # Required. ID of the channel. Should refer to the channel ID
819 # field on a
820 # [Partner-owned channel](partners.channels#Channel.FIELDS.channel_id) or
821 # [advertiser-owned channel](advertisers.channels#Channel.FIELDS.channel_id)
822 # resource.
823 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. For advertiser
824 # level assigned targeting option, this field must be true.
825 },
826 &quot;operatingSystemDetails&quot;: { # Assigned operating system targeting option details. This will be # Operating system details. This field will be populated when the
827 # TargetingType is `TARGETING_TYPE_OPERATING_SYSTEM`.
828 # populated in the
829 # operating_system_details
830 # field when
831 # targeting_type is
832 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700833 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the operating system.
Bu Sun Kim65020912020-05-20 12:08:20 -0700834 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
835 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting option ID populated in
836 # targeting_option_id field when
837 # targeting_type is
838 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 },
840 &quot;thirdPartyVerifierDetails&quot;: { # Assigned third party verifier targeting option details. This will be # Third party verification details. This field will be populated when the
841 # TargetingType is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
842 # populated in the details field of an AssignedTargetingOption when
843 # targeting_type is
844 # `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700845 &quot;integralAdScience&quot;: { # Details of Integral Ad Science settings. # Third party brand verifier -- Integral Ad Science.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700846 &quot;excludedAdFraudRisk&quot;: &quot;A String&quot;, # Ad Fraud settings.
847 &quot;displayViewability&quot;: &quot;A String&quot;, # Display Viewability section (applicable to display line items only).
848 &quot;excludedHateSpeechRisk&quot;: &quot;A String&quot;, # Brand Safety - **Hate speech**.
849 &quot;excludedOffensiveLanguageRisk&quot;: &quot;A String&quot;, # Brand Safety - **Offensive language**.
850 &quot;excludedDrugsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Drugs**.
851 &quot;excludedAdultRisk&quot;: &quot;A String&quot;, # Brand Safety - **Adult content**.
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 &quot;traqScoreOption&quot;: &quot;A String&quot;, # True advertising quality (applicable to Display line items only).
853 &quot;videoViewability&quot;: &quot;A String&quot;, # Video Viewability Section (applicable to video line items only).
854 &quot;excludedAlcoholRisk&quot;: &quot;A String&quot;, # Brand Safety - **Alcohol**.
855 &quot;excludedGamblingRisk&quot;: &quot;A String&quot;, # Brand Safety - **Gambling**.
856 &quot;excludeUnrateable&quot;: True or False, # Brand Safety - **Unrateable**.
857 &quot;excludedIllegalDownloadsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Illegal downloads**.
858 &quot;excludedViolenceRisk&quot;: &quot;A String&quot;, # Brand Safety - **Violence**.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700859 },
860 &quot;doubleVerify&quot;: { # Details of DoubleVerify settings. # Third party brand verifier -- DoubleVerify.
861 &quot;videoViewability&quot;: { # Details of DoubleVerify video viewability settings. # Video viewability settings (applicable to video line items only).
862 &quot;playerImpressionRate&quot;: &quot;A String&quot;, # Target inventory to maximize impressions with 400x300 or greater player
863 # size.
864 &quot;videoIab&quot;: &quot;A String&quot;, # Target web inventory to maximize IAB viewable rate.
865 &quot;videoViewableRate&quot;: &quot;A String&quot;, # Target web inventory to maximize fully viewable rate.
866 },
867 &quot;avoidedAgeRatings&quot;: [ # Avoid bidding on apps with the age rating.
868 &quot;A String&quot;,
869 ],
870 &quot;fraudInvalidTraffic&quot;: { # DoubleVerify Fraud &amp; Invalid Traffic settings. # Avoid Sites and Apps with historical Fraud &amp; IVT Rates.
871 &quot;avoidInsufficientOption&quot;: True or False, # Insufficient Historical Fraud &amp; IVT Stats.
872 &quot;avoidedFraudOption&quot;: &quot;A String&quot;, # Avoid Sites and Apps with historical Fraud &amp; IVT.
873 },
874 &quot;brandSafetyCategories&quot;: { # Settings for brand safety controls. # DV Brand Safety Controls.
875 &quot;avoidedMediumSeverityCategories&quot;: [ # Brand safety medium severity avoidance categories.
876 &quot;A String&quot;,
877 ],
878 &quot;avoidedHighSeverityCategories&quot;: [ # Brand safety high severity avoidance categories.
879 &quot;A String&quot;,
880 ],
881 &quot;avoidUnknownBrandSafetyCategory&quot;: True or False, # Unknown or unrateable.
882 },
883 &quot;appStarRating&quot;: { # Details of DoubleVerify star ratings settings. # Avoid bidding on apps with the star ratings.
884 &quot;avoidedStarRating&quot;: &quot;A String&quot;, # Avoid bidding on apps with the star ratings.
885 &quot;avoidInsufficientStarRating&quot;: True or False, # Avoid bidding on apps with insufficient star ratings.
886 },
887 &quot;displayViewability&quot;: { # Details of DoubleVerify display viewability settings. # Display viewability settings (applicable to display line items only).
888 &quot;viewableDuring&quot;: &quot;A String&quot;, # Target web and app inventory to maximize 100% viewable duration.
889 &quot;iab&quot;: &quot;A String&quot;, # Target web and app inventory to maximize IAB viewable rate.
890 },
891 },
892 &quot;adloox&quot;: { # Details of Adloox settings. # Third party brand verifier -- Adloox.
893 &quot;excludedAdlooxCategories&quot;: [ # Adloox&#x27;s brand safety settings.
894 &quot;A String&quot;,
895 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700896 },
897 },
898 &quot;proximityLocationListDetails&quot;: { # Targeting details for proximity location list. This will be # Proximity location list details. This field will be populated when the
899 # TargetingType is
900 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
901 # populated in the details field of an AssignedTargetingOption when
902 # targeting_type is
903 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 &quot;proximityRadiusRange&quot;: &quot;A String&quot;, # Required. Radius range for proximity location list.
905 # This represents the size of the area around a chosen location that will be
906 # targeted.
907 #
908 # `All` proximity location targeting under a single line item must have the
909 # same radius range value. Set this value to match any existing targeting.
910 # If updated, this field will change the radius range for all proximity
911 # targeting under the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700912 &quot;proximityLocationListId&quot;: &quot;A String&quot;, # Required. ID of the proximity location list. Should refer to the
913 # location_list_id field of a
914 # LocationList resource whose type is
915 # `TARGETING_LOCATION_TYPE_PROXIMITY`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700916 },
917 &quot;ageRangeDetails&quot;: { # Represents a targetable age range. This will be populated in the details # Age range details. This field will be populated when the
918 # TargetingType is `TARGETING_TYPE_AGE_RANGE`.
919 # field of an AssignedTargetingOption when
920 # targeting_type is
921 # `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700922 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
923 # TargetingOption of type `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 &quot;ageRange&quot;: &quot;A String&quot;, # Output only. The age range of an audience. We only support targeting a continuous age
925 # range of an audience. Thus, the age range represented in this field can be
926 # 1) targeted solely, or, 2) part of a larger continuous age range. The reach
927 # of a continuous age range targeting can be expanded by also targeting an
928 # audience of an unknown age.
Bu Sun Kim65020912020-05-20 12:08:20 -0700929 },
930 &quot;subExchangeDetails&quot;: { # Details for assigned sub-exchange targeting option. This will be populated in # Sub-exchange details. This field will be populated when the
931 # TargetingType is `TARGETING_TYPE_SUB_EXCHANGE`.
932 # the details field of an AssignedTargetingOption when
933 # targeting_type is
934 # `TARGETING_TYPE_SUB_EXCHANGE`.
935 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
936 # TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`.
937 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700938 &quot;keywordDetails&quot;: { # Details for assigned keyword targeting option. This will be populated in the # Keyword details. This field will be populated when the TargetingType is
939 # `TARGETING_TYPE_KEYWORD`.
940 #
941 # A maximum of 5000 direct negative keywords can be assigned to a
942 # line item. No limit on number of positive keywords that can be assigned.
943 # details field of an AssignedTargetingOption when
944 # targeting_type is
945 # `TARGETING_TYPE_KEYWORD`.
946 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
947 &quot;keyword&quot;: &quot;A String&quot;, # Required. The keyword, for example `car insurance`.
948 #
949 # Positive keyword cannot be offensive word.
950 # Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number
951 # of characters is 80. Maximum number of words is 10.
952 },
953 &quot;deviceMakeModelDetails&quot;: { # Assigned device make and model targeting option details. This will be # Device make and model details. This field will be populated when the
954 # TargetingType is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
955 # populated in the
956 # device_make_model_details
957 # field when
958 # targeting_type is
959 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
960 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
961 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
962 # targeting_type is
963 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
964 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the device make and model.
965 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700966 &quot;digitalContentLabelExclusionDetails&quot;: { # Targeting details for digital content label. This will be # Digital content label details. This field will be populated when the
967 # TargetingType is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
968 #
969 # Digital content labels are targeting exclusions. Advertiser level digital
970 # content label exclusions, if set, are always applied in serving (even
971 # though they aren&#x27;t visible in line item settings). Line item settings can
972 # exclude content labels in addition to advertiser exclusions, but can&#x27;t
973 # override them. A line item won&#x27;t serve if all the digital content labels
974 # are excluded.
975 # populated in the details field of an AssignedTargetingOption when
976 # targeting_type is
977 # `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
978 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the digital content label to be EXCLUDED.
979 &quot;contentRatingTier&quot;: &quot;A String&quot;, # Output only. The display name of the digital content label rating tier.
980 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700981 &quot;browserDetails&quot;: { # Details for assigned browser targeting option. This will be populated in # Browser details. This field will be populated when the
982 # TargetingType is `TARGETING_TYPE_BROWSER`.
983 # the details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -0700984 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700985 # `TARGETING_TYPE_BROWSER`.
986 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
987 # TargetingOption of type `TARGETING_TYPE_BROWSER`.
988 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the browser.
989 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned browser
990 # targeting options on the same line item must have the same value for this
991 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -0700992 },
993 &quot;appCategoryDetails&quot;: { # Details for assigned app category targeting option. This will be # App category details. This field will be populated when the
994 # TargetingType is `TARGETING_TYPE_APP_CATEGORY`.
995 # populated in the
996 # app_category_details field of
997 # an AssignedTargetingOption when
998 # targeting_type
999 # is `TARGETING_TYPE_APP_CATEGORY`.
1000 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1001 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1002 # targeting_type is
1003 # `TARGETING_TYPE_APP_CATEGORY`.
1004 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app category.
1005 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001006 &quot;contentOutstreamPositionDetails&quot;: { # Assigned content outstream position targeting option details. This will be # Content outstream position details. This field will be populated when the
1007 # TargetingType is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1008 # populated in the
1009 # content_outstream_position_details
1010 # field when
1011 # targeting_type is
1012 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1013 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1014 # targeting_type is
1015 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1016 &quot;contentOutstreamPosition&quot;: &quot;A String&quot;, # Output only. The content outstream position.
1017 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001018 &quot;negativeKeywordListDetails&quot;: { # Targeting details for negative keyword list. This will be populated in the # Keyword details. This field will be populated when the
1019 # TargetingType is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
1020 #
1021 # A maximum of 4 negative keyword lists can be assigned to a line item.
1022 # details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001024 # `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
1025 &quot;negativeKeywordListId&quot;: &quot;A String&quot;, # Required. ID of the negative keyword list. Should refer to the
1026 # negative_keyword_list_id
1027 # field of a NegativeKeywordList resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001028 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001029 &quot;genderDetails&quot;: { # Details for assigned gender targeting option. This will be populated in # Gender details. This field will be populated when the
1030 # TargetingType is `TARGETING_TYPE_GENDER`.
1031 # the details field of an AssignedTargetingOption when
1032 # targeting_type is
1033 # `TARTGETING_TYPE_GENDER`.
1034 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1035 # TargetingOption of type `TARGETING_TYPE_GENDER`.
1036 &quot;gender&quot;: &quot;A String&quot;, # Output only. The gender of the audience.
1037 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001038 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name for this assigned targeting option.
1039 &quot;inventorySourceDetails&quot;: { # Targeting details for inventory source. This will be # Inventory source details. This field will be populated when the
1040 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE`.
1041 # populated in the details field of an AssignedTargetingOption when
1042 # targeting_type is
1043 # `TARGETING_TYPE_INVENTORY_SOURCE`.
1044 &quot;inventorySourceId&quot;: &quot;A String&quot;, # Required. ID of the inventory source. Should refer to the
1045 # inventory_source_id field of an
1046 # InventorySource resource.
1047 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;sensitiveCategoryExclusionDetails&quot;: { # Targeting details for sensitive category. This will be populated in the # Sensitive category details. This field will be populated when the
1049 # TargetingType is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
1050 #
1051 # Sensitive categories are targeting exclusions. Advertiser level sensitive
1052 # category exclusions, if set, are always applied in serving (even though
1053 # they aren&#x27;t visible in line item settings). Line item settings can
1054 # exclude sensitive categories in addition to advertiser exclusions, but
1055 # can&#x27;t override them.
1056 # details field of an AssignedTargetingOption when
1057 # targeting_type is
1058 # `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
1059 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the sensitive category to be EXCLUDED.
1060 &quot;sensitiveCategory&quot;: &quot;A String&quot;, # Output only. An enum for the DV360 Sensitive category content classifier.
1061 },
1062 &quot;audienceGroupDetails&quot;: { # Assigned audience group targeting option details. This will be populated in # Audience targeting details. This field will be populated when the
1063 # TargetingType is `TARGETING_TYPE_AUDIENCE_GROUP`.
1064 # You can only target one audience group option per line item.
1065 # the details field of an AssignedTargetingOption when
1066 # targeting_type is
1067 # `TARGETING_TYPE_AUDIENCE_GROUP`.
1068 # The relation between each group is UNION, except for
1069 # excluded_first_and_third_party_audience_group and
1070 # excluded_google_audience_group, of which COMPLEMENT is UNION&#x27;ed with other
1071 # groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001072 &quot;includedFirstAndThirdPartyAudienceGroups&quot;: [ # The first and third party audience ids and recencies of included first
1073 # and third party audience groups. Each first and third party audience group
1074 # contains first and third party audience ids only.
1075 # The relation between each first and third party audience group is
1076 # INTERSECTION, and the result is UNION&#x27;ed with other audience groups.
1077 # Repeated groups with same settings will be ignored.
1078 { # Details of first and third party audience group.
1079 # All first and third party audience targeting settings are logically ‘OR’ of
1080 # each other.
1081 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
1082 # third party audience group.
1083 # Repeated settings with same id are not allowed.
1084 { # Details of first and third party audience targeting setting.
1085 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
1086 # Only applicable to first party audiences, otherwise
1087 # will be ignored. For more info, refer to
1088 # https://support.google.com/displayvideo/answer/2949947#recency
1089 # When unspecified, no recency limit will be used.
1090 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
1091 # targeting setting. This id is
1092 # first_and_third_party_audience_id.
1093 },
1094 ],
1095 },
1096 ],
1097 &quot;includedCombinedAudienceGroup&quot;: { # Details of combined audience group. # The combined audience ids of the included combined audience group.
1098 # Contains combined audience ids only.
1099 # All combined audience targeting settings are logically ‘OR’ of each other.
1100 &quot;settings&quot;: [ # Required. All combined audience targeting settings in combined audience group.
1101 # Repeated settings with same id will be ignored.
1102 # The number of combined audience settings should be no more than five, error
1103 # will be thrown otherwise.
1104 { # Details of combined audience targeting setting.
1105 &quot;combinedAudienceId&quot;: &quot;A String&quot;, # Required. Combined audience id of combined audience targeting setting.
1106 # This id is combined_audience_id.
1107 },
1108 ],
1109 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001110 &quot;includedCustomListGroup&quot;: { # Details of custom list group. # The custom list ids of the included custom list group.
1111 # Contains custom list ids only.
1112 # All custom list targeting settings are logically ‘OR’ of each other.
1113 &quot;settings&quot;: [ # Required. All custom list targeting settings in custom list group.
1114 # Repeated settings with same id will be ignored.
1115 { # Details of custom list targeting setting.
1116 &quot;customListId&quot;: &quot;A String&quot;, # Required. Custom id of custom list targeting setting.
1117 # This id is custom_list_id.
1118 },
1119 ],
1120 },
1121 &quot;excludedFirstAndThirdPartyAudienceGroup&quot;: { # Details of first and third party audience group. # The first and third party audience ids and recencies of the excluded
1122 # first and third party audience group. Used for negative targeting. Its
1123 # COMPLEMENT is used to UNION other audience groups.
1124 # All first and third party audience targeting settings are logically ‘OR’ of
1125 # each other.
1126 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
1127 # third party audience group.
1128 # Repeated settings with same id are not allowed.
1129 { # Details of first and third party audience targeting setting.
1130 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
1131 # Only applicable to first party audiences, otherwise
1132 # will be ignored. For more info, refer to
1133 # https://support.google.com/displayvideo/answer/2949947#recency
1134 # When unspecified, no recency limit will be used.
1135 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
1136 # targeting setting. This id is
1137 # first_and_third_party_audience_id.
1138 },
1139 ],
1140 },
1141 &quot;includedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the included Google audience group.
1142 # Contains Google audience ids only.
1143 # All Google audience targeting settings are logically ‘OR’ of each other.
1144 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
1145 # Repeated settings with same id will be ignored.
1146 { # Details of Google audience targeting setting.
1147 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
1148 # This id is google_audience_id.
1149 },
1150 ],
1151 },
1152 &quot;excludedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the excluded Google audience group.
1153 # Used for negative targeting. It&#x27;s COMPLEMENT is used to UNION other
1154 # audience groups.
1155 # Only contains Affinity, In-market and Installed-apps type Google audiences.
1156 # All items are logically ‘OR’ of each other.
1157 # All Google audience targeting settings are logically ‘OR’ of each other.
1158 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
1159 # Repeated settings with same id will be ignored.
1160 { # Details of Google audience targeting setting.
1161 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
1162 # This id is google_audience_id.
1163 },
1164 ],
1165 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001166 },
1167 &quot;userRewardedContentDetails&quot;: { # User rewarded content targeting option details. This will be populated in # User rewarded content details. This field will be populated when the
1168 # TargetingType is
1169 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1170 # the
1171 # user_rewarded_content_details
1172 # field when
1173 # targeting_type is
1174 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1175 &quot;userRewardedContent&quot;: &quot;A String&quot;, # Output only. User rewarded content status for video ads.
1176 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1177 # targeting_type is
1178 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1179 },
1180 &quot;languageDetails&quot;: { # Details for assigned language targeting option. This will be populated in the # Language details. This field will be populated when the TargetingType is
1181 # `TARGETING_TYPE_LANGUAGE`.
1182 # details field of an AssignedTargetingOption when
1183 # targeting_type is
1184 # `TARGETING_TYPE_LANGUAGE`.
1185 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1186 # TargetingOption of type `TARGETING_TYPE_LANGUAGE`.
1187 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the language (e.g., &quot;French&quot;).
1188 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned
1189 # language targeting options on the same line item must have the same value
1190 # for this field.
1191 },
1192 &quot;authorizedSellerStatusDetails&quot;: { # Represents an assigned authorized seller status. This will be populated in # Authorized seller status details. This field will be populated when the
1193 # TargetingType is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
1194 #
1195 # You can only target one authorized seller status option per line item.
1196 #
1197 # If a line item doesn&#x27;t have an authorized seller status option, all
1198 # authorized sellers indicated as DIRECT or RESELLER in the ads.txt file
1199 # are targeted by default.
1200 # the details field of an AssignedTargetingOption when
1201 # targeting_type is
1202 # `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001203 &quot;authorizedSellerStatus&quot;: &quot;A String&quot;, # Output only. The authorized seller status to target.
Bu Sun Kim65020912020-05-20 12:08:20 -07001204 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1205 # TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001206 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 &quot;dayAndTimeDetails&quot;: { # Representation of a segment of time defined on a specific day of the week and # Day and time details. This field will be populated when the
1208 # TargetingType is `TARGETING_TYPE_DAY_AND_TIME`.
1209 # with a start and end time.
1210 # The time represented by `start_hour` must be before the time represented by
1211 # `end_hour`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. The day of the week for this day and time targeting setting.
1213 &quot;startHour&quot;: 42, # Required. The start hour for day and time targeting. Must be between 0 (start of day)
1214 # and 23 (1 hour before end of day).
1215 &quot;endHour&quot;: 42, # Required. The end hour for day and time targeting. Must be between 1 (1 hour after
1216 # start of day) and 24 (end of day).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001217 &quot;timeZoneResolution&quot;: &quot;A String&quot;, # Required. The mechanism used to determine which timezone to use for this day and time
1218 # targeting setting.
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001220 &quot;inheritance&quot;: &quot;A String&quot;, # Output only. The inheritance status of the assigned targeting option.
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;environmentDetails&quot;: { # Assigned environment targeting option details. This will be populated # Environment details. This field will be populated when the
1222 # TargetingType is `TARGETING_TYPE_ENVIRONMENT`.
1223 # in the details field of an AssignedTargetingOption when
1224 # targeting_type is
1225 # `TARGETING_TYPE_ENVIRONMENT`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001226 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1227 # TargetingOption of type `TARGETING_TYPE_ENVIRONMENT` (e.g., &quot;508010&quot;
1228 # for targeting the `ENVIRONMENT_WEB_OPTIMIZED` option).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001229 &quot;environment&quot;: &quot;A String&quot;, # Output only. The serving environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 },
1231 &quot;geoRegionDetails&quot;: { # Details for assigned geographic region targeting option. This will be # Geographic region details. This field will be populated when the
1232 # TargetingType is `TARGETING_TYPE_GEO_REGION`.
1233 # populated in the details field of an AssignedTargetingOption when
1234 # targeting_type is
1235 # `TARGETING_TYPE_GEO_REGION`.
1236 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1237 # TargetingOption of type `TARGETING_TYPE_GEO_REGION`.
1238 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the geographic region (e.g., &quot;Ontario, Canada&quot;).
1239 &quot;geoRegionType&quot;: &quot;A String&quot;, # Output only. The type of geographic region targeting.
1240 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1241 },
1242 &quot;deviceTypeDetails&quot;: { # Targeting details for device type. This will be # Device Type details. This field will be populated when the
1243 # TargetingType is
1244 # `TARGETING_TYPE_DEVICE_TYPE`.
1245 # populated in the details field of an AssignedTargetingOption when
1246 # targeting_type is
1247 # `TARGETING_TYPE_DEVICE_TYPE`.
1248 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the device type.
1249 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. The display name of the device type.
1250 },
1251 &quot;exchangeDetails&quot;: { # Details for assigned exchange targeting option. This will be populated in # Exchange details. This field will be populated when the
1252 # TargetingType is `TARGETING_TYPE_EXCHANGE`.
1253 # the details field of an AssignedTargetingOption when
1254 # targeting_type is
1255 # `TARGETING_TYPE_EXCHANGE`.
1256 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1257 # TargetingOption of type `TARGETING_TYPE_EXCHANGE`.
1258 },
1259 &quot;assignedTargetingOptionId&quot;: &quot;A String&quot;, # Output only. The unique ID of the assigned targeting option. The ID is only unique
1260 # within a given line item and targeting type. It may be reused in other
1261 # contexts.
1262 &quot;householdIncomeDetails&quot;: { # Details for assigned household income targeting option. This will be # Household income details. This field will be populated when the
1263 # TargetingType is `TARGETING_TYPE_HOUSEHOLD_INCOME`.
1264 # populated in the details field of an AssignedTargetingOption when
1265 # targeting_type is
1266 # `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001267 &quot;householdIncome&quot;: &quot;A String&quot;, # Output only. The household income of the audience.
Bu Sun Kim65020912020-05-20 12:08:20 -07001268 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1269 # TargetingOption of type `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001270 },
1271 &quot;contentInstreamPositionDetails&quot;: { # Assigned content instream position targeting option details. This will be # Content instream position details. This field will be populated when the
1272 # TargetingType is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
1273 # populated in the
1274 # content_instream_position_details
1275 # field when
1276 # targeting_type is
1277 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001278 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1279 # targeting_type is
1280 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001281 &quot;contentInstreamPosition&quot;: &quot;A String&quot;, # Output only. The content instream position for video or audio ads.
Bu Sun Kim65020912020-05-20 12:08:20 -07001282 },
1283 &quot;categoryDetails&quot;: { # Assigned category targeting option details. This will be populated in the # Category details. This field will be populated when the TargetingType is
1284 # `TARGETING_TYPE_CATEGORY`.
1285 #
1286 # Targeting a category will also target its subcategories. If a category is
1287 # excluded from targeting and a subcategory is included, the exclusion will
1288 # take precedence.
1289 # category_details field when
1290 # targeting_type is
1291 # `TARGETING_TYPE_CATEGORY`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1293 # targeting_type is
1294 # `TARGETING_TYPE_CATEGORY`.
1295 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the category.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001296 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
Bu Sun Kim65020912020-05-20 12:08:20 -07001297 },
1298 &quot;inventorySourceGroupDetails&quot;: { # Targeting details for inventory source group. This will be # Inventory source group details. This field will be populated when the
1299 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
1300 # populated in the details field of an AssignedTargetingOption when
1301 # targeting_type is
1302 # `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
1303 &quot;inventorySourceGroupId&quot;: &quot;A String&quot;, # Required. ID of the inventory source group. Should refer to the
1304 # inventory_source_group_id
1305 # field of an InventorySourceGroup resource.
1306 },
1307 &quot;regionalLocationListDetails&quot;: { # Targeting details for regional location list. This will be # Regional location list details. This field will be populated when the
1308 # TargetingType is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
1309 # populated in the details field of an AssignedTargetingOption when
1310 # targeting_type is
1311 # `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
1312 &quot;regionalLocationListId&quot;: &quot;A String&quot;, # Required. ID of the regional location list. Should refer to the
1313 # location_list_id field of a
1314 # LocationList resource whose type is `TARGETING_LOCATION_TYPE_REGIONAL`.
1315 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1316 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001317 &quot;carrierAndIspDetails&quot;: { # Details for assigned carrier and ISP targeting option. This will be populated # Carrier and ISP details. This field will be populated when the
1318 # TargetingType is `TARGETING_TYPE_CARRIER_AND_ISP`.
1319 # in the details field of an AssignedTargetingOption when
1320 # targeting_type is
1321 # `TARGETING_TYPE_CARRIER_AND_ISP`.
1322 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned carrier
1323 # and ISP targeting options on the same line item must have the same value
1324 # for this field.
1325 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1326 # TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`.
1327 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the carrier or ISP.
1328 },
1329 &quot;viewabilityDetails&quot;: { # Assigned viewability targeting option details. This will be populated in the # Viewability details. This field will be populated when the TargetingType
1330 # is `TARGETING_TYPE_VIEWABILITY`.
1331 #
1332 # You can only target one viewability option per line item.
1333 # viewability_details field of
1334 # an AssignedTargetingOption when
1335 # targeting_type is
1336 # `TARGETING_TYPE_VIEWABILITY`.
1337 &quot;viewability&quot;: &quot;A String&quot;, # Output only. The predicted viewability percentage.
1338 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1339 # TargetingOption of type `TARGETING_TYPE_VIEWABILITY` (e.g., &quot;509010&quot;
1340 # for targeting the `VIEWABILITY_10_PERCENT_OR_MORE` option).
1341 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 },
1343 ],
1344 }</pre>
1345</div>
1346
1347<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001348 <code class="details" id="bulkListLineItemAssignedTargetingOptions">bulkListLineItemAssignedTargetingOptions(advertiserId, lineItemId, filter=None, pageToken=None, pageSize=None, orderBy=None, x__xgafv=None)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -07001349 <pre>Lists assigned targeting options of a line item across targeting types.
1350
1351Args:
1352 advertiserId: string, Required. The ID of the advertiser the line item belongs to. (required)
1353 lineItemId: string, Required. The ID of the line item to list assigned targeting options for. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 filter: string, Allows filtering by assigned targeting option properties.
1355Supported syntax:
1356
1357* Filter expressions are made up of one or more restrictions.
1358* Restrictions can be combined by the logical operator `OR` on the same
1359field.
1360* A restriction has the form of `{field} {operator} {value}`.
1361* The operator must be `EQUALS (=)`.
1362* Supported fields:
1363 - `targetingType`
1364 - `inheritance`
1365
1366Examples:
1367
1368* AssignedTargetingOptions of targeting type
1369TARGETING_TYPE_PROXIMITY_LOCATION_LIST or TARGETING_TYPE_CHANNEL
1370`targetingType=&quot;TARGETING_TYPE_PROXIMITY_LOCATION_LIST&quot; OR
1371targetingType=&quot;TARGETING_TYPE_CHANNEL&quot;`
1372* AssignedTargetingOptions with inheritance status of NOT_INHERITED or
1373 INHERITED_FROM_PARTNER
1374`inheritance=&quot;NOT_INHERITED&quot; OR inheritance=&quot;INHERITED_FROM_PARTNER&quot;`
1375
1376The length of this field should be no more than 500 characters.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001377 pageToken: string, A token that lets the client fetch the next page of results.
1378Typically, this is the value of
1379next_page_token
1380returned from the previous call to
1381`BulkListLineItemAssignedTargetingOptions` method.
1382If not specified, the first page of results will be returned.
1383 pageSize: integer, Requested page size.
1384The size must be an integer between `1` and `5000`. If unspecified,
1385the default is &#x27;5000&#x27;. Returns error code `INVALID_ARGUMENT` if an invalid
1386value is specified.
1387 orderBy: string, Field by which to sort the list.
1388Acceptable values are:
1389
1390* `targetingType` (default)
1391
1392The default sorting order is ascending. To specify descending order for
1393a field, a suffix &quot;desc&quot; should be added to the field name. Example:
1394`targetingType desc`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001395 x__xgafv: string, V1 error format.
1396 Allowed values
1397 1 - v1 error format
1398 2 - v2 error format
1399
1400Returns:
1401 An object of the form:
1402
1403 {
1404 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying the next page of results. This value should be
1405 # specified as the
1406 # pageToken in
1407 # a subsequent BulkListLineItemAssignedTargetingOptionsRequest to fetch
1408 # the next page of results. This token will be absent if there are no more
1409 # assigned_targeting_options
1410 # to return.
1411 &quot;assignedTargetingOptions&quot;: [ # The list of assigned targeting options.
1412 #
1413 # This list will be absent if empty.
1414 { # A single assigned targeting option, which defines the state of a targeting
1415 # option for an entity with targeting settings, such as a Line Item or
1416 # Insertion Order.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;appDetails&quot;: { # Details for assigned app targeting option. This will be populated in the # App details. This field will be populated when the
1418 # TargetingType is `TARGETING_TYPE_APP`.
1419 # details field of an AssignedTargetingOption when
1420 # targeting_type is
1421 # `TARGETING_TYPE_APP`.
1422 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app.
1423 &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app.
1424 #
1425 # Android&#x27;s Play store app uses bundle ID, for example
1426 # `com.google.android.gm`. Apple&#x27;s App store app ID uses 9 digit string, for
1427 # example `422689480`.
1428 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1429 },
1430 &quot;parentalStatusDetails&quot;: { # Details for assigned parental status targeting option. This will be # Parental status details. This field will be populated when the
1431 # TargetingType is `TARGETING_TYPE_PARENTAL_STATUS`.
1432 # populated in the details field of an AssignedTargetingOption when
1433 # targeting_type is
1434 # `TARTGETING_TYPE_PARENTAL_STATUS`.
1435 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1436 # TargetingOption of type `TARGETING_TYPE_PARENTAL_STATUS`.
1437 &quot;parentalStatus&quot;: &quot;A String&quot;, # Output only. The parental status of the audience.
1438 },
1439 &quot;targetingType&quot;: &quot;A String&quot;, # Output only. Identifies the type of this assigned targeting option.
1440 &quot;urlDetails&quot;: { # Details for assigned URL targeting option. This will be populated in the # URL details. This field will be populated when the
1441 # TargetingType is `TARGETING_TYPE_URL`.
1442 # details field of an AssignedTargetingOption when
1443 # targeting_type is
1444 # `TARGETING_TYPE_URL`.
1445 &quot;url&quot;: &quot;A String&quot;, # Required. The URL, for example `example.com`.
1446 #
1447 # DV360 supports two levels of subdirectory targeting, for example
1448 # `www.example.com/one-subdirectory-level/second-level`, and five levels of
1449 # subdomain targeting, for example `five.four.three.two.one.example.com`.
1450 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1451 },
1452 &quot;onScreenPositionDetails&quot;: { # On screen position targeting option details. This will be # On screen position details. This field will be populated when the
1453 # TargetingType is `TARGETING_TYPE_ON_SCREEN_POSITION`.
1454 # populated in the
1455 # on_screen_position_details
1456 # field when
1457 # targeting_type is
1458 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1460 # targeting_type is
1461 # `TARGETING_TYPE_ON_SCREEN_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001462 &quot;onScreenPosition&quot;: &quot;A String&quot;, # Output only. The on screen position.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 },
1464 &quot;videoPlayerSizeDetails&quot;: { # Video player size targeting option details. This will be populated in the # Video player size details. This field will be populated when the
1465 # TargetingType is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
1466 # video_player_size_details
1467 # field when targeting_type is
1468 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
1469 # Explicitly targeting all options is not supported. Remove all video player
1470 # size targeting options to achieve this effect.
1471 &quot;videoPlayerSize&quot;: &quot;A String&quot;, # Output only. The video player size.
1472 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1473 # targeting_type is
1474 # `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
1475 },
1476 &quot;channelDetails&quot;: { # Details for assigned channel targeting option. This will be populated in # Channel details. This field will be populated when the
1477 # TargetingType is `TARGETING_TYPE_CHANNEL`.
1478 # the details field of an AssignedTargetingOption when
1479 # targeting_type is
1480 # `TARGETING_TYPE_CHANNEL`.
1481 &quot;channelId&quot;: &quot;A String&quot;, # Required. ID of the channel. Should refer to the channel ID
1482 # field on a
1483 # [Partner-owned channel](partners.channels#Channel.FIELDS.channel_id) or
1484 # [advertiser-owned channel](advertisers.channels#Channel.FIELDS.channel_id)
1485 # resource.
1486 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. For advertiser
1487 # level assigned targeting option, this field must be true.
1488 },
1489 &quot;operatingSystemDetails&quot;: { # Assigned operating system targeting option details. This will be # Operating system details. This field will be populated when the
1490 # TargetingType is `TARGETING_TYPE_OPERATING_SYSTEM`.
1491 # populated in the
1492 # operating_system_details
1493 # field when
1494 # targeting_type is
1495 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001496 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the operating system.
Bu Sun Kim65020912020-05-20 12:08:20 -07001497 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1498 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting option ID populated in
1499 # targeting_option_id field when
1500 # targeting_type is
1501 # `TARGETING_TYPE_OPERATING_SYSTEM`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001502 },
1503 &quot;thirdPartyVerifierDetails&quot;: { # Assigned third party verifier targeting option details. This will be # Third party verification details. This field will be populated when the
1504 # TargetingType is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
1505 # populated in the details field of an AssignedTargetingOption when
1506 # targeting_type is
1507 # `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001508 &quot;integralAdScience&quot;: { # Details of Integral Ad Science settings. # Third party brand verifier -- Integral Ad Science.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001509 &quot;excludedAdFraudRisk&quot;: &quot;A String&quot;, # Ad Fraud settings.
1510 &quot;displayViewability&quot;: &quot;A String&quot;, # Display Viewability section (applicable to display line items only).
1511 &quot;excludedHateSpeechRisk&quot;: &quot;A String&quot;, # Brand Safety - **Hate speech**.
1512 &quot;excludedOffensiveLanguageRisk&quot;: &quot;A String&quot;, # Brand Safety - **Offensive language**.
1513 &quot;excludedDrugsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Drugs**.
1514 &quot;excludedAdultRisk&quot;: &quot;A String&quot;, # Brand Safety - **Adult content**.
Bu Sun Kim65020912020-05-20 12:08:20 -07001515 &quot;traqScoreOption&quot;: &quot;A String&quot;, # True advertising quality (applicable to Display line items only).
1516 &quot;videoViewability&quot;: &quot;A String&quot;, # Video Viewability Section (applicable to video line items only).
1517 &quot;excludedAlcoholRisk&quot;: &quot;A String&quot;, # Brand Safety - **Alcohol**.
1518 &quot;excludedGamblingRisk&quot;: &quot;A String&quot;, # Brand Safety - **Gambling**.
1519 &quot;excludeUnrateable&quot;: True or False, # Brand Safety - **Unrateable**.
1520 &quot;excludedIllegalDownloadsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Illegal downloads**.
1521 &quot;excludedViolenceRisk&quot;: &quot;A String&quot;, # Brand Safety - **Violence**.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001522 },
1523 &quot;doubleVerify&quot;: { # Details of DoubleVerify settings. # Third party brand verifier -- DoubleVerify.
1524 &quot;videoViewability&quot;: { # Details of DoubleVerify video viewability settings. # Video viewability settings (applicable to video line items only).
1525 &quot;playerImpressionRate&quot;: &quot;A String&quot;, # Target inventory to maximize impressions with 400x300 or greater player
1526 # size.
1527 &quot;videoIab&quot;: &quot;A String&quot;, # Target web inventory to maximize IAB viewable rate.
1528 &quot;videoViewableRate&quot;: &quot;A String&quot;, # Target web inventory to maximize fully viewable rate.
1529 },
1530 &quot;avoidedAgeRatings&quot;: [ # Avoid bidding on apps with the age rating.
1531 &quot;A String&quot;,
1532 ],
1533 &quot;fraudInvalidTraffic&quot;: { # DoubleVerify Fraud &amp; Invalid Traffic settings. # Avoid Sites and Apps with historical Fraud &amp; IVT Rates.
1534 &quot;avoidInsufficientOption&quot;: True or False, # Insufficient Historical Fraud &amp; IVT Stats.
1535 &quot;avoidedFraudOption&quot;: &quot;A String&quot;, # Avoid Sites and Apps with historical Fraud &amp; IVT.
1536 },
1537 &quot;brandSafetyCategories&quot;: { # Settings for brand safety controls. # DV Brand Safety Controls.
1538 &quot;avoidedMediumSeverityCategories&quot;: [ # Brand safety medium severity avoidance categories.
1539 &quot;A String&quot;,
1540 ],
1541 &quot;avoidedHighSeverityCategories&quot;: [ # Brand safety high severity avoidance categories.
1542 &quot;A String&quot;,
1543 ],
1544 &quot;avoidUnknownBrandSafetyCategory&quot;: True or False, # Unknown or unrateable.
1545 },
1546 &quot;appStarRating&quot;: { # Details of DoubleVerify star ratings settings. # Avoid bidding on apps with the star ratings.
1547 &quot;avoidedStarRating&quot;: &quot;A String&quot;, # Avoid bidding on apps with the star ratings.
1548 &quot;avoidInsufficientStarRating&quot;: True or False, # Avoid bidding on apps with insufficient star ratings.
1549 },
1550 &quot;displayViewability&quot;: { # Details of DoubleVerify display viewability settings. # Display viewability settings (applicable to display line items only).
1551 &quot;viewableDuring&quot;: &quot;A String&quot;, # Target web and app inventory to maximize 100% viewable duration.
1552 &quot;iab&quot;: &quot;A String&quot;, # Target web and app inventory to maximize IAB viewable rate.
1553 },
1554 },
1555 &quot;adloox&quot;: { # Details of Adloox settings. # Third party brand verifier -- Adloox.
1556 &quot;excludedAdlooxCategories&quot;: [ # Adloox&#x27;s brand safety settings.
1557 &quot;A String&quot;,
1558 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 },
1560 },
1561 &quot;proximityLocationListDetails&quot;: { # Targeting details for proximity location list. This will be # Proximity location list details. This field will be populated when the
1562 # TargetingType is
1563 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
1564 # populated in the details field of an AssignedTargetingOption when
1565 # targeting_type is
1566 # `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;proximityRadiusRange&quot;: &quot;A String&quot;, # Required. Radius range for proximity location list.
1568 # This represents the size of the area around a chosen location that will be
1569 # targeted.
1570 #
1571 # `All` proximity location targeting under a single line item must have the
1572 # same radius range value. Set this value to match any existing targeting.
1573 # If updated, this field will change the radius range for all proximity
1574 # targeting under the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001575 &quot;proximityLocationListId&quot;: &quot;A String&quot;, # Required. ID of the proximity location list. Should refer to the
1576 # location_list_id field of a
1577 # LocationList resource whose type is
1578 # `TARGETING_LOCATION_TYPE_PROXIMITY`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 },
1580 &quot;ageRangeDetails&quot;: { # Represents a targetable age range. This will be populated in the details # Age range details. This field will be populated when the
1581 # TargetingType is `TARGETING_TYPE_AGE_RANGE`.
1582 # field of an AssignedTargetingOption when
1583 # targeting_type is
1584 # `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001585 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1586 # TargetingOption of type `TARGETING_TYPE_AGE_RANGE`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 &quot;ageRange&quot;: &quot;A String&quot;, # Output only. The age range of an audience. We only support targeting a continuous age
1588 # range of an audience. Thus, the age range represented in this field can be
1589 # 1) targeted solely, or, 2) part of a larger continuous age range. The reach
1590 # of a continuous age range targeting can be expanded by also targeting an
1591 # audience of an unknown age.
Bu Sun Kim65020912020-05-20 12:08:20 -07001592 },
1593 &quot;subExchangeDetails&quot;: { # Details for assigned sub-exchange targeting option. This will be populated in # Sub-exchange details. This field will be populated when the
1594 # TargetingType is `TARGETING_TYPE_SUB_EXCHANGE`.
1595 # the details field of an AssignedTargetingOption when
1596 # targeting_type is
1597 # `TARGETING_TYPE_SUB_EXCHANGE`.
1598 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1599 # TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`.
1600 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001601 &quot;keywordDetails&quot;: { # Details for assigned keyword targeting option. This will be populated in the # Keyword details. This field will be populated when the TargetingType is
1602 # `TARGETING_TYPE_KEYWORD`.
1603 #
1604 # A maximum of 5000 direct negative keywords can be assigned to a
1605 # line item. No limit on number of positive keywords that can be assigned.
1606 # details field of an AssignedTargetingOption when
1607 # targeting_type is
1608 # `TARGETING_TYPE_KEYWORD`.
1609 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1610 &quot;keyword&quot;: &quot;A String&quot;, # Required. The keyword, for example `car insurance`.
1611 #
1612 # Positive keyword cannot be offensive word.
1613 # Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number
1614 # of characters is 80. Maximum number of words is 10.
1615 },
1616 &quot;deviceMakeModelDetails&quot;: { # Assigned device make and model targeting option details. This will be # Device make and model details. This field will be populated when the
1617 # TargetingType is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
1618 # populated in the
1619 # device_make_model_details
1620 # field when
1621 # targeting_type is
1622 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
1623 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1624 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1625 # targeting_type is
1626 # `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
1627 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the device make and model.
1628 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001629 &quot;digitalContentLabelExclusionDetails&quot;: { # Targeting details for digital content label. This will be # Digital content label details. This field will be populated when the
1630 # TargetingType is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
1631 #
1632 # Digital content labels are targeting exclusions. Advertiser level digital
1633 # content label exclusions, if set, are always applied in serving (even
1634 # though they aren&#x27;t visible in line item settings). Line item settings can
1635 # exclude content labels in addition to advertiser exclusions, but can&#x27;t
1636 # override them. A line item won&#x27;t serve if all the digital content labels
1637 # are excluded.
1638 # populated in the details field of an AssignedTargetingOption when
1639 # targeting_type is
1640 # `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`.
1641 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the digital content label to be EXCLUDED.
1642 &quot;contentRatingTier&quot;: &quot;A String&quot;, # Output only. The display name of the digital content label rating tier.
1643 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001644 &quot;browserDetails&quot;: { # Details for assigned browser targeting option. This will be populated in # Browser details. This field will be populated when the
1645 # TargetingType is `TARGETING_TYPE_BROWSER`.
1646 # the details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -07001647 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001648 # `TARGETING_TYPE_BROWSER`.
1649 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1650 # TargetingOption of type `TARGETING_TYPE_BROWSER`.
1651 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the browser.
1652 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned browser
1653 # targeting options on the same line item must have the same value for this
1654 # field.
Bu Sun Kim65020912020-05-20 12:08:20 -07001655 },
1656 &quot;appCategoryDetails&quot;: { # Details for assigned app category targeting option. This will be # App category details. This field will be populated when the
1657 # TargetingType is `TARGETING_TYPE_APP_CATEGORY`.
1658 # populated in the
1659 # app_category_details field of
1660 # an AssignedTargetingOption when
1661 # targeting_type
1662 # is `TARGETING_TYPE_APP_CATEGORY`.
1663 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1664 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1665 # targeting_type is
1666 # `TARGETING_TYPE_APP_CATEGORY`.
1667 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app category.
1668 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001669 &quot;contentOutstreamPositionDetails&quot;: { # Assigned content outstream position targeting option details. This will be # Content outstream position details. This field will be populated when the
1670 # TargetingType is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1671 # populated in the
1672 # content_outstream_position_details
1673 # field when
1674 # targeting_type is
1675 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1676 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1677 # targeting_type is
1678 # `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
1679 &quot;contentOutstreamPosition&quot;: &quot;A String&quot;, # Output only. The content outstream position.
1680 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001681 &quot;negativeKeywordListDetails&quot;: { # Targeting details for negative keyword list. This will be populated in the # Keyword details. This field will be populated when the
1682 # TargetingType is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
1683 #
1684 # A maximum of 4 negative keyword lists can be assigned to a line item.
1685 # details field of an AssignedTargetingOption when
Bu Sun Kim65020912020-05-20 12:08:20 -07001686 # targeting_type is
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001687 # `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`.
1688 &quot;negativeKeywordListId&quot;: &quot;A String&quot;, # Required. ID of the negative keyword list. Should refer to the
1689 # negative_keyword_list_id
1690 # field of a NegativeKeywordList resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001691 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001692 &quot;genderDetails&quot;: { # Details for assigned gender targeting option. This will be populated in # Gender details. This field will be populated when the
1693 # TargetingType is `TARGETING_TYPE_GENDER`.
1694 # the details field of an AssignedTargetingOption when
1695 # targeting_type is
1696 # `TARTGETING_TYPE_GENDER`.
1697 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1698 # TargetingOption of type `TARGETING_TYPE_GENDER`.
1699 &quot;gender&quot;: &quot;A String&quot;, # Output only. The gender of the audience.
1700 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001701 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name for this assigned targeting option.
1702 &quot;inventorySourceDetails&quot;: { # Targeting details for inventory source. This will be # Inventory source details. This field will be populated when the
1703 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE`.
1704 # populated in the details field of an AssignedTargetingOption when
1705 # targeting_type is
1706 # `TARGETING_TYPE_INVENTORY_SOURCE`.
1707 &quot;inventorySourceId&quot;: &quot;A String&quot;, # Required. ID of the inventory source. Should refer to the
1708 # inventory_source_id field of an
1709 # InventorySource resource.
1710 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 &quot;sensitiveCategoryExclusionDetails&quot;: { # Targeting details for sensitive category. This will be populated in the # Sensitive category details. This field will be populated when the
1712 # TargetingType is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
1713 #
1714 # Sensitive categories are targeting exclusions. Advertiser level sensitive
1715 # category exclusions, if set, are always applied in serving (even though
1716 # they aren&#x27;t visible in line item settings). Line item settings can
1717 # exclude sensitive categories in addition to advertiser exclusions, but
1718 # can&#x27;t override them.
1719 # details field of an AssignedTargetingOption when
1720 # targeting_type is
1721 # `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`.
1722 &quot;excludedTargetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the sensitive category to be EXCLUDED.
1723 &quot;sensitiveCategory&quot;: &quot;A String&quot;, # Output only. An enum for the DV360 Sensitive category content classifier.
1724 },
1725 &quot;audienceGroupDetails&quot;: { # Assigned audience group targeting option details. This will be populated in # Audience targeting details. This field will be populated when the
1726 # TargetingType is `TARGETING_TYPE_AUDIENCE_GROUP`.
1727 # You can only target one audience group option per line item.
1728 # the details field of an AssignedTargetingOption when
1729 # targeting_type is
1730 # `TARGETING_TYPE_AUDIENCE_GROUP`.
1731 # The relation between each group is UNION, except for
1732 # excluded_first_and_third_party_audience_group and
1733 # excluded_google_audience_group, of which COMPLEMENT is UNION&#x27;ed with other
1734 # groups.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001735 &quot;includedFirstAndThirdPartyAudienceGroups&quot;: [ # The first and third party audience ids and recencies of included first
1736 # and third party audience groups. Each first and third party audience group
1737 # contains first and third party audience ids only.
1738 # The relation between each first and third party audience group is
1739 # INTERSECTION, and the result is UNION&#x27;ed with other audience groups.
1740 # Repeated groups with same settings will be ignored.
1741 { # Details of first and third party audience group.
1742 # All first and third party audience targeting settings are logically ‘OR’ of
1743 # each other.
1744 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
1745 # third party audience group.
1746 # Repeated settings with same id are not allowed.
1747 { # Details of first and third party audience targeting setting.
1748 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
1749 # Only applicable to first party audiences, otherwise
1750 # will be ignored. For more info, refer to
1751 # https://support.google.com/displayvideo/answer/2949947#recency
1752 # When unspecified, no recency limit will be used.
1753 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
1754 # targeting setting. This id is
1755 # first_and_third_party_audience_id.
1756 },
1757 ],
1758 },
1759 ],
1760 &quot;includedCombinedAudienceGroup&quot;: { # Details of combined audience group. # The combined audience ids of the included combined audience group.
1761 # Contains combined audience ids only.
1762 # All combined audience targeting settings are logically ‘OR’ of each other.
1763 &quot;settings&quot;: [ # Required. All combined audience targeting settings in combined audience group.
1764 # Repeated settings with same id will be ignored.
1765 # The number of combined audience settings should be no more than five, error
1766 # will be thrown otherwise.
1767 { # Details of combined audience targeting setting.
1768 &quot;combinedAudienceId&quot;: &quot;A String&quot;, # Required. Combined audience id of combined audience targeting setting.
1769 # This id is combined_audience_id.
1770 },
1771 ],
1772 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001773 &quot;includedCustomListGroup&quot;: { # Details of custom list group. # The custom list ids of the included custom list group.
1774 # Contains custom list ids only.
1775 # All custom list targeting settings are logically ‘OR’ of each other.
1776 &quot;settings&quot;: [ # Required. All custom list targeting settings in custom list group.
1777 # Repeated settings with same id will be ignored.
1778 { # Details of custom list targeting setting.
1779 &quot;customListId&quot;: &quot;A String&quot;, # Required. Custom id of custom list targeting setting.
1780 # This id is custom_list_id.
1781 },
1782 ],
1783 },
1784 &quot;excludedFirstAndThirdPartyAudienceGroup&quot;: { # Details of first and third party audience group. # The first and third party audience ids and recencies of the excluded
1785 # first and third party audience group. Used for negative targeting. Its
1786 # COMPLEMENT is used to UNION other audience groups.
1787 # All first and third party audience targeting settings are logically ‘OR’ of
1788 # each other.
1789 &quot;settings&quot;: [ # Required. All first and third party audience targeting settings in first and
1790 # third party audience group.
1791 # Repeated settings with same id are not allowed.
1792 { # Details of first and third party audience targeting setting.
1793 &quot;recency&quot;: &quot;A String&quot;, # The recency of the first and third party audience targeting setting.
1794 # Only applicable to first party audiences, otherwise
1795 # will be ignored. For more info, refer to
1796 # https://support.google.com/displayvideo/answer/2949947#recency
1797 # When unspecified, no recency limit will be used.
1798 &quot;firstAndThirdPartyAudienceId&quot;: &quot;A String&quot;, # Required. First and third party audience id of the first and third party audience
1799 # targeting setting. This id is
1800 # first_and_third_party_audience_id.
1801 },
1802 ],
1803 },
1804 &quot;includedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the included Google audience group.
1805 # Contains Google audience ids only.
1806 # All Google audience targeting settings are logically ‘OR’ of each other.
1807 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
1808 # Repeated settings with same id will be ignored.
1809 { # Details of Google audience targeting setting.
1810 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
1811 # This id is google_audience_id.
1812 },
1813 ],
1814 },
1815 &quot;excludedGoogleAudienceGroup&quot;: { # Details of Google audience group. # The Google audience ids of the excluded Google audience group.
1816 # Used for negative targeting. It&#x27;s COMPLEMENT is used to UNION other
1817 # audience groups.
1818 # Only contains Affinity, In-market and Installed-apps type Google audiences.
1819 # All items are logically ‘OR’ of each other.
1820 # All Google audience targeting settings are logically ‘OR’ of each other.
1821 &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group.
1822 # Repeated settings with same id will be ignored.
1823 { # Details of Google audience targeting setting.
1824 &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting.
1825 # This id is google_audience_id.
1826 },
1827 ],
1828 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001829 },
1830 &quot;userRewardedContentDetails&quot;: { # User rewarded content targeting option details. This will be populated in # User rewarded content details. This field will be populated when the
1831 # TargetingType is
1832 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1833 # the
1834 # user_rewarded_content_details
1835 # field when
1836 # targeting_type is
1837 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1838 &quot;userRewardedContent&quot;: &quot;A String&quot;, # Output only. User rewarded content status for video ads.
1839 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1840 # targeting_type is
1841 # `TARGETING_TYPE_USER_REWARDED_CONTENT`.
1842 },
1843 &quot;languageDetails&quot;: { # Details for assigned language targeting option. This will be populated in the # Language details. This field will be populated when the TargetingType is
1844 # `TARGETING_TYPE_LANGUAGE`.
1845 # details field of an AssignedTargetingOption when
1846 # targeting_type is
1847 # `TARGETING_TYPE_LANGUAGE`.
1848 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1849 # TargetingOption of type `TARGETING_TYPE_LANGUAGE`.
1850 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the language (e.g., &quot;French&quot;).
1851 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned
1852 # language targeting options on the same line item must have the same value
1853 # for this field.
1854 },
1855 &quot;authorizedSellerStatusDetails&quot;: { # Represents an assigned authorized seller status. This will be populated in # Authorized seller status details. This field will be populated when the
1856 # TargetingType is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
1857 #
1858 # You can only target one authorized seller status option per line item.
1859 #
1860 # If a line item doesn&#x27;t have an authorized seller status option, all
1861 # authorized sellers indicated as DIRECT or RESELLER in the ads.txt file
1862 # are targeted by default.
1863 # the details field of an AssignedTargetingOption when
1864 # targeting_type is
1865 # `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001866 &quot;authorizedSellerStatus&quot;: &quot;A String&quot;, # Output only. The authorized seller status to target.
Bu Sun Kim65020912020-05-20 12:08:20 -07001867 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1868 # TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001869 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 &quot;dayAndTimeDetails&quot;: { # Representation of a segment of time defined on a specific day of the week and # Day and time details. This field will be populated when the
1871 # TargetingType is `TARGETING_TYPE_DAY_AND_TIME`.
1872 # with a start and end time.
1873 # The time represented by `start_hour` must be before the time represented by
1874 # `end_hour`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001875 &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. The day of the week for this day and time targeting setting.
1876 &quot;startHour&quot;: 42, # Required. The start hour for day and time targeting. Must be between 0 (start of day)
1877 # and 23 (1 hour before end of day).
1878 &quot;endHour&quot;: 42, # Required. The end hour for day and time targeting. Must be between 1 (1 hour after
1879 # start of day) and 24 (end of day).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001880 &quot;timeZoneResolution&quot;: &quot;A String&quot;, # Required. The mechanism used to determine which timezone to use for this day and time
1881 # targeting setting.
Bu Sun Kim65020912020-05-20 12:08:20 -07001882 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001883 &quot;inheritance&quot;: &quot;A String&quot;, # Output only. The inheritance status of the assigned targeting option.
Bu Sun Kim65020912020-05-20 12:08:20 -07001884 &quot;environmentDetails&quot;: { # Assigned environment targeting option details. This will be populated # Environment details. This field will be populated when the
1885 # TargetingType is `TARGETING_TYPE_ENVIRONMENT`.
1886 # in the details field of an AssignedTargetingOption when
1887 # targeting_type is
1888 # `TARGETING_TYPE_ENVIRONMENT`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001889 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1890 # TargetingOption of type `TARGETING_TYPE_ENVIRONMENT` (e.g., &quot;508010&quot;
1891 # for targeting the `ENVIRONMENT_WEB_OPTIMIZED` option).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001892 &quot;environment&quot;: &quot;A String&quot;, # Output only. The serving environment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 },
1894 &quot;geoRegionDetails&quot;: { # Details for assigned geographic region targeting option. This will be # Geographic region details. This field will be populated when the
1895 # TargetingType is `TARGETING_TYPE_GEO_REGION`.
1896 # populated in the details field of an AssignedTargetingOption when
1897 # targeting_type is
1898 # `TARGETING_TYPE_GEO_REGION`.
1899 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1900 # TargetingOption of type `TARGETING_TYPE_GEO_REGION`.
1901 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the geographic region (e.g., &quot;Ontario, Canada&quot;).
1902 &quot;geoRegionType&quot;: &quot;A String&quot;, # Output only. The type of geographic region targeting.
1903 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1904 },
1905 &quot;deviceTypeDetails&quot;: { # Targeting details for device type. This will be # Device Type details. This field will be populated when the
1906 # TargetingType is
1907 # `TARGETING_TYPE_DEVICE_TYPE`.
1908 # populated in the details field of an AssignedTargetingOption when
1909 # targeting_type is
1910 # `TARGETING_TYPE_DEVICE_TYPE`.
1911 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. ID of the device type.
1912 &quot;deviceType&quot;: &quot;A String&quot;, # Output only. The display name of the device type.
1913 },
1914 &quot;exchangeDetails&quot;: { # Details for assigned exchange targeting option. This will be populated in # Exchange details. This field will be populated when the
1915 # TargetingType is `TARGETING_TYPE_EXCHANGE`.
1916 # the details field of an AssignedTargetingOption when
1917 # targeting_type is
1918 # `TARGETING_TYPE_EXCHANGE`.
1919 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1920 # TargetingOption of type `TARGETING_TYPE_EXCHANGE`.
1921 },
1922 &quot;assignedTargetingOptionId&quot;: &quot;A String&quot;, # Output only. The unique ID of the assigned targeting option. The ID is only unique
1923 # within a given line item and targeting type. It may be reused in other
1924 # contexts.
1925 &quot;householdIncomeDetails&quot;: { # Details for assigned household income targeting option. This will be # Household income details. This field will be populated when the
1926 # TargetingType is `TARGETING_TYPE_HOUSEHOLD_INCOME`.
1927 # populated in the details field of an AssignedTargetingOption when
1928 # targeting_type is
1929 # `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001930 &quot;householdIncome&quot;: &quot;A String&quot;, # Output only. The household income of the audience.
Bu Sun Kim65020912020-05-20 12:08:20 -07001931 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1932 # TargetingOption of type `TARGETING_TYPE_HOUSEHOLD_INCOME`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001933 },
1934 &quot;contentInstreamPositionDetails&quot;: { # Assigned content instream position targeting option details. This will be # Content instream position details. This field will be populated when the
1935 # TargetingType is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
1936 # populated in the
1937 # content_instream_position_details
1938 # field when
1939 # targeting_type is
1940 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001941 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1942 # targeting_type is
1943 # `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001944 &quot;contentInstreamPosition&quot;: &quot;A String&quot;, # Output only. The content instream position for video or audio ads.
Bu Sun Kim65020912020-05-20 12:08:20 -07001945 },
1946 &quot;categoryDetails&quot;: { # Assigned category targeting option details. This will be populated in the # Category details. This field will be populated when the TargetingType is
1947 # `TARGETING_TYPE_CATEGORY`.
1948 #
1949 # Targeting a category will also target its subcategories. If a category is
1950 # excluded from targeting and a subcategory is included, the exclusion will
1951 # take precedence.
1952 # category_details field when
1953 # targeting_type is
1954 # `TARGETING_TYPE_CATEGORY`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001955 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when
1956 # targeting_type is
1957 # `TARGETING_TYPE_CATEGORY`.
1958 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the category.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001959 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
Bu Sun Kim65020912020-05-20 12:08:20 -07001960 },
1961 &quot;inventorySourceGroupDetails&quot;: { # Targeting details for inventory source group. This will be # Inventory source group details. This field will be populated when the
1962 # TargetingType is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
1963 # populated in the details field of an AssignedTargetingOption when
1964 # targeting_type is
1965 # `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
1966 &quot;inventorySourceGroupId&quot;: &quot;A String&quot;, # Required. ID of the inventory source group. Should refer to the
1967 # inventory_source_group_id
1968 # field of an InventorySourceGroup resource.
1969 },
1970 &quot;regionalLocationListDetails&quot;: { # Targeting details for regional location list. This will be # Regional location list details. This field will be populated when the
1971 # TargetingType is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
1972 # populated in the details field of an AssignedTargetingOption when
1973 # targeting_type is
1974 # `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
1975 &quot;regionalLocationListId&quot;: &quot;A String&quot;, # Required. ID of the regional location list. Should refer to the
1976 # location_list_id field of a
1977 # LocationList resource whose type is `TARGETING_LOCATION_TYPE_REGIONAL`.
1978 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
1979 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001980 &quot;carrierAndIspDetails&quot;: { # Details for assigned carrier and ISP targeting option. This will be populated # Carrier and ISP details. This field will be populated when the
1981 # TargetingType is `TARGETING_TYPE_CARRIER_AND_ISP`.
1982 # in the details field of an AssignedTargetingOption when
1983 # targeting_type is
1984 # `TARGETING_TYPE_CARRIER_AND_ISP`.
1985 &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned carrier
1986 # and ISP targeting options on the same line item must have the same value
1987 # for this field.
1988 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
1989 # TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`.
1990 &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the carrier or ISP.
1991 },
1992 &quot;viewabilityDetails&quot;: { # Assigned viewability targeting option details. This will be populated in the # Viewability details. This field will be populated when the TargetingType
1993 # is `TARGETING_TYPE_VIEWABILITY`.
1994 #
1995 # You can only target one viewability option per line item.
1996 # viewability_details field of
1997 # an AssignedTargetingOption when
1998 # targeting_type is
1999 # `TARGETING_TYPE_VIEWABILITY`.
2000 &quot;viewability&quot;: &quot;A String&quot;, # Output only. The predicted viewability percentage.
2001 &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a
2002 # TargetingOption of type `TARGETING_TYPE_VIEWABILITY` (e.g., &quot;509010&quot;
2003 # for targeting the `VIEWABILITY_10_PERCENT_OR_MORE` option).
2004 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002005 },
2006 ],
2007 }</pre>
2008</div>
2009
2010<div class="method">
2011 <code class="details" id="bulkListLineItemAssignedTargetingOptions_next">bulkListLineItemAssignedTargetingOptions_next(previous_request, previous_response)</code>
2012 <pre>Retrieves the next page of results.
2013
2014Args:
2015 previous_request: The request for the previous page. (required)
2016 previous_response: The response from the request for the previous page. (required)
2017
2018Returns:
2019 A request object that you can call &#x27;execute()&#x27; on to request the next
2020 page. Returns None if there are no more items in the collection.
2021 </pre>
2022</div>
2023
2024<div class="method">
2025 <code class="details" id="create">create(advertiserId, body=None, x__xgafv=None)</code>
2026 <pre>Creates a new line item.
2027Returns the newly created line item if successful.
2028
2029Args:
2030 advertiserId: string, Output only. The unique ID of the advertiser the line item belongs to. (required)
2031 body: object, The request body.
2032 The object takes the form of:
2033
2034{ # A single line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07002035 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
2036 # ad during a given time period.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002037 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
2038 # `true`, the remaining frequency cap fields are not applicable.
2039 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
2040 # during this period. Must be greater than 0.
2041 #
2042 # Applicable when unlimited is `false`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
2044 #
2045 # Applicable when unlimited is `false`.
2046 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
2047 # last.
2048 #
2049 # Applicable when unlimited is `false`.
2050 # The following restrictions apply based on the value of
2051 # time_unit:
2052 #
2053 # * `TIME_UNIT_LIFETIME` - this field is output only and will
2054 # default to 1
2055 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
2056 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
2057 # * `TIME_UNIT_DAYS` - must be between 1 and 6
2058 # * `TIME_UNIT_HOURS` - must be between 1 and 23
2059 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim65020912020-05-20 12:08:20 -07002060 },
2061 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002062 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002063 # Must be UTF-8 encoded with a maximum size of 240 bytes.
2064 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002065 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002066 # If absent or empty in CreateLineItem
2067 # method, the newly created line item will inherit partner costs from its
2068 # parent insertion order.
2069 { # Settings that control a partner cost.
2070 #
2071 # A partner cost is any type of expense involved in running a campaign, other
2072 # than the costs of purchasing impressions (which is called the media cost)
2073 # and using third-party audience segment data (data fee). Some examples of
2074 # partner costs include the fees for using DV360, a third-party ad server,
2075 # or a third-party ad serving verification service.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002076 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
2077 #
2078 # Applicable when the fee_type is
2079 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
2080 #
2081 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
2082 # this field to 1500000.
Bu Sun Kim65020912020-05-20 12:08:20 -07002083 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
2084 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
2085 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
2086 #
2087 # Applicable when the fee_type is
2088 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
2089 #
2090 # For example: 100 represents 0.1%.
2091 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
2092 #
2093 # * Required when cost_type is one of:
2094 # - `PARTNER_COST_TYPE_ADLOOX`
2095 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
2096 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
2097 # * Output only for other types.
Bu Sun Kim65020912020-05-20 12:08:20 -07002098 },
2099 ],
2100 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
2101 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002102 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
2103 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
2104 #
2105 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
2106 # automatic budget allocation is enabled for the parent insertion order.
2107 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
2108 # or impression based. This value is inherited from the parent insertion
2109 # order.
2110 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
2111 #
2112 # When budget_allocation_type is:
2113 #
2114 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
2115 # and is set by the system.
2116 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
2117 # budget_unit is:
2118 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
2119 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
2120 # represents 1.5 standard units of the currency.
2121 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
2122 # of impressions to serve.
2123 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
2124 # applicable and will be ignored by the system.
2125 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002126 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
2127 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
2128 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
2129 # relative to the parent advertiser&#x27;s time zone.
2130 #
2131 # * Required when
2132 # flight_date_type is
2133 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
2134 # * When creating a new flight, both `start_date` and `end_date` must be in
2135 # the future.
2136 # * An existing flight with a `start_date` in the past has a mutable
2137 # `end_date` but an immutable `start_date`.
2138 # * `end_date` must be the `start_date` or later, both before the year 2037.
2139 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
2140 # for `year`, `month`, and `day`.
2141 # and time zone are either specified elsewhere or are not significant. The date
2142 # is relative to the Proleptic Gregorian Calendar. This can represent:
2143 #
2144 # * A full date, with non-zero year, month and day values
2145 # * A month and day value, with a zero year, e.g. an anniversary
2146 # * A year on its own, with zero month and day values
2147 # * A year and month value, with a zero day, e.g. a credit card expiration date
2148 #
2149 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2150 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2151 # a year.
2152 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2153 # if specifying a year by itself or a year and month where the day is not
2154 # significant.
2155 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2156 # month and day.
2157 },
2158 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
2159 # for `year`, `month`, and `day`.
2160 # and time zone are either specified elsewhere or are not significant. The date
2161 # is relative to the Proleptic Gregorian Calendar. This can represent:
2162 #
2163 # * A full date, with non-zero year, month and day values
2164 # * A month and day value, with a zero year, e.g. an anniversary
2165 # * A year on its own, with zero month and day values
2166 # * A year and month value, with a zero day, e.g. a credit card expiration date
2167 #
2168 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2169 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2170 # a year.
2171 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2172 # if specifying a year by itself or a year and month where the day is not
2173 # significant.
2174 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2175 # month and day.
2176 },
2177 },
2178 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002179 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
2180 &quot;A String&quot;,
2181 ],
2182 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
2183 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
2184 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
2185 # Must be greater than or equal to 0.
Bu Sun Kim65020912020-05-20 12:08:20 -07002186 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002187 # * When the markup_type is set to be
2188 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
2189 # markup in micros of advertiser&#x27;s currency. For example, 1500000
2190 # represents 1.5 standard units of the currency.
2191 # * When the markup_type is set to be
2192 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
2193 # represents the media cost percent markup in millis. For example,
2194 # 100 represents 0.1% (decimal 0.001).
2195 # * When the markup_type is set to be
2196 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
2197 # represents the total media cost percent markup in millis. For example,
2198 # 100 represents 0.1% (decimal 0.001).
Bu Sun Kim65020912020-05-20 12:08:20 -07002199 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002200 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
2201 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
2202 # bid on inventory.
2203 #
2204 # * For CreateLineItem method, only
2205 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
2206 # UpdateLineItem method and update the
2207 # status to `ENTITY_STATUS_ACTIVE` after creation.
2208 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
2209 # any other status.
2210 # * If the line item&#x27;s parent insertion order is not active, the line item
2211 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
2212 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
2213 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
2214 #
2215 # When automatic budget allocation is enabled at the insertion order via
2216 # auto_budget_allocation, this
2217 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
2218 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
2219 # spent across the pacing_period.
2220 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
2221 #
2222 # Applicable when the budget is impression based. Must be greater than 0.
2223 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
2224 # advertiser&#x27;s currency.
2225 #
2226 # Applicable when the budget is currency based. Must be greater than 0.
2227 # For example, for 1.5 standard unit of the currency, set this field to
2228 # 1500000.
2229 #
2230 # The value assigned will be rounded to whole billable units for the
2231 # relevant currency by the following rules: any positive value less than a
2232 # single billable unit will be rounded up to one billable unit and any
2233 # value larger than a single billable unit will be rounded down to the
2234 # nearest billable value. For example, if the currency&#x27;s billable unit is
2235 # 0.01, and this field is set to 10257770, it will round down to 10250000,
2236 # a value of 10.25. If set to 505, it will round up to 10000, a value of
2237 # 0.01.
2238 },
2239 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
2240 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
2241 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
2242 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
2243 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
2244 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
2245 #
2246 # Must be UTF-8 encoded with a length of no more than 1000 characters.
2247 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
2248 # The integration code will show up together with the entry in many
2249 # places in the system, for example, reporting.
2250 #
2251 # Must be UTF-8 encoded with a length of no more than 500 characters.
2252 },
2253 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
2254 &quot;A String&quot;,
2255 ],
2256 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
2257 #
2258 # All post-click conversions will be counted. A percentage value can be set
2259 # for post-view conversions counting.
2260 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
2261 #
2262 # The number of conversions counted is the sum of all of the conversions
2263 # counted by all of the Floodlight activity IDs specified in this field.
2264 { # Settings that control the behavior of a single Floodlight activity config.
2265 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
2266 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
2267 # conversion may be counted.
2268 # Must be between 0 and 90 inclusive.
2269 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
2270 # conversion may be counted.
2271 # Must be between 0 and 90 inclusive.
2272 },
2273 ],
2274 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
2275 # percent). Must be between 0 and 100000 inclusive.
2276 #
2277 # For example, to track 50% of the post-click conversions, set a value of
2278 # 50000.
2279 },
2280 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
2281 # Bid strategy determines the bid price.
2282 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
2283 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
2284 # For insertion order entity,
2285 # bid_amount_micros should be set as 0.
2286 # For line item entity,
2287 # bid_amount_micros must be greater
2288 # than or equal to billable unit of the given currency and smaller than or
2289 # equal to the upper limit 1000000000.
2290 #
2291 # For example, 1500000 represents 1.5 standard units of the currency.
2292 },
2293 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
2294 # performance goal while spending the full budget.
2295 #
2296 # At insertion order level, the
2297 # markup_type of line items
2298 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
2299 # when
2300 # performance_goal_type
2301 # is one of:
2302 #
2303 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
2304 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
2305 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
2306 #
2307 # the line_item_type
2308 # of the insertion order line items must be either:
2309 #
2310 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
2311 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
2312 #
2313 # and when
2314 # performance_goal_type
2315 # is either:
2316 #
2317 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
2318 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
2319 #
2320 # the line_item_type
2321 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
2322 # performance goal while spending the full budget.
2323 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
2324 # tries to minimize while spending the full budget.
2325 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
2326 # this strategy.
2327 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
2328 # currency. Must be greater than or equal to a billable unit of the given
2329 # currency.
2330 #
2331 # For example, 1500000 represents 1.5 standard units of the currency.
2332 },
2333 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
2334 # performance goal. It is to be used only for a line item entity.
2335 # performance goal.
2336 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
2337 # will try to meet or beat.
2338 #
2339 # For line item level usage, the value must be one of:
2340 #
2341 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
2342 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
2343 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
2344 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
2345 # currency. Must be greater than or equal to a billable unit of the given
2346 # currency. Not applicable when
2347 # performance_goal_type
2348 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
2349 #
2350 # For example, 1500000 represents 1.5 standard units of the currency.
2351 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
2352 # meet or beat, in micros of the advertiser&#x27;s currency.
2353 # Must be greater than or equal to a billable unit of the given currency and
2354 # smaller or equal to upper bounds. Each
2355 # performance_goal_type
2356 # has its upper bound:
2357 #
2358 # * when
2359 # performance_goal_type
2360 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
2361 # upper bound is 10000.00 USD.
2362 # * when
2363 # performance_goal_type
2364 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
2365 # upper bound is 1000.00 USD.
2366 # * when
2367 # performance_goal_type
2368 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
2369 # 1000.00 USD.
2370 #
2371 # Example: If set to
2372 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
2373 # be based on the probability that each available impression will be
2374 # viewable. For example, if viewable CPM target is $2 and an impression is
2375 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
2376 #
2377 # For example, 1500000 represents 1.5 standard units of the currency.
2378 },
2379 },
2380 }
2381
2382 x__xgafv: string, V1 error format.
2383 Allowed values
2384 1 - v1 error format
2385 2 - v2 error format
2386
2387Returns:
2388 An object of the form:
2389
2390 { # A single line item.
2391 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
2392 # ad during a given time period.
2393 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
2394 # `true`, the remaining frequency cap fields are not applicable.
2395 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
2396 # during this period. Must be greater than 0.
2397 #
2398 # Applicable when unlimited is `false`.
2399 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
2400 #
2401 # Applicable when unlimited is `false`.
2402 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
2403 # last.
2404 #
2405 # Applicable when unlimited is `false`.
2406 # The following restrictions apply based on the value of
2407 # time_unit:
2408 #
2409 # * `TIME_UNIT_LIFETIME` - this field is output only and will
2410 # default to 1
2411 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
2412 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
2413 # * `TIME_UNIT_DAYS` - must be between 1 and 6
2414 # * `TIME_UNIT_HOURS` - must be between 1 and 23
2415 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
2416 },
2417 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
2418 #
2419 # Must be UTF-8 encoded with a maximum size of 240 bytes.
2420 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
2421 #
2422 # If absent or empty in CreateLineItem
2423 # method, the newly created line item will inherit partner costs from its
2424 # parent insertion order.
2425 { # Settings that control a partner cost.
2426 #
2427 # A partner cost is any type of expense involved in running a campaign, other
2428 # than the costs of purchasing impressions (which is called the media cost)
2429 # and using third-party audience segment data (data fee). Some examples of
2430 # partner costs include the fees for using DV360, a third-party ad server,
2431 # or a third-party ad serving verification service.
2432 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
2433 #
2434 # Applicable when the fee_type is
2435 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
2436 #
2437 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
2438 # this field to 1500000.
2439 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
2440 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
2441 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
2442 #
2443 # Applicable when the fee_type is
2444 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
2445 #
2446 # For example: 100 represents 0.1%.
2447 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
2448 #
2449 # * Required when cost_type is one of:
2450 # - `PARTNER_COST_TYPE_ADLOOX`
2451 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
2452 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
2453 # * Output only for other types.
2454 },
2455 ],
2456 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
2457 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
2458 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
2459 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
2460 #
2461 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
2462 # automatic budget allocation is enabled for the parent insertion order.
2463 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
2464 # or impression based. This value is inherited from the parent insertion
2465 # order.
2466 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
2467 #
2468 # When budget_allocation_type is:
2469 #
2470 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
2471 # and is set by the system.
2472 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
2473 # budget_unit is:
2474 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
2475 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
2476 # represents 1.5 standard units of the currency.
2477 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
2478 # of impressions to serve.
2479 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
2480 # applicable and will be ignored by the system.
2481 },
2482 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
2483 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
2484 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
2485 # relative to the parent advertiser&#x27;s time zone.
2486 #
2487 # * Required when
2488 # flight_date_type is
2489 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
2490 # * When creating a new flight, both `start_date` and `end_date` must be in
2491 # the future.
2492 # * An existing flight with a `start_date` in the past has a mutable
2493 # `end_date` but an immutable `start_date`.
2494 # * `end_date` must be the `start_date` or later, both before the year 2037.
2495 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
2496 # for `year`, `month`, and `day`.
2497 # and time zone are either specified elsewhere or are not significant. The date
2498 # is relative to the Proleptic Gregorian Calendar. This can represent:
2499 #
2500 # * A full date, with non-zero year, month and day values
2501 # * A month and day value, with a zero year, e.g. an anniversary
2502 # * A year on its own, with zero month and day values
2503 # * A year and month value, with a zero day, e.g. a credit card expiration date
2504 #
2505 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2506 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2507 # a year.
2508 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2509 # if specifying a year by itself or a year and month where the day is not
2510 # significant.
2511 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2512 # month and day.
2513 },
2514 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
2515 # for `year`, `month`, and `day`.
2516 # and time zone are either specified elsewhere or are not significant. The date
2517 # is relative to the Proleptic Gregorian Calendar. This can represent:
2518 #
2519 # * A full date, with non-zero year, month and day values
2520 # * A month and day value, with a zero year, e.g. an anniversary
2521 # * A year on its own, with zero month and day values
2522 # * A year and month value, with a zero day, e.g. a credit card expiration date
2523 #
2524 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2525 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2526 # a year.
2527 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2528 # if specifying a year by itself or a year and month where the day is not
2529 # significant.
2530 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2531 # month and day.
2532 },
2533 },
2534 },
2535 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
2536 &quot;A String&quot;,
2537 ],
2538 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
2539 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
2540 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
2541 # Must be greater than or equal to 0.
2542 #
2543 # * When the markup_type is set to be
2544 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
2545 # markup in micros of advertiser&#x27;s currency. For example, 1500000
2546 # represents 1.5 standard units of the currency.
2547 # * When the markup_type is set to be
2548 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
2549 # represents the media cost percent markup in millis. For example,
2550 # 100 represents 0.1% (decimal 0.001).
2551 # * When the markup_type is set to be
2552 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
2553 # represents the total media cost percent markup in millis. For example,
2554 # 100 represents 0.1% (decimal 0.001).
2555 },
2556 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
2557 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
2558 # bid on inventory.
2559 #
2560 # * For CreateLineItem method, only
2561 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
2562 # UpdateLineItem method and update the
2563 # status to `ENTITY_STATUS_ACTIVE` after creation.
2564 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
2565 # any other status.
2566 # * If the line item&#x27;s parent insertion order is not active, the line item
2567 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
2568 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
2569 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
2570 #
2571 # When automatic budget allocation is enabled at the insertion order via
2572 # auto_budget_allocation, this
2573 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
2574 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
2575 # spent across the pacing_period.
2576 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
2577 #
2578 # Applicable when the budget is impression based. Must be greater than 0.
2579 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
2580 # advertiser&#x27;s currency.
2581 #
2582 # Applicable when the budget is currency based. Must be greater than 0.
2583 # For example, for 1.5 standard unit of the currency, set this field to
2584 # 1500000.
2585 #
2586 # The value assigned will be rounded to whole billable units for the
2587 # relevant currency by the following rules: any positive value less than a
2588 # single billable unit will be rounded up to one billable unit and any
2589 # value larger than a single billable unit will be rounded down to the
2590 # nearest billable value. For example, if the currency&#x27;s billable unit is
2591 # 0.01, and this field is set to 10257770, it will round down to 10250000,
2592 # a value of 10.25. If set to 505, it will round up to 10000, a value of
2593 # 0.01.
2594 },
2595 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
2596 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
2597 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
2598 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
2599 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
2600 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
2601 #
2602 # Must be UTF-8 encoded with a length of no more than 1000 characters.
2603 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
2604 # The integration code will show up together with the entry in many
2605 # places in the system, for example, reporting.
2606 #
2607 # Must be UTF-8 encoded with a length of no more than 500 characters.
2608 },
2609 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
2610 &quot;A String&quot;,
2611 ],
2612 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
2613 #
2614 # All post-click conversions will be counted. A percentage value can be set
2615 # for post-view conversions counting.
2616 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
2617 #
2618 # The number of conversions counted is the sum of all of the conversions
2619 # counted by all of the Floodlight activity IDs specified in this field.
2620 { # Settings that control the behavior of a single Floodlight activity config.
2621 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
2622 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
2623 # conversion may be counted.
2624 # Must be between 0 and 90 inclusive.
2625 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
2626 # conversion may be counted.
2627 # Must be between 0 and 90 inclusive.
2628 },
2629 ],
2630 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
2631 # percent). Must be between 0 and 100000 inclusive.
2632 #
2633 # For example, to track 50% of the post-click conversions, set a value of
2634 # 50000.
2635 },
2636 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
2637 # Bid strategy determines the bid price.
2638 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
2639 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
2640 # For insertion order entity,
2641 # bid_amount_micros should be set as 0.
2642 # For line item entity,
2643 # bid_amount_micros must be greater
2644 # than or equal to billable unit of the given currency and smaller than or
2645 # equal to the upper limit 1000000000.
2646 #
2647 # For example, 1500000 represents 1.5 standard units of the currency.
2648 },
2649 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
2650 # performance goal while spending the full budget.
2651 #
2652 # At insertion order level, the
2653 # markup_type of line items
2654 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
2655 # when
2656 # performance_goal_type
2657 # is one of:
2658 #
2659 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
2660 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
2661 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
2662 #
2663 # the line_item_type
2664 # of the insertion order line items must be either:
2665 #
2666 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
2667 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
2668 #
2669 # and when
2670 # performance_goal_type
2671 # is either:
2672 #
2673 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
2674 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
2675 #
2676 # the line_item_type
2677 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
2678 # performance goal while spending the full budget.
2679 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
2680 # tries to minimize while spending the full budget.
2681 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
2682 # this strategy.
2683 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
2684 # currency. Must be greater than or equal to a billable unit of the given
2685 # currency.
2686 #
2687 # For example, 1500000 represents 1.5 standard units of the currency.
2688 },
2689 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
2690 # performance goal. It is to be used only for a line item entity.
2691 # performance goal.
2692 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
2693 # will try to meet or beat.
2694 #
2695 # For line item level usage, the value must be one of:
2696 #
2697 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
2698 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
2699 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
2700 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
2701 # currency. Must be greater than or equal to a billable unit of the given
2702 # currency. Not applicable when
2703 # performance_goal_type
2704 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
2705 #
2706 # For example, 1500000 represents 1.5 standard units of the currency.
2707 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
2708 # meet or beat, in micros of the advertiser&#x27;s currency.
2709 # Must be greater than or equal to a billable unit of the given currency and
2710 # smaller or equal to upper bounds. Each
2711 # performance_goal_type
2712 # has its upper bound:
2713 #
2714 # * when
2715 # performance_goal_type
2716 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
2717 # upper bound is 10000.00 USD.
2718 # * when
2719 # performance_goal_type
2720 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
2721 # upper bound is 1000.00 USD.
2722 # * when
2723 # performance_goal_type
2724 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
2725 # 1000.00 USD.
2726 #
2727 # Example: If set to
2728 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
2729 # be based on the probability that each available impression will be
2730 # viewable. For example, if viewable CPM target is $2 and an impression is
2731 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
2732 #
2733 # For example, 1500000 represents 1.5 standard units of the currency.
2734 },
2735 },
2736 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -07002737</div>
2738
2739<div class="method">
2740 <code class="details" id="delete">delete(advertiserId, lineItemId, x__xgafv=None)</code>
2741 <pre>Deletes a line item.
2742Returns error code `NOT_FOUND` if the line item does not exist.
2743The line item should be archived first, i.e. set
2744entity_status to `ENTITY_STATUS_ARCHIVED`, to be
2745able to delete it.
2746
2747Args:
2748 advertiserId: string, The ID of the advertiser this line item belongs to. (required)
2749 lineItemId: string, The ID of the line item we need to fetch. (required)
2750 x__xgafv: string, V1 error format.
2751 Allowed values
2752 1 - v1 error format
2753 2 - v2 error format
2754
2755Returns:
2756 An object of the form:
2757
2758 { # A generic empty message that you can re-use to avoid defining duplicated
2759 # empty messages in your APIs. A typical example is to use it as the request
2760 # or the response type of an API method. For instance:
2761 #
2762 # service Foo {
2763 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
2764 # }
2765 #
2766 # The JSON representation for `Empty` is empty JSON object `{}`.
2767 }</pre>
2768</div>
2769
2770<div class="method">
2771 <code class="details" id="get">get(advertiserId, lineItemId, x__xgafv=None)</code>
2772 <pre>Gets a line item.
2773
2774Args:
2775 advertiserId: string, Required. The ID of the advertiser this line item belongs to. (required)
2776 lineItemId: string, Required. The ID of the line item to fetch. (required)
2777 x__xgafv: string, V1 error format.
2778 Allowed values
2779 1 - v1 error format
2780 2 - v2 error format
2781
2782Returns:
2783 An object of the form:
2784
2785 { # A single line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002786 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
2787 # ad during a given time period.
2788 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
2789 # `true`, the remaining frequency cap fields are not applicable.
2790 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
2791 # during this period. Must be greater than 0.
Bu Sun Kim65020912020-05-20 12:08:20 -07002792 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002793 # Applicable when unlimited is `false`.
2794 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
2795 #
2796 # Applicable when unlimited is `false`.
2797 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
2798 # last.
2799 #
2800 # Applicable when unlimited is `false`.
2801 # The following restrictions apply based on the value of
2802 # time_unit:
2803 #
2804 # * `TIME_UNIT_LIFETIME` - this field is output only and will
2805 # default to 1
2806 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
2807 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
2808 # * `TIME_UNIT_DAYS` - must be between 1 and 6
2809 # * `TIME_UNIT_HOURS` - must be between 1 and 23
2810 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
2811 },
2812 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
2813 #
2814 # Must be UTF-8 encoded with a maximum size of 240 bytes.
2815 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
2816 #
2817 # If absent or empty in CreateLineItem
2818 # method, the newly created line item will inherit partner costs from its
2819 # parent insertion order.
2820 { # Settings that control a partner cost.
2821 #
2822 # A partner cost is any type of expense involved in running a campaign, other
2823 # than the costs of purchasing impressions (which is called the media cost)
2824 # and using third-party audience segment data (data fee). Some examples of
2825 # partner costs include the fees for using DV360, a third-party ad server,
2826 # or a third-party ad serving verification service.
2827 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
2828 #
2829 # Applicable when the fee_type is
2830 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
2831 #
2832 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
2833 # this field to 1500000.
2834 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
2835 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
2836 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
2837 #
2838 # Applicable when the fee_type is
2839 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
2840 #
2841 # For example: 100 represents 0.1%.
2842 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
2843 #
2844 # * Required when cost_type is one of:
2845 # - `PARTNER_COST_TYPE_ADLOOX`
2846 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
2847 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
2848 # * Output only for other types.
2849 },
2850 ],
2851 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
2852 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
2853 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
2854 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
2855 #
2856 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
2857 # automatic budget allocation is enabled for the parent insertion order.
2858 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
2859 # or impression based. This value is inherited from the parent insertion
2860 # order.
2861 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
2862 #
2863 # When budget_allocation_type is:
2864 #
2865 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
2866 # and is set by the system.
2867 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
2868 # budget_unit is:
2869 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
2870 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
2871 # represents 1.5 standard units of the currency.
2872 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
2873 # of impressions to serve.
2874 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
2875 # applicable and will be ignored by the system.
2876 },
2877 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
2878 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
2879 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
2880 # relative to the parent advertiser&#x27;s time zone.
2881 #
2882 # * Required when
2883 # flight_date_type is
2884 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
2885 # * When creating a new flight, both `start_date` and `end_date` must be in
2886 # the future.
2887 # * An existing flight with a `start_date` in the past has a mutable
2888 # `end_date` but an immutable `start_date`.
2889 # * `end_date` must be the `start_date` or later, both before the year 2037.
2890 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
2891 # for `year`, `month`, and `day`.
2892 # and time zone are either specified elsewhere or are not significant. The date
2893 # is relative to the Proleptic Gregorian Calendar. This can represent:
2894 #
2895 # * A full date, with non-zero year, month and day values
2896 # * A month and day value, with a zero year, e.g. an anniversary
2897 # * A year on its own, with zero month and day values
2898 # * A year and month value, with a zero day, e.g. a credit card expiration date
2899 #
2900 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2901 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2902 # a year.
2903 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2904 # if specifying a year by itself or a year and month where the day is not
2905 # significant.
2906 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2907 # month and day.
2908 },
2909 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
2910 # for `year`, `month`, and `day`.
2911 # and time zone are either specified elsewhere or are not significant. The date
2912 # is relative to the Proleptic Gregorian Calendar. This can represent:
2913 #
2914 # * A full date, with non-zero year, month and day values
2915 # * A month and day value, with a zero year, e.g. an anniversary
2916 # * A year on its own, with zero month and day values
2917 # * A year and month value, with a zero day, e.g. a credit card expiration date
2918 #
2919 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
2920 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
2921 # a year.
2922 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
2923 # if specifying a year by itself or a year and month where the day is not
2924 # significant.
2925 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
2926 # month and day.
2927 },
2928 },
2929 },
2930 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
2931 &quot;A String&quot;,
2932 ],
2933 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
2934 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
2935 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
2936 # Must be greater than or equal to 0.
2937 #
2938 # * When the markup_type is set to be
2939 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
2940 # markup in micros of advertiser&#x27;s currency. For example, 1500000
2941 # represents 1.5 standard units of the currency.
2942 # * When the markup_type is set to be
2943 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
2944 # represents the media cost percent markup in millis. For example,
2945 # 100 represents 0.1% (decimal 0.001).
2946 # * When the markup_type is set to be
2947 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
2948 # represents the total media cost percent markup in millis. For example,
2949 # 100 represents 0.1% (decimal 0.001).
2950 },
2951 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
2952 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
2953 # bid on inventory.
2954 #
2955 # * For CreateLineItem method, only
2956 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
2957 # UpdateLineItem method and update the
2958 # status to `ENTITY_STATUS_ACTIVE` after creation.
2959 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
2960 # any other status.
2961 # * If the line item&#x27;s parent insertion order is not active, the line item
2962 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
2963 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
2964 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
2965 #
2966 # When automatic budget allocation is enabled at the insertion order via
2967 # auto_budget_allocation, this
2968 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
2969 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
2970 # spent across the pacing_period.
2971 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
2972 #
2973 # Applicable when the budget is impression based. Must be greater than 0.
2974 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
2975 # advertiser&#x27;s currency.
2976 #
2977 # Applicable when the budget is currency based. Must be greater than 0.
2978 # For example, for 1.5 standard unit of the currency, set this field to
2979 # 1500000.
2980 #
2981 # The value assigned will be rounded to whole billable units for the
2982 # relevant currency by the following rules: any positive value less than a
2983 # single billable unit will be rounded up to one billable unit and any
2984 # value larger than a single billable unit will be rounded down to the
2985 # nearest billable value. For example, if the currency&#x27;s billable unit is
2986 # 0.01, and this field is set to 10257770, it will round down to 10250000,
2987 # a value of 10.25. If set to 505, it will round up to 10000, a value of
2988 # 0.01.
2989 },
2990 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
2991 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
2992 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
2993 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
2994 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
2995 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
2996 #
2997 # Must be UTF-8 encoded with a length of no more than 1000 characters.
2998 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
2999 # The integration code will show up together with the entry in many
3000 # places in the system, for example, reporting.
3001 #
3002 # Must be UTF-8 encoded with a length of no more than 500 characters.
3003 },
3004 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
3005 &quot;A String&quot;,
3006 ],
3007 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
3008 #
3009 # All post-click conversions will be counted. A percentage value can be set
3010 # for post-view conversions counting.
3011 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
3012 #
3013 # The number of conversions counted is the sum of all of the conversions
3014 # counted by all of the Floodlight activity IDs specified in this field.
3015 { # Settings that control the behavior of a single Floodlight activity config.
3016 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
3017 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
3018 # conversion may be counted.
3019 # Must be between 0 and 90 inclusive.
3020 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
3021 # conversion may be counted.
3022 # Must be between 0 and 90 inclusive.
3023 },
3024 ],
3025 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
3026 # percent). Must be between 0 and 100000 inclusive.
3027 #
3028 # For example, to track 50% of the post-click conversions, set a value of
3029 # 50000.
3030 },
3031 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
3032 # Bid strategy determines the bid price.
3033 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
3034 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
3035 # For insertion order entity,
3036 # bid_amount_micros should be set as 0.
3037 # For line item entity,
3038 # bid_amount_micros must be greater
3039 # than or equal to billable unit of the given currency and smaller than or
3040 # equal to the upper limit 1000000000.
3041 #
3042 # For example, 1500000 represents 1.5 standard units of the currency.
3043 },
3044 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
3045 # performance goal while spending the full budget.
3046 #
3047 # At insertion order level, the
3048 # markup_type of line items
3049 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
3050 # when
3051 # performance_goal_type
3052 # is one of:
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 #
3054 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3055 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003056 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
3057 #
3058 # the line_item_type
3059 # of the insertion order line items must be either:
3060 #
3061 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
3062 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
3063 #
3064 # and when
Bu Sun Kim65020912020-05-20 12:08:20 -07003065 # performance_goal_type
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003066 # is either:
Bu Sun Kim65020912020-05-20 12:08:20 -07003067 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003068 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
3069 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
Bu Sun Kim65020912020-05-20 12:08:20 -07003070 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003071 # the line_item_type
3072 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
3073 # performance goal while spending the full budget.
3074 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3075 # tries to minimize while spending the full budget.
3076 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
3077 # this strategy.
3078 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3079 # currency. Must be greater than or equal to a billable unit of the given
3080 # currency.
3081 #
3082 # For example, 1500000 represents 1.5 standard units of the currency.
Bu Sun Kim65020912020-05-20 12:08:20 -07003083 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003084 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
3085 # performance goal. It is to be used only for a line item entity.
3086 # performance goal.
3087 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3088 # will try to meet or beat.
3089 #
3090 # For line item level usage, the value must be one of:
3091 #
3092 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3093 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
3094 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3095 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3096 # currency. Must be greater than or equal to a billable unit of the given
3097 # currency. Not applicable when
3098 # performance_goal_type
3099 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3100 #
3101 # For example, 1500000 represents 1.5 standard units of the currency.
3102 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
3103 # meet or beat, in micros of the advertiser&#x27;s currency.
3104 # Must be greater than or equal to a billable unit of the given currency and
3105 # smaller or equal to upper bounds. Each
3106 # performance_goal_type
3107 # has its upper bound:
3108 #
3109 # * when
3110 # performance_goal_type
3111 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
3112 # upper bound is 10000.00 USD.
3113 # * when
3114 # performance_goal_type
3115 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
3116 # upper bound is 1000.00 USD.
3117 # * when
3118 # performance_goal_type
3119 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
3120 # 1000.00 USD.
3121 #
3122 # Example: If set to
3123 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
3124 # be based on the probability that each available impression will be
3125 # viewable. For example, if viewable CPM target is $2 and an impression is
3126 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
3127 #
3128 # For example, 1500000 represents 1.5 standard units of the currency.
Bu Sun Kim65020912020-05-20 12:08:20 -07003129 },
3130 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003131 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -07003132</div>
3133
3134<div class="method">
3135 <code class="details" id="list">list(advertiserId, pageToken=None, orderBy=None, pageSize=None, filter=None, x__xgafv=None)</code>
3136 <pre>Lists line items in an advertiser.
3137
3138The order is defined by the order_by
3139parameter.
3140If a filter by
3141entity_status is not specified, line items with
3142`ENTITY_STATUS_ARCHIVED` will not be included in the results.
3143
3144Args:
3145 advertiserId: string, Required. The ID of the advertiser to list line items for. (required)
3146 pageToken: string, A token identifying a page of results the server should return.
3147Typically, this is the value of
3148next_page_token
3149returned from the previous call to `ListLineItems` method.
3150If not specified, the first page of results will be returned.
3151 orderBy: string, Field by which to sort the list.
3152Acceptable values are:
3153
3154* &quot;displayName&quot; (default)
3155* &quot;entityStatus&quot;
3156
3157The default sorting order is ascending. To specify descending order for
3158a field, a suffix &quot;desc&quot; should be added to the field name. Example:
3159`displayName desc`.
3160 pageSize: integer, Requested page size. Must be between `1` and `100`. If unspecified will
3161default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value
3162is specified.
3163 filter: string, Allows filtering by line item properties.
3164
3165Supported syntax:
3166
3167* Filter expressions are made up of one or more restrictions.
3168* Restrictions can be combined by `AND` or `OR` logical operators. A
3169sequence of restrictions implicitly uses `AND`.
3170* A restriction has the form of `{field} {operator} {value}`.
3171* The operator must be `EQUALS (=)`.
3172* Supported fields:
3173 - `campaignId`
3174 - `insertionOrderId`
3175 - `entityStatus`
3176 - `lineItemType`.
3177
3178Examples:
3179
3180* All line items under an insertion order: `insertionOrderId=&quot;1234&quot;`
3181* All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED`
3182and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser:
3183`(entityStatus=&quot;ENTITY_STATUS_ACTIVE&quot; OR
3184entityStatus=&quot;ENTITY_STATUS_PAUSED&quot;) AND
3185lineItemType=&quot;LINE_ITEM_TYPE_DISPLAY_DEFAULT&quot;`
3186
3187The length of this field should be no more than 500 characters.
3188 x__xgafv: string, V1 error format.
3189 Allowed values
3190 1 - v1 error format
3191 2 - v2 error format
3192
3193Returns:
3194 An object of the form:
3195
3196 {
3197 &quot;lineItems&quot;: [ # The list of line items.
3198 #
3199 # This list will be absent if empty.
3200 { # A single line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003201 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
3202 # ad during a given time period.
3203 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
3204 # `true`, the remaining frequency cap fields are not applicable.
3205 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
3206 # during this period. Must be greater than 0.
Bu Sun Kim65020912020-05-20 12:08:20 -07003207 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003208 # Applicable when unlimited is `false`.
3209 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
3210 #
3211 # Applicable when unlimited is `false`.
3212 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
3213 # last.
3214 #
3215 # Applicable when unlimited is `false`.
3216 # The following restrictions apply based on the value of
3217 # time_unit:
3218 #
3219 # * `TIME_UNIT_LIFETIME` - this field is output only and will
3220 # default to 1
3221 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
3222 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
3223 # * `TIME_UNIT_DAYS` - must be between 1 and 6
3224 # * `TIME_UNIT_HOURS` - must be between 1 and 23
3225 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
3226 },
3227 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
3228 #
3229 # Must be UTF-8 encoded with a maximum size of 240 bytes.
3230 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
3231 #
3232 # If absent or empty in CreateLineItem
3233 # method, the newly created line item will inherit partner costs from its
3234 # parent insertion order.
3235 { # Settings that control a partner cost.
3236 #
3237 # A partner cost is any type of expense involved in running a campaign, other
3238 # than the costs of purchasing impressions (which is called the media cost)
3239 # and using third-party audience segment data (data fee). Some examples of
3240 # partner costs include the fees for using DV360, a third-party ad server,
3241 # or a third-party ad serving verification service.
3242 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
3243 #
3244 # Applicable when the fee_type is
3245 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
3246 #
3247 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
3248 # this field to 1500000.
3249 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
3250 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
3251 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
3252 #
3253 # Applicable when the fee_type is
3254 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
3255 #
3256 # For example: 100 represents 0.1%.
3257 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
3258 #
3259 # * Required when cost_type is one of:
3260 # - `PARTNER_COST_TYPE_ADLOOX`
3261 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
3262 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
3263 # * Output only for other types.
3264 },
3265 ],
3266 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
3267 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
3268 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
3269 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
3270 #
3271 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
3272 # automatic budget allocation is enabled for the parent insertion order.
3273 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
3274 # or impression based. This value is inherited from the parent insertion
3275 # order.
3276 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
3277 #
3278 # When budget_allocation_type is:
3279 #
3280 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
3281 # and is set by the system.
3282 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
3283 # budget_unit is:
3284 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
3285 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
3286 # represents 1.5 standard units of the currency.
3287 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
3288 # of impressions to serve.
3289 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
3290 # applicable and will be ignored by the system.
3291 },
3292 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
3293 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
3294 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
3295 # relative to the parent advertiser&#x27;s time zone.
3296 #
3297 # * Required when
3298 # flight_date_type is
3299 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
3300 # * When creating a new flight, both `start_date` and `end_date` must be in
3301 # the future.
3302 # * An existing flight with a `start_date` in the past has a mutable
3303 # `end_date` but an immutable `start_date`.
3304 # * `end_date` must be the `start_date` or later, both before the year 2037.
3305 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
3306 # for `year`, `month`, and `day`.
3307 # and time zone are either specified elsewhere or are not significant. The date
3308 # is relative to the Proleptic Gregorian Calendar. This can represent:
3309 #
3310 # * A full date, with non-zero year, month and day values
3311 # * A month and day value, with a zero year, e.g. an anniversary
3312 # * A year on its own, with zero month and day values
3313 # * A year and month value, with a zero day, e.g. a credit card expiration date
3314 #
3315 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3316 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3317 # a year.
3318 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3319 # if specifying a year by itself or a year and month where the day is not
3320 # significant.
3321 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3322 # month and day.
3323 },
3324 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
3325 # for `year`, `month`, and `day`.
3326 # and time zone are either specified elsewhere or are not significant. The date
3327 # is relative to the Proleptic Gregorian Calendar. This can represent:
3328 #
3329 # * A full date, with non-zero year, month and day values
3330 # * A month and day value, with a zero year, e.g. an anniversary
3331 # * A year on its own, with zero month and day values
3332 # * A year and month value, with a zero day, e.g. a credit card expiration date
3333 #
3334 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3335 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3336 # a year.
3337 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3338 # if specifying a year by itself or a year and month where the day is not
3339 # significant.
3340 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3341 # month and day.
3342 },
3343 },
3344 },
3345 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
3346 &quot;A String&quot;,
3347 ],
3348 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
3349 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
3350 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
3351 # Must be greater than or equal to 0.
3352 #
3353 # * When the markup_type is set to be
3354 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
3355 # markup in micros of advertiser&#x27;s currency. For example, 1500000
3356 # represents 1.5 standard units of the currency.
3357 # * When the markup_type is set to be
3358 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
3359 # represents the media cost percent markup in millis. For example,
3360 # 100 represents 0.1% (decimal 0.001).
3361 # * When the markup_type is set to be
3362 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
3363 # represents the total media cost percent markup in millis. For example,
3364 # 100 represents 0.1% (decimal 0.001).
3365 },
3366 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
3367 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
3368 # bid on inventory.
3369 #
3370 # * For CreateLineItem method, only
3371 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
3372 # UpdateLineItem method and update the
3373 # status to `ENTITY_STATUS_ACTIVE` after creation.
3374 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
3375 # any other status.
3376 # * If the line item&#x27;s parent insertion order is not active, the line item
3377 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
3378 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
3379 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
3380 #
3381 # When automatic budget allocation is enabled at the insertion order via
3382 # auto_budget_allocation, this
3383 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
3384 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
3385 # spent across the pacing_period.
3386 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
3387 #
3388 # Applicable when the budget is impression based. Must be greater than 0.
3389 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
3390 # advertiser&#x27;s currency.
3391 #
3392 # Applicable when the budget is currency based. Must be greater than 0.
3393 # For example, for 1.5 standard unit of the currency, set this field to
3394 # 1500000.
3395 #
3396 # The value assigned will be rounded to whole billable units for the
3397 # relevant currency by the following rules: any positive value less than a
3398 # single billable unit will be rounded up to one billable unit and any
3399 # value larger than a single billable unit will be rounded down to the
3400 # nearest billable value. For example, if the currency&#x27;s billable unit is
3401 # 0.01, and this field is set to 10257770, it will round down to 10250000,
3402 # a value of 10.25. If set to 505, it will round up to 10000, a value of
3403 # 0.01.
3404 },
3405 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
3406 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
3407 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
3408 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
3409 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
3410 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
3411 #
3412 # Must be UTF-8 encoded with a length of no more than 1000 characters.
3413 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
3414 # The integration code will show up together with the entry in many
3415 # places in the system, for example, reporting.
3416 #
3417 # Must be UTF-8 encoded with a length of no more than 500 characters.
3418 },
3419 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
3420 &quot;A String&quot;,
3421 ],
3422 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
3423 #
3424 # All post-click conversions will be counted. A percentage value can be set
3425 # for post-view conversions counting.
3426 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
3427 #
3428 # The number of conversions counted is the sum of all of the conversions
3429 # counted by all of the Floodlight activity IDs specified in this field.
3430 { # Settings that control the behavior of a single Floodlight activity config.
3431 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
3432 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
3433 # conversion may be counted.
3434 # Must be between 0 and 90 inclusive.
3435 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
3436 # conversion may be counted.
3437 # Must be between 0 and 90 inclusive.
3438 },
3439 ],
3440 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
3441 # percent). Must be between 0 and 100000 inclusive.
3442 #
3443 # For example, to track 50% of the post-click conversions, set a value of
3444 # 50000.
3445 },
3446 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
3447 # Bid strategy determines the bid price.
3448 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
3449 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
3450 # For insertion order entity,
3451 # bid_amount_micros should be set as 0.
3452 # For line item entity,
3453 # bid_amount_micros must be greater
3454 # than or equal to billable unit of the given currency and smaller than or
3455 # equal to the upper limit 1000000000.
3456 #
3457 # For example, 1500000 represents 1.5 standard units of the currency.
3458 },
3459 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
3460 # performance goal while spending the full budget.
3461 #
3462 # At insertion order level, the
3463 # markup_type of line items
3464 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
3465 # when
3466 # performance_goal_type
3467 # is one of:
Bu Sun Kim65020912020-05-20 12:08:20 -07003468 #
3469 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3470 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003471 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
3472 #
3473 # the line_item_type
3474 # of the insertion order line items must be either:
3475 #
3476 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
3477 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
3478 #
3479 # and when
Bu Sun Kim65020912020-05-20 12:08:20 -07003480 # performance_goal_type
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003481 # is either:
Bu Sun Kim65020912020-05-20 12:08:20 -07003482 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003483 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
3484 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
Bu Sun Kim65020912020-05-20 12:08:20 -07003485 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003486 # the line_item_type
3487 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
3488 # performance goal while spending the full budget.
3489 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3490 # tries to minimize while spending the full budget.
3491 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
3492 # this strategy.
3493 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3494 # currency. Must be greater than or equal to a billable unit of the given
3495 # currency.
3496 #
3497 # For example, 1500000 represents 1.5 standard units of the currency.
Bu Sun Kim65020912020-05-20 12:08:20 -07003498 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003499 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
3500 # performance goal. It is to be used only for a line item entity.
3501 # performance goal.
3502 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3503 # will try to meet or beat.
3504 #
3505 # For line item level usage, the value must be one of:
3506 #
3507 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3508 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
3509 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3510 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3511 # currency. Must be greater than or equal to a billable unit of the given
3512 # currency. Not applicable when
3513 # performance_goal_type
3514 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3515 #
3516 # For example, 1500000 represents 1.5 standard units of the currency.
3517 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
3518 # meet or beat, in micros of the advertiser&#x27;s currency.
3519 # Must be greater than or equal to a billable unit of the given currency and
3520 # smaller or equal to upper bounds. Each
3521 # performance_goal_type
3522 # has its upper bound:
3523 #
3524 # * when
3525 # performance_goal_type
3526 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
3527 # upper bound is 10000.00 USD.
3528 # * when
3529 # performance_goal_type
3530 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
3531 # upper bound is 1000.00 USD.
3532 # * when
3533 # performance_goal_type
3534 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
3535 # 1000.00 USD.
3536 #
3537 # Example: If set to
3538 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
3539 # be based on the probability that each available impression will be
3540 # viewable. For example, if viewable CPM target is $2 and an impression is
3541 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
3542 #
3543 # For example, 1500000 represents 1.5 standard units of the currency.
Bu Sun Kim65020912020-05-20 12:08:20 -07003544 },
3545 },
3546 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003547 ],
3548 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results.
3549 # Pass this value in the
3550 # page_token
3551 # field in the subsequent call to `ListLineItems` method to retrieve the
3552 # next page of results.
3553 }</pre>
3554</div>
3555
3556<div class="method">
3557 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
3558 <pre>Retrieves the next page of results.
3559
3560Args:
3561 previous_request: The request for the previous page. (required)
3562 previous_response: The response from the request for the previous page. (required)
3563
3564Returns:
3565 A request object that you can call &#x27;execute()&#x27; on to request the next
3566 page. Returns None if there are no more items in the collection.
3567 </pre>
3568</div>
3569
3570<div class="method">
3571 <code class="details" id="patch">patch(advertiserId, lineItemId, body=None, updateMask=None, x__xgafv=None)</code>
3572 <pre>Updates an existing line item.
3573Returns the updated line item if successful.
3574
3575Args:
3576 advertiserId: string, Output only. The unique ID of the advertiser the line item belongs to. (required)
3577 lineItemId: string, Output only. The unique ID of the line item. Assigned by the system. (required)
3578 body: object, The request body.
3579 The object takes the form of:
3580
3581{ # A single line item.
Bu Sun Kim65020912020-05-20 12:08:20 -07003582 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
3583 # ad during a given time period.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003584 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
3585 # `true`, the remaining frequency cap fields are not applicable.
3586 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
3587 # during this period. Must be greater than 0.
3588 #
3589 # Applicable when unlimited is `false`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003590 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
3591 #
3592 # Applicable when unlimited is `false`.
3593 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
3594 # last.
3595 #
3596 # Applicable when unlimited is `false`.
3597 # The following restrictions apply based on the value of
3598 # time_unit:
3599 #
3600 # * `TIME_UNIT_LIFETIME` - this field is output only and will
3601 # default to 1
3602 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
3603 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
3604 # * `TIME_UNIT_DAYS` - must be between 1 and 6
3605 # * `TIME_UNIT_HOURS` - must be between 1 and 23
3606 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim65020912020-05-20 12:08:20 -07003607 },
3608 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003609 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003610 # Must be UTF-8 encoded with a maximum size of 240 bytes.
3611 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003612 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003613 # If absent or empty in CreateLineItem
3614 # method, the newly created line item will inherit partner costs from its
3615 # parent insertion order.
3616 { # Settings that control a partner cost.
3617 #
3618 # A partner cost is any type of expense involved in running a campaign, other
3619 # than the costs of purchasing impressions (which is called the media cost)
3620 # and using third-party audience segment data (data fee). Some examples of
3621 # partner costs include the fees for using DV360, a third-party ad server,
3622 # or a third-party ad serving verification service.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003623 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
3624 #
3625 # Applicable when the fee_type is
3626 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
3627 #
3628 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
3629 # this field to 1500000.
Bu Sun Kim65020912020-05-20 12:08:20 -07003630 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
3631 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
3632 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
3633 #
3634 # Applicable when the fee_type is
3635 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
3636 #
3637 # For example: 100 represents 0.1%.
3638 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
3639 #
3640 # * Required when cost_type is one of:
3641 # - `PARTNER_COST_TYPE_ADLOOX`
3642 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
3643 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
3644 # * Output only for other types.
Bu Sun Kim65020912020-05-20 12:08:20 -07003645 },
3646 ],
3647 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
3648 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003649 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
3650 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
3651 #
3652 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
3653 # automatic budget allocation is enabled for the parent insertion order.
3654 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
3655 # or impression based. This value is inherited from the parent insertion
3656 # order.
3657 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
3658 #
3659 # When budget_allocation_type is:
3660 #
3661 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
3662 # and is set by the system.
3663 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
3664 # budget_unit is:
3665 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
3666 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
3667 # represents 1.5 standard units of the currency.
3668 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
3669 # of impressions to serve.
3670 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
3671 # applicable and will be ignored by the system.
3672 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003673 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
3674 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
3675 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
3676 # relative to the parent advertiser&#x27;s time zone.
3677 #
3678 # * Required when
3679 # flight_date_type is
3680 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
3681 # * When creating a new flight, both `start_date` and `end_date` must be in
3682 # the future.
3683 # * An existing flight with a `start_date` in the past has a mutable
3684 # `end_date` but an immutable `start_date`.
3685 # * `end_date` must be the `start_date` or later, both before the year 2037.
3686 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
3687 # for `year`, `month`, and `day`.
3688 # and time zone are either specified elsewhere or are not significant. The date
3689 # is relative to the Proleptic Gregorian Calendar. This can represent:
3690 #
3691 # * A full date, with non-zero year, month and day values
3692 # * A month and day value, with a zero year, e.g. an anniversary
3693 # * A year on its own, with zero month and day values
3694 # * A year and month value, with a zero day, e.g. a credit card expiration date
3695 #
3696 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3697 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3698 # a year.
3699 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3700 # if specifying a year by itself or a year and month where the day is not
3701 # significant.
3702 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3703 # month and day.
3704 },
3705 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
3706 # for `year`, `month`, and `day`.
3707 # and time zone are either specified elsewhere or are not significant. The date
3708 # is relative to the Proleptic Gregorian Calendar. This can represent:
3709 #
3710 # * A full date, with non-zero year, month and day values
3711 # * A month and day value, with a zero year, e.g. an anniversary
3712 # * A year on its own, with zero month and day values
3713 # * A year and month value, with a zero day, e.g. a credit card expiration date
3714 #
3715 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
3716 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
3717 # a year.
3718 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
3719 # if specifying a year by itself or a year and month where the day is not
3720 # significant.
3721 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
3722 # month and day.
3723 },
3724 },
3725 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003726 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
3727 &quot;A String&quot;,
3728 ],
3729 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
3730 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
3731 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
3732 # Must be greater than or equal to 0.
Bu Sun Kim65020912020-05-20 12:08:20 -07003733 #
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003734 # * When the markup_type is set to be
3735 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
3736 # markup in micros of advertiser&#x27;s currency. For example, 1500000
3737 # represents 1.5 standard units of the currency.
3738 # * When the markup_type is set to be
3739 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
3740 # represents the media cost percent markup in millis. For example,
3741 # 100 represents 0.1% (decimal 0.001).
3742 # * When the markup_type is set to be
3743 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
3744 # represents the total media cost percent markup in millis. For example,
3745 # 100 represents 0.1% (decimal 0.001).
Bu Sun Kim65020912020-05-20 12:08:20 -07003746 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003747 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
3748 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
3749 # bid on inventory.
3750 #
3751 # * For CreateLineItem method, only
3752 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
3753 # UpdateLineItem method and update the
3754 # status to `ENTITY_STATUS_ACTIVE` after creation.
3755 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
3756 # any other status.
3757 # * If the line item&#x27;s parent insertion order is not active, the line item
3758 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
3759 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
3760 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
3761 #
3762 # When automatic budget allocation is enabled at the insertion order via
3763 # auto_budget_allocation, this
3764 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
3765 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
3766 # spent across the pacing_period.
3767 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
3768 #
3769 # Applicable when the budget is impression based. Must be greater than 0.
3770 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
3771 # advertiser&#x27;s currency.
3772 #
3773 # Applicable when the budget is currency based. Must be greater than 0.
3774 # For example, for 1.5 standard unit of the currency, set this field to
3775 # 1500000.
3776 #
3777 # The value assigned will be rounded to whole billable units for the
3778 # relevant currency by the following rules: any positive value less than a
3779 # single billable unit will be rounded up to one billable unit and any
3780 # value larger than a single billable unit will be rounded down to the
3781 # nearest billable value. For example, if the currency&#x27;s billable unit is
3782 # 0.01, and this field is set to 10257770, it will round down to 10250000,
3783 # a value of 10.25. If set to 505, it will round up to 10000, a value of
3784 # 0.01.
3785 },
3786 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
3787 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
3788 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
3789 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
3790 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
3791 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
3792 #
3793 # Must be UTF-8 encoded with a length of no more than 1000 characters.
3794 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
3795 # The integration code will show up together with the entry in many
3796 # places in the system, for example, reporting.
3797 #
3798 # Must be UTF-8 encoded with a length of no more than 500 characters.
3799 },
3800 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
3801 &quot;A String&quot;,
3802 ],
3803 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
3804 #
3805 # All post-click conversions will be counted. A percentage value can be set
3806 # for post-view conversions counting.
3807 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
3808 #
3809 # The number of conversions counted is the sum of all of the conversions
3810 # counted by all of the Floodlight activity IDs specified in this field.
3811 { # Settings that control the behavior of a single Floodlight activity config.
3812 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
3813 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
3814 # conversion may be counted.
3815 # Must be between 0 and 90 inclusive.
3816 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
3817 # conversion may be counted.
3818 # Must be between 0 and 90 inclusive.
3819 },
3820 ],
3821 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
3822 # percent). Must be between 0 and 100000 inclusive.
3823 #
3824 # For example, to track 50% of the post-click conversions, set a value of
3825 # 50000.
3826 },
3827 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
3828 # Bid strategy determines the bid price.
3829 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
3830 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
3831 # For insertion order entity,
3832 # bid_amount_micros should be set as 0.
3833 # For line item entity,
3834 # bid_amount_micros must be greater
3835 # than or equal to billable unit of the given currency and smaller than or
3836 # equal to the upper limit 1000000000.
3837 #
3838 # For example, 1500000 represents 1.5 standard units of the currency.
3839 },
3840 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
3841 # performance goal while spending the full budget.
3842 #
3843 # At insertion order level, the
3844 # markup_type of line items
3845 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
3846 # when
3847 # performance_goal_type
3848 # is one of:
3849 #
3850 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3851 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
3852 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
3853 #
3854 # the line_item_type
3855 # of the insertion order line items must be either:
3856 #
3857 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
3858 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
3859 #
3860 # and when
3861 # performance_goal_type
3862 # is either:
3863 #
3864 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
3865 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
3866 #
3867 # the line_item_type
3868 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
3869 # performance goal while spending the full budget.
3870 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3871 # tries to minimize while spending the full budget.
3872 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
3873 # this strategy.
3874 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3875 # currency. Must be greater than or equal to a billable unit of the given
3876 # currency.
3877 #
3878 # For example, 1500000 represents 1.5 standard units of the currency.
3879 },
3880 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
3881 # performance goal. It is to be used only for a line item entity.
3882 # performance goal.
3883 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
3884 # will try to meet or beat.
3885 #
3886 # For line item level usage, the value must be one of:
3887 #
3888 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
3889 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
3890 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3891 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
3892 # currency. Must be greater than or equal to a billable unit of the given
3893 # currency. Not applicable when
3894 # performance_goal_type
3895 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
3896 #
3897 # For example, 1500000 represents 1.5 standard units of the currency.
3898 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
3899 # meet or beat, in micros of the advertiser&#x27;s currency.
3900 # Must be greater than or equal to a billable unit of the given currency and
3901 # smaller or equal to upper bounds. Each
3902 # performance_goal_type
3903 # has its upper bound:
3904 #
3905 # * when
3906 # performance_goal_type
3907 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
3908 # upper bound is 10000.00 USD.
3909 # * when
3910 # performance_goal_type
3911 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
3912 # upper bound is 1000.00 USD.
3913 # * when
3914 # performance_goal_type
3915 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
3916 # 1000.00 USD.
3917 #
3918 # Example: If set to
3919 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
3920 # be based on the probability that each available impression will be
3921 # viewable. For example, if viewable CPM target is $2 and an impression is
3922 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
3923 #
3924 # For example, 1500000 represents 1.5 standard units of the currency.
3925 },
3926 },
3927 }
3928
3929 updateMask: string, Required. The mask to control which fields to update.
3930 x__xgafv: string, V1 error format.
3931 Allowed values
3932 1 - v1 error format
3933 2 - v2 error format
3934
3935Returns:
3936 An object of the form:
3937
3938 { # A single line item.
3939 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same # Required. The frequency capping setting of the line item.
3940 # ad during a given time period.
3941 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to
3942 # `true`, the remaining frequency cap fields are not applicable.
3943 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad
3944 # during this period. Must be greater than 0.
3945 #
3946 # Applicable when unlimited is `false`.
3947 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied.
3948 #
3949 # Applicable when unlimited is `false`.
3950 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will
3951 # last.
3952 #
3953 # Applicable when unlimited is `false`.
3954 # The following restrictions apply based on the value of
3955 # time_unit:
3956 #
3957 # * `TIME_UNIT_LIFETIME` - this field is output only and will
3958 # default to 1
3959 # * `TIME_UNIT_MONTHS` - must be between 1 and 2
3960 # * `TIME_UNIT_WEEKS` - must be between 1 and 4
3961 # * `TIME_UNIT_DAYS` - must be between 1 and 6
3962 # * `TIME_UNIT_HOURS` - must be between 1 and 23
3963 # * `TIME_UNIT_MINUTES` - must be between 1 and 59
3964 },
3965 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item.
3966 #
3967 # Must be UTF-8 encoded with a maximum size of 240 bytes.
3968 &quot;partnerCosts&quot;: [ # The partner costs associated with the line item.
3969 #
3970 # If absent or empty in CreateLineItem
3971 # method, the newly created line item will inherit partner costs from its
3972 # parent insertion order.
3973 { # Settings that control a partner cost.
3974 #
3975 # A partner cost is any type of expense involved in running a campaign, other
3976 # than the costs of purchasing impressions (which is called the media cost)
3977 # and using third-party audience segment data (data fee). Some examples of
3978 # partner costs include the fees for using DV360, a third-party ad server,
3979 # or a third-party ad serving verification service.
3980 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency.
3981 #
3982 # Applicable when the fee_type is
3983 # `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0.
3984 #
3985 # For example, for 1.5 standard unit of the advertiser&#x27;s currency, set
3986 # this field to 1500000.
3987 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
3988 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
3989 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent).
3990 #
3991 # Applicable when the fee_type is
3992 # `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0.
3993 #
3994 # For example: 100 represents 0.1%.
3995 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost.
3996 #
3997 # * Required when cost_type is one of:
3998 # - `PARTNER_COST_TYPE_ADLOOX`
3999 # - `PARTNER_COST_TYPE_DOUBLE_VERIFY`
4000 # - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`.
4001 # * Output only for other types.
4002 },
4003 ],
4004 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
4005 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
4006 &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
4007 &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation.
4008 #
4009 # `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when
4010 # automatic budget allocation is enabled for the parent insertion order.
4011 &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based
4012 # or impression based. This value is inherited from the parent insertion
4013 # order.
4014 &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0.
4015 #
4016 # When budget_allocation_type is:
4017 #
4018 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable
4019 # and is set by the system.
4020 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if
4021 # budget_unit is:
4022 # - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount
4023 # to spend, in micros of the advertiser&#x27;s currency. For example, 1500000
4024 # represents 1.5 standard units of the currency.
4025 # - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number
4026 # of impressions to serve.
4027 # * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not
4028 # applicable and will be ignored by the system.
4029 },
4030 &quot;flight&quot;: { # Settings that control the active duration of a line item. # Required. The start and end time of the line item&#x27;s flight.
4031 &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
4032 &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved
4033 # relative to the parent advertiser&#x27;s time zone.
4034 #
4035 # * Required when
4036 # flight_date_type is
4037 # `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise.
4038 # * When creating a new flight, both `start_date` and `end_date` must be in
4039 # the future.
4040 # * An existing flight with a `start_date` in the past has a mutable
4041 # `end_date` but an immutable `start_date`.
4042 # * `end_date` must be the `start_date` or later, both before the year 2037.
4043 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The upper bound of the date range, inclusive. Must specify a positive value
4044 # for `year`, `month`, and `day`.
4045 # and time zone are either specified elsewhere or are not significant. The date
4046 # is relative to the Proleptic Gregorian Calendar. This can represent:
4047 #
4048 # * A full date, with non-zero year, month and day values
4049 # * A month and day value, with a zero year, e.g. an anniversary
4050 # * A year on its own, with zero month and day values
4051 # * A year and month value, with a zero day, e.g. a credit card expiration date
4052 #
4053 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4054 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4055 # a year.
4056 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4057 # if specifying a year by itself or a year and month where the day is not
4058 # significant.
4059 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4060 # month and day.
4061 },
4062 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day # The lower bound of the date range, inclusive. Must specify a positive value
4063 # for `year`, `month`, and `day`.
4064 # and time zone are either specified elsewhere or are not significant. The date
4065 # is relative to the Proleptic Gregorian Calendar. This can represent:
4066 #
4067 # * A full date, with non-zero year, month and day values
4068 # * A month and day value, with a zero year, e.g. an anniversary
4069 # * A year on its own, with zero month and day values
4070 # * A year and month value, with a zero day, e.g. a credit card expiration date
4071 #
4072 # Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
4073 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
4074 # a year.
4075 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
4076 # if specifying a year by itself or a year and month where the day is not
4077 # significant.
4078 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a
4079 # month and day.
4080 },
4081 },
4082 },
4083 &quot;inventorySourceIds&quot;: [ # The IDs of the private inventory sources assigned to the line item.
4084 &quot;A String&quot;,
4085 ],
4086 &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
4087 &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
4088 &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model.
4089 # Must be greater than or equal to 0.
4090 #
4091 # * When the markup_type is set to be
4092 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM
4093 # markup in micros of advertiser&#x27;s currency. For example, 1500000
4094 # represents 1.5 standard units of the currency.
4095 # * When the markup_type is set to be
4096 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field
4097 # represents the media cost percent markup in millis. For example,
4098 # 100 represents 0.1% (decimal 0.001).
4099 # * When the markup_type is set to be
4100 # `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field
4101 # represents the total media cost percent markup in millis. For example,
4102 # 100 represents 0.1% (decimal 0.001).
4103 },
4104 &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
4105 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and
4106 # bid on inventory.
4107 #
4108 # * For CreateLineItem method, only
4109 # `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use
4110 # UpdateLineItem method and update the
4111 # status to `ENTITY_STATUS_ACTIVE` after creation.
4112 # * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from
4113 # any other status.
4114 # * If the line item&#x27;s parent insertion order is not active, the line item
4115 # can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
4116 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
4117 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent.
4118 #
4119 # When automatic budget allocation is enabled at the insertion order via
4120 # auto_budget_allocation, this
4121 # field is output only and defaults to `PACING_PERIOD_FLIGHT`.
4122 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be
4123 # spent across the pacing_period.
4124 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day.
4125 #
4126 # Applicable when the budget is impression based. Must be greater than 0.
4127 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of
4128 # advertiser&#x27;s currency.
4129 #
4130 # Applicable when the budget is currency based. Must be greater than 0.
4131 # For example, for 1.5 standard unit of the currency, set this field to
4132 # 1500000.
4133 #
4134 # The value assigned will be rounded to whole billable units for the
4135 # relevant currency by the following rules: any positive value less than a
4136 # single billable unit will be rounded up to one billable unit and any
4137 # value larger than a single billable unit will be rounded down to the
4138 # nearest billable value. For example, if the currency&#x27;s billable unit is
4139 # 0.01, and this field is set to 10257770, it will round down to 10250000,
4140 # a value of 10.25. If set to 505, it will round up to 10000, a value of
4141 # 0.01.
4142 },
4143 &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
4144 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
4145 &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
4146 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
4147 &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
4148 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format.
4149 #
4150 # Must be UTF-8 encoded with a length of no more than 1000 characters.
4151 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry.
4152 # The integration code will show up together with the entry in many
4153 # places in the system, for example, reporting.
4154 #
4155 # Must be UTF-8 encoded with a length of no more than 500 characters.
4156 },
4157 &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
4158 &quot;A String&quot;,
4159 ],
4160 &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. # The conversion tracking setting of the line item.
4161 #
4162 # All post-click conversions will be counted. A percentage value can be set
4163 # for post-view conversions counting.
4164 &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions.
4165 #
4166 # The number of conversions counted is the sum of all of the conversions
4167 # counted by all of the Floodlight activity IDs specified in this field.
4168 { # Settings that control the behavior of a single Floodlight activity config.
4169 &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
4170 &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a
4171 # conversion may be counted.
4172 # Must be between 0 and 90 inclusive.
4173 &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a
4174 # conversion may be counted.
4175 # Must be between 0 and 90 inclusive.
4176 },
4177 ],
4178 &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a
4179 # percent). Must be between 0 and 100000 inclusive.
4180 #
4181 # For example, to track 50% of the post-click conversions, set a value of
4182 # 50000.
4183 },
4184 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. # Required. The bidding strategy of the line item.
4185 # Bid strategy determines the bid price.
4186 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
4187 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency.
4188 # For insertion order entity,
4189 # bid_amount_micros should be set as 0.
4190 # For line item entity,
4191 # bid_amount_micros must be greater
4192 # than or equal to billable unit of the given currency and smaller than or
4193 # equal to the upper limit 1000000000.
4194 #
4195 # For example, 1500000 represents 1.5 standard units of the currency.
4196 },
4197 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified # A strategy that automatically adjusts the bid to optimize to your
4198 # performance goal while spending the full budget.
4199 #
4200 # At insertion order level, the
4201 # markup_type of line items
4202 # cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition,
4203 # when
4204 # performance_goal_type
4205 # is one of:
4206 #
4207 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
4208 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
4209 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` ,
4210 #
4211 # the line_item_type
4212 # of the insertion order line items must be either:
4213 #
4214 # * `LINE_ITEM_TYPE_DISPLAY_DEFAULT`
4215 # * `LINE_ITEM_TYPE_VIDEO_DEFAULT` ,
4216 #
4217 # and when
4218 # performance_goal_type
4219 # is either:
4220 #
4221 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA`
4222 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN`
4223 #
4224 # the line_item_type
4225 # of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
4226 # performance goal while spending the full budget.
4227 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
4228 # tries to minimize while spending the full budget.
4229 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for
4230 # this strategy.
4231 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
4232 # currency. Must be greater than or equal to a billable unit of the given
4233 # currency.
4234 #
4235 # For example, 1500000 represents 1.5 standard units of the currency.
4236 },
4237 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified # A strategy that automatically adjusts the bid to meet or beat a specified
4238 # performance goal. It is to be used only for a line item entity.
4239 # performance goal.
4240 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy
4241 # will try to meet or beat.
4242 #
4243 # For line item level usage, the value must be one of:
4244 #
4245 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`
4246 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`
4247 # * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
4248 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s
4249 # currency. Must be greater than or equal to a billable unit of the given
4250 # currency. Not applicable when
4251 # performance_goal_type
4252 # is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`.
4253 #
4254 # For example, 1500000 represents 1.5 standard units of the currency.
4255 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to
4256 # meet or beat, in micros of the advertiser&#x27;s currency.
4257 # Must be greater than or equal to a billable unit of the given currency and
4258 # smaller or equal to upper bounds. Each
4259 # performance_goal_type
4260 # has its upper bound:
4261 #
4262 # * when
4263 # performance_goal_type
4264 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`,
4265 # upper bound is 10000.00 USD.
4266 # * when
4267 # performance_goal_type
4268 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`,
4269 # upper bound is 1000.00 USD.
4270 # * when
4271 # performance_goal_type
4272 # is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is
4273 # 1000.00 USD.
4274 #
4275 # Example: If set to
4276 # `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will
4277 # be based on the probability that each available impression will be
4278 # viewable. For example, if viewable CPM target is $2 and an impression is
4279 # 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2).
4280 #
4281 # For example, 1500000 represents 1.5 standard units of the currency.
4282 },
4283 },
4284 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -07004285</div>
4286
4287</body></html>