File: displayvideo_v2.advertisers.lineItems.html

package info (click to toggle)
python-googleapi 2.186.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 553,432 kB
  • sloc: python: 11,087; javascript: 249; sh: 114; makefile: 59
file content (2474 lines) | stat: -rw-r--r-- 391,743 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="displayvideo_v2.html">Display & Video 360 API</a> . <a href="displayvideo_v2.advertisers.html">advertisers</a> . <a href="displayvideo_v2.advertisers.lineItems.html">lineItems</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="displayvideo_v2.advertisers.lineItems.targetingTypes.html">targetingTypes()</a></code>
</p>
<p class="firstline">Returns the targetingTypes Resource.</p>

<p class="toc_element">
  <code><a href="#bulkEditAssignedTargetingOptions">bulkEditAssignedTargetingOptions(advertiserId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkUpdate * lineItems.patch * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & Partners line items cannot be created or updated using the API.</p>
<p class="toc_element">
  <code><a href="#bulkListAssignedTargetingOptions">bulkListAssignedTargetingOptions(advertiserId, filter=None, lineItemIds=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists assigned targeting options for multiple line items across targeting types.</p>
<p class="toc_element">
  <code><a href="#bulkListAssignedTargetingOptions_next">bulkListAssignedTargetingOptions_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#bulkUpdate">bulkUpdate(advertiserId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates multiple line items. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * BulkEditAssignedTargetingOptions * UpdateLineItem * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & Partners line items cannot be created or updated using the API.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(advertiserId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new line item. Returns the newly created line item if successful. YouTube & Partners line items cannot be created or updated using the API.</p>
<p class="toc_element">
  <code><a href="#delete">delete(advertiserId, lineItemId, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. YouTube & Partners line items cannot be created or updated using the API.</p>
<p class="toc_element">
  <code><a href="#duplicate">duplicate(advertiserId, lineItemId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Duplicates a line item. Returns the ID of the created line item if successful. YouTube & Partners line items cannot be created or updated using the API. **This method regularly experiences high latency.** We recommend [increasing your default timeout](/display-video/api/guides/best-practices/timeouts#client_library_timeout) to avoid errors.</p>
<p class="toc_element">
  <code><a href="#generateDefault">generateDefault(advertiserId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new line item with settings (including targeting) inherited from the insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly created line item if successful. There are default values based on the three fields: * The insertion order's insertion_order_type * The insertion order's automation_type * The given line_item_type YouTube & Partners line items cannot be created or updated using the API.</p>
<p class="toc_element">
  <code><a href="#get">get(advertiserId, lineItemId, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a line item.</p>
<p class="toc_element">
  <code><a href="#list">list(advertiserId, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be included in the results.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(advertiserId, lineItemId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates an existing line item. Returns the updated line item if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * BulkEditAssignedTargetingOptions * BulkUpdateLineItems * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube & Partners line items cannot be created or updated using the API. **This method regularly experiences high latency.** We recommend [increasing your default timeout](/display-video/api/guides/best-practices/timeouts#client_library_timeout) to avoid errors.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="bulkEditAssignedTargetingOptions">bulkEditAssignedTargetingOptions(advertiserId, body=None, x__xgafv=None)</code>
  <pre>Bulk edits targeting options under multiple line items. The operation will delete the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.delete_requests and then create the assigned targeting options provided in BulkEditAssignedTargetingOptionsRequest.create_requests. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * lineItems.bulkUpdate * lineItems.patch * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube &amp; Partners line items cannot be created or updated using the API.

Args:
  advertiserId: string, Required. The ID of the advertiser the line items belong to. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for BulkEditLineItemsAssignedTargetingOptions.
  &quot;createRequests&quot;: [ # The assigned targeting options to create in batch, specified as a list of CreateAssignedTargetingOptionsRequest. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`
    { # A request listing which assigned targeting options of a given targeting type should be created and added.
      &quot;assignedTargetingOptions&quot;: [ # Required. The assigned targeting options to create and add.
        { # A single assigned targeting option, which defines the state of a targeting option for an entity with targeting settings.
          &quot;ageRangeDetails&quot;: { # Represents a targetable age range. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AGE_RANGE`. # Age range details. This field will be populated when the targeting_type is `TARGETING_TYPE_AGE_RANGE`.
            &quot;ageRange&quot;: &quot;A String&quot;, # Required. The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age.
          },
          &quot;appCategoryDetails&quot;: { # Details for assigned app category targeting option. This will be populated in the app_category_details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_APP_CATEGORY`. # App category details. This field will be populated when the targeting_type is `TARGETING_TYPE_APP_CATEGORY`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app category.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_APP_CATEGORY`.
          },
          &quot;appDetails&quot;: { # Details for assigned app targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_APP`. # App details. This field will be populated when the targeting_type is `TARGETING_TYPE_APP`.
            &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app. Android&#x27;s Play store app uses bundle ID, for example `com.google.android.gm`. Apple&#x27;s App store app ID uses 9 digit string, for example `422689480`.
            &quot;appPlatform&quot;: &quot;A String&quot;, # Indicates the platform of the targeted app. If this field is not specified, the app platform will be assumed to be mobile (i.e., Android or iOS), and we will derive the appropriate mobile platform from the app ID.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          },
          &quot;assignedTargetingOptionId&quot;: &quot;A String&quot;, # Output only. The unique ID of the assigned targeting option. The ID is only unique within a given resource and targeting type. It may be reused in other contexts.
          &quot;assignedTargetingOptionIdAlias&quot;: &quot;A String&quot;, # Output only. An alias for the assigned_targeting_option_id. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for all assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` This field is also supported for line item assigned targeting options of the following targeting types: * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`
          &quot;audienceGroupDetails&quot;: { # Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups. # Audience targeting details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. You can only target one audience group option per resource.
            &quot;excludedGoogleAudienceGroup&quot;: { # Details of Google audience group. All Google audience targeting settings are logically ‘OR’ of each other. # Optional. The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other.
              &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group. Repeated settings with the same id will be ignored.
                { # Details of Google audience targeting setting.
                  &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting. This id is google_audience_id.
                },
              ],
            },
            &quot;includedCombinedAudienceGroup&quot;: { # Details of combined audience group. All combined audience targeting settings are logically ‘OR’ of each other. # Optional. The combined audience ids of the included combined audience group. Contains combined audience ids only.
              &quot;settings&quot;: [ # Required. All combined audience targeting settings in combined audience group. Repeated settings with the same id will be ignored. The number of combined audience settings should be no more than five, error will be thrown otherwise.
                { # Details of combined audience targeting setting.
                  &quot;combinedAudienceId&quot;: &quot;A String&quot;, # Required. Combined audience id of combined audience targeting setting. This id is combined_audience_id.
                },
              ],
            },
            &quot;includedCustomListGroup&quot;: { # Details of custom list group. All custom list targeting settings are logically ‘OR’ of each other. # Optional. The custom list ids of the included custom list group. Contains custom list ids only.
              &quot;settings&quot;: [ # Required. All custom list targeting settings in custom list group. Repeated settings with the same id will be ignored.
                { # Details of custom list targeting setting.
                  &quot;customListId&quot;: &quot;A String&quot;, # Required. Custom id of custom list targeting setting. This id is custom_list_id.
                },
              ],
            },
            &quot;includedGoogleAudienceGroup&quot;: { # Details of Google audience group. All Google audience targeting settings are logically ‘OR’ of each other. # Optional. The Google audience ids of the included Google audience group. Contains Google audience ids only.
              &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group. Repeated settings with the same id will be ignored.
                { # Details of Google audience targeting setting.
                  &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting. This id is google_audience_id.
                },
              ],
            },
          },
          &quot;audioContentTypeDetails&quot;: { # Details for audio content type assigned targeting option. This will be populated in the audio_content_type_details field when targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options is not supported. Remove all audio content type targeting options to achieve this effect. # Audio content type details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`.
            &quot;audioContentType&quot;: &quot;A String&quot;, # Required. The audio content type.
          },
          &quot;authorizedSellerStatusDetails&quot;: { # Represents an assigned authorized seller status. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. If a resource does not have an `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` assigned targeting option, it is using the &quot;Authorized Direct Sellers and Resellers&quot; option. # Authorized seller status details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. You can only target one authorized seller status option per resource. If a resource doesn&#x27;t have an authorized seller status option, all authorized sellers indicated as DIRECT or RESELLER in the ads.txt file are targeted by default.
            &quot;authorizedSellerStatus&quot;: &quot;A String&quot;, # Output only. The authorized seller status to target.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
          },
          &quot;browserDetails&quot;: { # Details for assigned browser targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_BROWSER`. # Browser details. This field will be populated when the targeting_type is `TARGETING_TYPE_BROWSER`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the browser.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned browser targeting options on the same resource must have the same value for this field.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_BROWSER`.
          },
          &quot;businessChainDetails&quot;: { # Details for assigned Business chain targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. # Business chain details. This field will be populated when the targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of a business chain, e.g. &quot;KFC&quot;, &quot;Chase Bank&quot;.
            &quot;proximityRadiusAmount&quot;: 3.14, # Required. The radius of the area around the business chain that will be targeted. The units of the radius are specified by proximity_radius_unit. Must be 1 to 800 if unit is `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`. The minimum increment for both cases is 0.1. Inputs will be rounded to the nearest acceptable value if it is too granular, e.g. 15.57 will become 15.6.
            &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. The unit of distance by which the targeting radius is measured.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_BUSINESS_CHAIN`. Accepted business chain targeting option IDs can be retrieved using SearchTargetingOptions.
          },
          &quot;carrierAndIspDetails&quot;: { # Details for assigned carrier and ISP targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`. # Carrier and ISP details. This field will be populated when the targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the carrier or ISP.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned carrier and ISP targeting options on the same resource must have the same value for this field.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`.
          },
          &quot;categoryDetails&quot;: { # Assigned category targeting option details. This will be populated in the category_details field when targeting_type is `TARGETING_TYPE_CATEGORY`. # Category details. This field will be populated when the targeting_type is `TARGETING_TYPE_CATEGORY`. Targeting a category will also target its subcategories. If a category is excluded from targeting and a subcategory is included, the exclusion will take precedence.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the category.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CATEGORY`.
          },
          &quot;channelDetails&quot;: { # Details for assigned channel targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CHANNEL`. # Channel details. This field will be populated when the targeting_type is `TARGETING_TYPE_CHANNEL`.
            &quot;channelId&quot;: &quot;A String&quot;, # Required. ID of the channel. Should refer to the channel ID field on a [Partner-owned channel](partners.channels#Channel.FIELDS.channel_id) or [advertiser-owned channel](advertisers.channels#Channel.FIELDS.channel_id) resource.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. For advertiser level assigned targeting option, this field must be true.
          },
          &quot;contentDurationDetails&quot;: { # Details for content duration assigned targeting option. This will be populated in the content_duration_details field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options is not supported. Remove all content duration targeting options to achieve this effect. # Content duration details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.
            &quot;contentDuration&quot;: &quot;A String&quot;, # Output only. The content duration.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.
          },
          &quot;contentGenreDetails&quot;: { # Details for content genre assigned targeting option. This will be populated in the content_genre_details field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is not supported. Remove all content genre targeting options to achieve this effect. # Content genre details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the content genre.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.
          },
          &quot;contentInstreamPositionDetails&quot;: { # Assigned content instream position targeting option details. This will be populated in the content_instream_position_details field when targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. # Content instream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
            &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. * `AD_TYPE_AUDIO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_AUDIO_DEFAULT`.
            &quot;contentInstreamPosition&quot;: &quot;A String&quot;, # Required. The content instream position for video or audio ads.
          },
          &quot;contentOutstreamPositionDetails&quot;: { # Assigned content outstream position targeting option details. This will be populated in the content_outstream_position_details field when targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. # Content outstream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
            &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
            &quot;contentOutstreamPosition&quot;: &quot;A String&quot;, # Required. The content outstream position.
          },
          &quot;contentStreamTypeDetails&quot;: { # Details for content stream type assigned targeting option. This will be populated in the content_stream_type_details field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all options is not supported. Remove all content stream type targeting options to achieve this effect. # Content duration details. This field will be populated when the TargetingType is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.
            &quot;contentStreamType&quot;: &quot;A String&quot;, # Output only. The content stream type.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.
          },
          &quot;dayAndTimeDetails&quot;: { # Representation of a segment of time defined on a specific day of the week and with a start and end time. The time represented by `start_hour` must be before the time represented by `end_hour`. # Day and time details. This field will be populated when the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`.
            &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. The day of the week for this day and time targeting setting.
            &quot;endHour&quot;: 42, # Required. The end hour for day and time targeting. Must be between 1 (1 hour after start of day) and 24 (end of day).
            &quot;startHour&quot;: 42, # Required. The start hour for day and time targeting. Must be between 0 (start of day) and 23 (1 hour before end of day).
            &quot;timeZoneResolution&quot;: &quot;A String&quot;, # Required. The mechanism used to determine which timezone to use for this day and time targeting setting.
          },
          &quot;deviceMakeModelDetails&quot;: { # Assigned device make and model targeting option details. This will be populated in the device_make_model_details field when targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. # Device make and model details. This field will be populated when the targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the device make and model.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
          },
          &quot;deviceTypeDetails&quot;: { # Targeting details for device type. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. # Device Type details. This field will be populated when the targeting_type is `TARGETING_TYPE_DEVICE_TYPE`.
            &quot;deviceType&quot;: &quot;A String&quot;, # Required. The display name of the device type.
            &quot;youtubeAndPartnersBidMultiplier&quot;: 3.14, # Output only. Bid multiplier allows you to show your ads more or less frequently based on the device type. It will apply a multiplier on the original bid price. When this field is 0, it indicates this field is not applicable instead of multiplying 0 on the original bid price. For example, if the bid price without multiplier is $10.0 and the multiplier is 1.5 for Tablet, the resulting bid price for Tablet will be $15.0. Only applicable to YouTube and Partners line items.
          },
          &quot;digitalContentLabelExclusionDetails&quot;: { # Targeting details for digital content label. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. # Digital content label details. This field will be populated when the targeting_type is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. Digital content labels are targeting exclusions. Advertiser level digital content label exclusions, if set, are always applied in serving (even though they aren&#x27;t visible in resource settings). Resource settings can exclude content labels in addition to advertiser exclusions, but can&#x27;t override them. A line item won&#x27;t serve if all the digital content labels are excluded.
            &quot;excludedContentRatingTier&quot;: &quot;A String&quot;, # Required. The display name of the digital content label rating tier to be EXCLUDED.
          },
          &quot;environmentDetails&quot;: { # Assigned environment targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_ENVIRONMENT`. # Environment details. This field will be populated when the targeting_type is `TARGETING_TYPE_ENVIRONMENT`.
            &quot;environment&quot;: &quot;A String&quot;, # Required. The serving environment.
          },
          &quot;exchangeDetails&quot;: { # Details for assigned exchange targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_EXCHANGE`. # Exchange details. This field will be populated when the targeting_type is `TARGETING_TYPE_EXCHANGE`.
            &quot;exchange&quot;: &quot;A String&quot;, # Required. The enum value for the exchange.
          },
          &quot;genderDetails&quot;: { # Details for assigned gender targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GENDER`. # Gender details. This field will be populated when the targeting_type is `TARGETING_TYPE_GENDER`.
            &quot;gender&quot;: &quot;A String&quot;, # Required. The gender of the audience.
          },
          &quot;geoRegionDetails&quot;: { # Details for assigned geographic region targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GEO_REGION`. # Geographic region details. This field will be populated when the targeting_type is `TARGETING_TYPE_GEO_REGION`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the geographic region (e.g., &quot;Ontario, Canada&quot;).
            &quot;geoRegionType&quot;: &quot;A String&quot;, # Output only. The type of geographic region targeting.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_GEO_REGION`.
          },
          &quot;householdIncomeDetails&quot;: { # Details for assigned household income targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`. # Household income details. This field will be populated when the targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`.
            &quot;householdIncome&quot;: &quot;A String&quot;, # Required. The household income of the audience.
          },
          &quot;inheritance&quot;: &quot;A String&quot;, # Output only. The inheritance status of the assigned targeting option.
          &quot;inventorySourceDetails&quot;: { # Targeting details for inventory source. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`. # Inventory source details. This field will be populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`.
            &quot;inventorySourceId&quot;: &quot;A String&quot;, # Required. ID of the inventory source. Should refer to the inventory_source_id field of an InventorySource resource.
          },
          &quot;inventorySourceGroupDetails&quot;: { # Targeting details for inventory source group. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`. # Inventory source group details. This field will be populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
            &quot;inventorySourceGroupId&quot;: &quot;A String&quot;, # Required. ID of the inventory source group. Should refer to the inventory_source_group_id field of an InventorySourceGroup resource.
          },
          &quot;keywordDetails&quot;: { # Details for assigned keyword targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_KEYWORD`. # Keyword details. This field will be populated when the targeting_type is `TARGETING_TYPE_KEYWORD`. A maximum of 5000 direct negative keywords can be assigned to a resource. No limit on number of positive keywords that can be assigned.
            &quot;keyword&quot;: &quot;A String&quot;, # Required. The keyword, for example `car insurance`. Positive keyword cannot be offensive word. Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number of characters is 80. Maximum number of words is 10.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          },
          &quot;languageDetails&quot;: { # Details for assigned language targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_LANGUAGE`. # Language details. This field will be populated when the targeting_type is `TARGETING_TYPE_LANGUAGE`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the language (e.g., &quot;French&quot;).
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned language targeting options on the same resource must have the same value for this field.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_LANGUAGE`.
          },
          &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name for this assigned targeting option.
          &quot;nativeContentPositionDetails&quot;: { # Details for native content position assigned targeting option. This will be populated in the native_content_position_details field when targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options is not supported. Remove all native content position targeting options to achieve this effect. # Native content position details. This field will be populated when the targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`.
            &quot;contentPosition&quot;: &quot;A String&quot;, # Required. The content position.
          },
          &quot;negativeKeywordListDetails&quot;: { # Targeting details for negative keyword list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. # Keyword details. This field will be populated when the targeting_type is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. A maximum of 4 negative keyword lists can be assigned to a resource.
            &quot;negativeKeywordListId&quot;: &quot;A String&quot;, # Required. ID of the negative keyword list. Should refer to the negative_keyword_list_id field of a NegativeKeywordList resource.
          },
          &quot;omidDetails&quot;: { # Represents a targetable Open Measurement enabled inventory type. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_OMID`. # Open Measurement enabled inventory details. This field will be populated when the targeting_type is `TARGETING_TYPE_OMID`.
            &quot;omid&quot;: &quot;A String&quot;, # Required. The type of Open Measurement enabled inventory.
          },
          &quot;onScreenPositionDetails&quot;: { # On screen position targeting option details. This will be populated in the on_screen_position_details field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. # On screen position details. This field will be populated when the targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`.
            &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
            &quot;onScreenPosition&quot;: &quot;A String&quot;, # Output only. The on screen position.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`.
          },
          &quot;operatingSystemDetails&quot;: { # Assigned operating system targeting option details. This will be populated in the operating_system_details field when targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`. # Operating system details. This field will be populated when the targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the operating system.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting option ID populated in targeting_option_id field when targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`.
          },
          &quot;parentalStatusDetails&quot;: { # Details for assigned parental status targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`. # Parental status details. This field will be populated when the targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`.
            &quot;parentalStatus&quot;: &quot;A String&quot;, # Required. The parental status of the audience.
          },
          &quot;poiDetails&quot;: { # Details for assigned POI targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_POI`. # POI details. This field will be populated when the targeting_type is `TARGETING_TYPE_POI`.
            &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of a POI, e.g. &quot;Times Square&quot;, &quot;Space Needle&quot;, followed by its full address if available.
            &quot;latitude&quot;: 3.14, # Output only. Latitude of the POI rounding to 6th decimal place.
            &quot;longitude&quot;: 3.14, # Output only. Longitude of the POI rounding to 6th decimal place.
            &quot;proximityRadiusAmount&quot;: 3.14, # Required. The radius of the area around the POI that will be targeted. The units of the radius are specified by proximity_radius_unit. Must be 1 to 800 if unit is `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`.
            &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. The unit of distance by which the targeting radius is measured.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be retrieved using `targetingTypes.targetingOptions.search`. If targeting a specific latitude/longitude coordinate removed from an address or POI name, you can generate the necessary targeting option ID by rounding the desired coordinate values to the 6th decimal place, removing the decimals, and concatenating the string values separated by a semicolon. For example, you can target the latitude/longitude pair of 40.7414691, -74.003387 using the targeting option ID &quot;40741469;-74003387&quot;. **Upon** **creation, this field value will be updated to append a semicolon and** **alphanumerical hash value if only latitude/longitude coordinates are** **provided.**
          },
          &quot;proximityLocationListDetails&quot;: { # Targeting details for proximity location list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`. # Proximity location list details. This field will be populated when the targeting_type is `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
            &quot;proximityLocationListId&quot;: &quot;A String&quot;, # Required. ID of the proximity location list. Should refer to the location_list_id field of a LocationList resource whose type is `TARGETING_LOCATION_TYPE_PROXIMITY`.
            &quot;proximityRadius&quot;: 3.14, # Required. Radius expressed in the distance units set in proximity_radius_unit. This represents the size of the area around a chosen location that will be targeted. Radius should be between 1 and 500 miles or 800 kilometers.
            &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. Radius distance units.
          },
          &quot;regionalLocationListDetails&quot;: { # Targeting details for regional location list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`. # Regional location list details. This field will be populated when the targeting_type is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;regionalLocationListId&quot;: &quot;A String&quot;, # Required. ID of the regional location list. Should refer to the location_list_id field of a LocationList resource whose type is `TARGETING_LOCATION_TYPE_REGIONAL`.
          },
          &quot;sensitiveCategoryExclusionDetails&quot;: { # Targeting details for sensitive category. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. # Sensitive category details. This field will be populated when the targeting_type is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. Sensitive categories are targeting exclusions. Advertiser level sensitive category exclusions, if set, are always applied in serving (even though they aren&#x27;t visible in resource settings). Resource settings can exclude sensitive categories in addition to advertiser exclusions, but can&#x27;t override them.
            &quot;excludedSensitiveCategory&quot;: &quot;A String&quot;, # Required. An enum for the DV360 Sensitive category content classified to be EXCLUDED.
          },
          &quot;sessionPositionDetails&quot;: { # Details for session position assigned targeting option. This will be populated in the session_position_details field when targeting_type is `TARGETING_TYPE_SESSION_POSITION`. # Session position details. This field will be populated when the targeting_type is `TARGETING_TYPE_SESSION_POSITION`.
            &quot;sessionPosition&quot;: &quot;A String&quot;, # The position where the ad will show in a session.
          },
          &quot;subExchangeDetails&quot;: { # Details for assigned sub-exchange targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`. # Sub-exchange details. This field will be populated when the targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`.
          },
          &quot;targetingType&quot;: &quot;A String&quot;, # Output only. Identifies the type of this assigned targeting option.
          &quot;thirdPartyVerifierDetails&quot;: { # Assigned third party verifier targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. # Third party verification details. This field will be populated when the targeting_type is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
            &quot;adloox&quot;: { # Details of Scope3 (previously known as Adloox) brand safety settings. # Third party brand verifier -- Scope3 (previously known as Adloox).
              &quot;excludedAdlooxCategories&quot;: [ # Scope3 categories to exclude.
                &quot;A String&quot;,
              ],
            },
            &quot;doubleVerify&quot;: { # Details of DoubleVerify settings. # Third party brand verifier -- DoubleVerify.
              &quot;appStarRating&quot;: { # Details of DoubleVerify star ratings settings. # Avoid bidding on apps with the star ratings.
                &quot;avoidInsufficientStarRating&quot;: True or False, # Avoid bidding on apps with insufficient star ratings.
                &quot;avoidedStarRating&quot;: &quot;A String&quot;, # Avoid bidding on apps with the star ratings.
              },
              &quot;avoidedAgeRatings&quot;: [ # Avoid bidding on apps with the age rating.
                &quot;A String&quot;,
              ],
              &quot;brandSafetyCategories&quot;: { # Settings for brand safety controls. # DV Brand Safety Controls.
                &quot;avoidUnknownBrandSafetyCategory&quot;: True or False, # Unknown or unrateable.
                &quot;avoidedHighSeverityCategories&quot;: [ # Brand safety high severity avoidance categories.
                  &quot;A String&quot;,
                ],
                &quot;avoidedMediumSeverityCategories&quot;: [ # Brand safety medium severity avoidance categories.
                  &quot;A String&quot;,
                ],
              },
              &quot;customSegmentId&quot;: &quot;A String&quot;, # The custom segment ID provided by DoubleVerify. The ID must start with &quot;51&quot; and consist of eight digits. Custom segment ID cannot be specified along with any of the following fields: * brand_safety_categories * avoided_age_ratings * app_star_rating * fraud_invalid_traffic
              &quot;displayViewability&quot;: { # Details of DoubleVerify display viewability settings. # Display viewability settings (applicable to display line items only).
                &quot;iab&quot;: &quot;A String&quot;, # Target web and app inventory to maximize IAB viewable rate.
                &quot;viewableDuring&quot;: &quot;A String&quot;, # Target web and app inventory to maximize 100% viewable duration.
              },
              &quot;fraudInvalidTraffic&quot;: { # DoubleVerify Fraud &amp; Invalid Traffic settings. # Avoid Sites and Apps with historical Fraud &amp; IVT Rates.
                &quot;avoidInsufficientOption&quot;: True or False, # Insufficient Historical Fraud &amp; IVT Stats.
                &quot;avoidedFraudOption&quot;: &quot;A String&quot;, # Avoid Sites and Apps with historical Fraud &amp; IVT.
              },
              &quot;videoViewability&quot;: { # Details of DoubleVerify video viewability settings. # Video viewability settings (applicable to video line items only).
                &quot;playerImpressionRate&quot;: &quot;A String&quot;, # Target inventory to maximize impressions with 400x300 or greater player size.
                &quot;videoIab&quot;: &quot;A String&quot;, # Target web inventory to maximize IAB viewable rate.
                &quot;videoViewableRate&quot;: &quot;A String&quot;, # Target web inventory to maximize fully viewable rate.
              },
            },
            &quot;integralAdScience&quot;: { # Details of Integral Ad Science settings. # Third party brand verifier -- Integral Ad Science.
              &quot;customSegmentId&quot;: [ # The custom segment ID provided by Integral Ad Science. The ID must be between `1000001` and `1999999` or `3000001` and `3999999`, inclusive.
                &quot;A String&quot;,
              ],
              &quot;displayViewability&quot;: &quot;A String&quot;, # Display Viewability section (applicable to display line items only).
              &quot;excludeUnrateable&quot;: True or False, # Brand Safety - **Unrateable**.
              &quot;excludedAdFraudRisk&quot;: &quot;A String&quot;, # Ad Fraud settings.
              &quot;excludedAdultRisk&quot;: &quot;A String&quot;, # Brand Safety - **Adult content**.
              &quot;excludedAlcoholRisk&quot;: &quot;A String&quot;, # Brand Safety - **Alcohol**.
              &quot;excludedDrugsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Drugs**.
              &quot;excludedGamblingRisk&quot;: &quot;A String&quot;, # Brand Safety - **Gambling**.
              &quot;excludedHateSpeechRisk&quot;: &quot;A String&quot;, # Brand Safety - **Hate speech**.
              &quot;excludedIllegalDownloadsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Illegal downloads**.
              &quot;excludedOffensiveLanguageRisk&quot;: &quot;A String&quot;, # Brand Safety - **Offensive language**.
              &quot;excludedViolenceRisk&quot;: &quot;A String&quot;, # Brand Safety - **Violence**.
              &quot;traqScoreOption&quot;: &quot;A String&quot;, # True advertising quality (applicable to Display line items only).
              &quot;videoViewability&quot;: &quot;A String&quot;, # Video Viewability Section (applicable to video line items only).
            },
          },
          &quot;urlDetails&quot;: { # Details for assigned URL targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_URL`. # URL details. This field will be populated when the targeting_type is `TARGETING_TYPE_URL`.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;url&quot;: &quot;A String&quot;, # Required. The URL, for example `example.com`. DV360 supports two levels of subdirectory targeting, for example `www.example.com/one-subdirectory-level/second-level`, and five levels of subdomain targeting, for example `five.four.three.two.one.example.com`.
          },
          &quot;userRewardedContentDetails&quot;: { # User rewarded content targeting option details. This will be populated in the user_rewarded_content_details field when targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`. # User rewarded content details. This field will be populated when the targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`.
            &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`.
            &quot;userRewardedContent&quot;: &quot;A String&quot;, # Output only. User rewarded content status for video ads.
          },
          &quot;videoPlayerSizeDetails&quot;: { # Video player size targeting option details. This will be populated in the video_player_size_details field when targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. Explicitly targeting all options is not supported. Remove all video player size targeting options to achieve this effect. # Video player size details. This field will be populated when the targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
            &quot;videoPlayerSize&quot;: &quot;A String&quot;, # Required. The video player size.
          },
          &quot;viewabilityDetails&quot;: { # Assigned viewability targeting option details. This will be populated in the viewability_details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_VIEWABILITY`. # Viewability details. This field will be populated when the targeting_type is `TARGETING_TYPE_VIEWABILITY`. You can only target one viewability option per resource.
            &quot;viewability&quot;: &quot;A String&quot;, # Required. The predicted viewability percentage.
          },
          &quot;youtubeChannelDetails&quot;: { # Details for YouTube channel assigned targeting option. This will be populated in the youtube_channel_details field when targeting_type is `TARGETING_TYPE_YOUTUBE_CHANNEL`. # YouTube channel details. This field will be populated when the targeting_type is `TARGETING_TYPE_YOUTUBE_CHANNEL`.
            &quot;channelId&quot;: &quot;A String&quot;, # The YouTube uploader channel id or the channel code of a YouTube channel.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          },
          &quot;youtubeVideoDetails&quot;: { # Details for YouTube video assigned targeting option. This will be populated in the youtube_video_details field when targeting_type is `TARGETING_TYPE_YOUTUBE_VIDEO`. # YouTube video details. This field will be populated when the targeting_type is `TARGETING_TYPE_YOUTUBE_VIDEO`.
            &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
            &quot;videoId&quot;: &quot;A String&quot;, # YouTube video id as it appears on the YouTube watch page.
          },
        },
      ],
      &quot;targetingType&quot;: &quot;A String&quot;, # Required. Identifies the type of this assigned targeting option.
    },
  ],
  &quot;deleteRequests&quot;: [ # The assigned targeting options to delete in batch, specified as a list of DeleteAssignedTargetingOptionsRequest. Supported targeting types include: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_APP` * `TARGETING_TYPE_APP_CATEGORY` * `TARGETING_TYPE_AUDIENCE_GROUP` * `TARGETING_TYPE_AUDIO_CONTENT_TYPE` * `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` * `TARGETING_TYPE_BROWSER` * `TARGETING_TYPE_BUSINESS_CHAIN` * `TARGETING_TYPE_CARRIER_AND_ISP` * `TARGETING_TYPE_CATEGORY` * `TARGETING_TYPE_CHANNEL` * `TARGETING_TYPE_CONTENT_DURATION` * `TARGETING_TYPE_CONTENT_GENRE` * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_STREAM_TYPE` * `TARGETING_TYPE_DAY_AND_TIME` * `TARGETING_TYPE_DEVICE_MAKE_MODEL` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_GEO_REGION` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_INVENTORY_SOURCE` * `TARGETING_TYPE_INVENTORY_SOURCE_GROUP` * `TARGETING_TYPE_KEYWORD` * `TARGETING_TYPE_LANGUAGE` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_ON_SCREEN_POSITION` * `TARGETING_TYPE_OPERATING_SYSTEM` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_POI` * `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` * `TARGETING_TYPE_REGIONAL_LOCATION_LIST` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_SUB_EXCHANGE` * `TARGETING_TYPE_THIRD_PARTY_VERIFIER` * `TARGETING_TYPE_URL` * `TARGETING_TYPE_USER_REWARDED_CONTENT` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY`
    { # A request listing which assigned targeting options of a given targeting type should be deleted.
      &quot;assignedTargetingOptionIds&quot;: [ # Required. The assigned targeting option IDs to delete.
        &quot;A String&quot;,
      ],
      &quot;targetingType&quot;: &quot;A String&quot;, # Required. Identifies the type of this assigned targeting option.
    },
  ],
  &quot;lineItemIds&quot;: [ # Required. The ID of the line items whose targeting is being updated.
    &quot;A String&quot;,
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;errors&quot;: [ # The error information for each line item that failed to update.
    { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
        },
      ],
      &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    },
  ],
  &quot;failedLineItemIds&quot;: [ # Output only. The IDs of the line items which failed.
    &quot;A String&quot;,
  ],
  &quot;updatedLineItemIds&quot;: [ # Output only. The IDs of the line items which successfully updated.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="bulkListAssignedTargetingOptions">bulkListAssignedTargetingOptions(advertiserId, filter=None, lineItemIds=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists assigned targeting options for multiple line items across targeting types.

Args:
  advertiserId: string, Required. The ID of the advertiser the line items belongs to. (required)
  filter: string, Allows filtering by assigned targeting option fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by the logical operator `OR` on the same field. * A restriction has the form of `{field} {operator} {value}`. * All fields must use the `EQUALS (=)` operator. Supported fields: * `targetingType` * `inheritance` Examples: * `AssignedTargetingOption` resources of targeting type `TARGETING_TYPE_PROXIMITY_LOCATION_LIST` or `TARGETING_TYPE_CHANNEL`: `targetingType=&quot;TARGETING_TYPE_PROXIMITY_LOCATION_LIST&quot; OR targetingType=&quot;TARGETING_TYPE_CHANNEL&quot;` * `AssignedTargetingOption` resources with inheritance status of `NOT_INHERITED` or `INHERITED_FROM_PARTNER`: `inheritance=&quot;NOT_INHERITED&quot; OR inheritance=&quot;INHERITED_FROM_PARTNER&quot;` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.
  lineItemIds: string, Required. The IDs of the line items to list assigned targeting options for. (repeated)
  orderBy: string, Field by which to sort the list. Acceptable values are: * `lineItemId` (default) * `assignedTargetingOption.targetingType` The default sorting order is ascending. To specify descending order for a field, a suffix &quot;desc&quot; should be added to the field name. Example: `targetingType desc`.
  pageSize: integer, Requested page size. The size must be an integer between `1` and `5000`. If unspecified, the default is `5000`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
  pageToken: string, A token that lets the client fetch the next page of results. Typically, this is the value of next_page_token returned from the previous call to the `BulkListAssignedTargetingOptions` method. If not specified, the first page of results will be returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;lineItemAssignedTargetingOptions&quot;: [ # The list of wrapper objects, each providing an assigned targeting option and the line item it is assigned to. This list will be absent if empty.
    { # Wrapper object associating an assigned_targeting_option resource and the line item it is assigned to.
      &quot;assignedTargetingOption&quot;: { # A single assigned targeting option, which defines the state of a targeting option for an entity with targeting settings. # The assigned targeting option resource.
        &quot;ageRangeDetails&quot;: { # Represents a targetable age range. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AGE_RANGE`. # Age range details. This field will be populated when the targeting_type is `TARGETING_TYPE_AGE_RANGE`.
          &quot;ageRange&quot;: &quot;A String&quot;, # Required. The age range of an audience. We only support targeting a continuous age range of an audience. Thus, the age range represented in this field can be 1) targeted solely, or, 2) part of a larger continuous age range. The reach of a continuous age range targeting can be expanded by also targeting an audience of an unknown age.
        },
        &quot;appCategoryDetails&quot;: { # Details for assigned app category targeting option. This will be populated in the app_category_details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_APP_CATEGORY`. # App category details. This field will be populated when the targeting_type is `TARGETING_TYPE_APP_CATEGORY`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app category.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_APP_CATEGORY`.
        },
        &quot;appDetails&quot;: { # Details for assigned app targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_APP`. # App details. This field will be populated when the targeting_type is `TARGETING_TYPE_APP`.
          &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app. Android&#x27;s Play store app uses bundle ID, for example `com.google.android.gm`. Apple&#x27;s App store app ID uses 9 digit string, for example `422689480`.
          &quot;appPlatform&quot;: &quot;A String&quot;, # Indicates the platform of the targeted app. If this field is not specified, the app platform will be assumed to be mobile (i.e., Android or iOS), and we will derive the appropriate mobile platform from the app ID.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the app.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
        },
        &quot;assignedTargetingOptionId&quot;: &quot;A String&quot;, # Output only. The unique ID of the assigned targeting option. The ID is only unique within a given resource and targeting type. It may be reused in other contexts.
        &quot;assignedTargetingOptionIdAlias&quot;: &quot;A String&quot;, # Output only. An alias for the assigned_targeting_option_id. This value can be used in place of `assignedTargetingOptionId` when retrieving or deleting existing targeting. This field will only be supported for all assigned targeting options of the following targeting types: * `TARGETING_TYPE_AGE_RANGE` * `TARGETING_TYPE_DEVICE_TYPE` * `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION` * `TARGETING_TYPE_ENVIRONMENT` * `TARGETING_TYPE_EXCHANGE` * `TARGETING_TYPE_GENDER` * `TARGETING_TYPE_HOUSEHOLD_INCOME` * `TARGETING_TYPE_NATIVE_CONTENT_POSITION` * `TARGETING_TYPE_OMID` * `TARGETING_TYPE_PARENTAL_STATUS` * `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION` * `TARGETING_TYPE_VIDEO_PLAYER_SIZE` * `TARGETING_TYPE_VIEWABILITY` This field is also supported for line item assigned targeting options of the following targeting types: * `TARGETING_TYPE_CONTENT_INSTREAM_POSITION` * `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`
        &quot;audienceGroupDetails&quot;: { # Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups. # Audience targeting details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. You can only target one audience group option per resource.
          &quot;excludedGoogleAudienceGroup&quot;: { # Details of Google audience group. All Google audience targeting settings are logically ‘OR’ of each other. # Optional. The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other.
            &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group. Repeated settings with the same id will be ignored.
              { # Details of Google audience targeting setting.
                &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting. This id is google_audience_id.
              },
            ],
          },
          &quot;includedCombinedAudienceGroup&quot;: { # Details of combined audience group. All combined audience targeting settings are logically ‘OR’ of each other. # Optional. The combined audience ids of the included combined audience group. Contains combined audience ids only.
            &quot;settings&quot;: [ # Required. All combined audience targeting settings in combined audience group. Repeated settings with the same id will be ignored. The number of combined audience settings should be no more than five, error will be thrown otherwise.
              { # Details of combined audience targeting setting.
                &quot;combinedAudienceId&quot;: &quot;A String&quot;, # Required. Combined audience id of combined audience targeting setting. This id is combined_audience_id.
              },
            ],
          },
          &quot;includedCustomListGroup&quot;: { # Details of custom list group. All custom list targeting settings are logically ‘OR’ of each other. # Optional. The custom list ids of the included custom list group. Contains custom list ids only.
            &quot;settings&quot;: [ # Required. All custom list targeting settings in custom list group. Repeated settings with the same id will be ignored.
              { # Details of custom list targeting setting.
                &quot;customListId&quot;: &quot;A String&quot;, # Required. Custom id of custom list targeting setting. This id is custom_list_id.
              },
            ],
          },
          &quot;includedGoogleAudienceGroup&quot;: { # Details of Google audience group. All Google audience targeting settings are logically ‘OR’ of each other. # Optional. The Google audience ids of the included Google audience group. Contains Google audience ids only.
            &quot;settings&quot;: [ # Required. All Google audience targeting settings in Google audience group. Repeated settings with the same id will be ignored.
              { # Details of Google audience targeting setting.
                &quot;googleAudienceId&quot;: &quot;A String&quot;, # Required. Google audience id of the Google audience targeting setting. This id is google_audience_id.
              },
            ],
          },
        },
        &quot;audioContentTypeDetails&quot;: { # Details for audio content type assigned targeting option. This will be populated in the audio_content_type_details field when targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`. Explicitly targeting all options is not supported. Remove all audio content type targeting options to achieve this effect. # Audio content type details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUDIO_CONTENT_TYPE`.
          &quot;audioContentType&quot;: &quot;A String&quot;, # Required. The audio content type.
        },
        &quot;authorizedSellerStatusDetails&quot;: { # Represents an assigned authorized seller status. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. If a resource does not have an `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS` assigned targeting option, it is using the &quot;Authorized Direct Sellers and Resellers&quot; option. # Authorized seller status details. This field will be populated when the targeting_type is `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`. You can only target one authorized seller status option per resource. If a resource doesn&#x27;t have an authorized seller status option, all authorized sellers indicated as DIRECT or RESELLER in the ads.txt file are targeted by default.
          &quot;authorizedSellerStatus&quot;: &quot;A String&quot;, # Output only. The authorized seller status to target.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_AUTHORIZED_SELLER_STATUS`.
        },
        &quot;browserDetails&quot;: { # Details for assigned browser targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_BROWSER`. # Browser details. This field will be populated when the targeting_type is `TARGETING_TYPE_BROWSER`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the browser.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned browser targeting options on the same resource must have the same value for this field.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_BROWSER`.
        },
        &quot;businessChainDetails&quot;: { # Details for assigned Business chain targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`. # Business chain details. This field will be populated when the targeting_type is `TARGETING_TYPE_BUSINESS_CHAIN`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of a business chain, e.g. &quot;KFC&quot;, &quot;Chase Bank&quot;.
          &quot;proximityRadiusAmount&quot;: 3.14, # Required. The radius of the area around the business chain that will be targeted. The units of the radius are specified by proximity_radius_unit. Must be 1 to 800 if unit is `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`. The minimum increment for both cases is 0.1. Inputs will be rounded to the nearest acceptable value if it is too granular, e.g. 15.57 will become 15.6.
          &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. The unit of distance by which the targeting radius is measured.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_BUSINESS_CHAIN`. Accepted business chain targeting option IDs can be retrieved using SearchTargetingOptions.
        },
        &quot;carrierAndIspDetails&quot;: { # Details for assigned carrier and ISP targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`. # Carrier and ISP details. This field will be populated when the targeting_type is `TARGETING_TYPE_CARRIER_AND_ISP`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the carrier or ISP.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned carrier and ISP targeting options on the same resource must have the same value for this field.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_CARRIER_AND_ISP`.
        },
        &quot;categoryDetails&quot;: { # Assigned category targeting option details. This will be populated in the category_details field when targeting_type is `TARGETING_TYPE_CATEGORY`. # Category details. This field will be populated when the targeting_type is `TARGETING_TYPE_CATEGORY`. Targeting a category will also target its subcategories. If a category is excluded from targeting and a subcategory is included, the exclusion will take precedence.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the category.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CATEGORY`.
        },
        &quot;channelDetails&quot;: { # Details for assigned channel targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_CHANNEL`. # Channel details. This field will be populated when the targeting_type is `TARGETING_TYPE_CHANNEL`.
          &quot;channelId&quot;: &quot;A String&quot;, # Required. ID of the channel. Should refer to the channel ID field on a [Partner-owned channel](partners.channels#Channel.FIELDS.channel_id) or [advertiser-owned channel](advertisers.channels#Channel.FIELDS.channel_id) resource.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. For advertiser level assigned targeting option, this field must be true.
        },
        &quot;contentDurationDetails&quot;: { # Details for content duration assigned targeting option. This will be populated in the content_duration_details field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`. Explicitly targeting all options is not supported. Remove all content duration targeting options to achieve this effect. # Content duration details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.
          &quot;contentDuration&quot;: &quot;A String&quot;, # Output only. The content duration.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_DURATION`.
        },
        &quot;contentGenreDetails&quot;: { # Details for content genre assigned targeting option. This will be populated in the content_genre_details field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`. Explicitly targeting all options is not supported. Remove all content genre targeting options to achieve this effect. # Content genre details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the content genre.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_GENRE`.
        },
        &quot;contentInstreamPositionDetails&quot;: { # Assigned content instream position targeting option details. This will be populated in the content_instream_position_details field when targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`. # Content instream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_INSTREAM_POSITION`.
          &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`. * `AD_TYPE_AUDIO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_AUDIO_DEFAULT`.
          &quot;contentInstreamPosition&quot;: &quot;A String&quot;, # Required. The content instream position for video or audio ads.
        },
        &quot;contentOutstreamPositionDetails&quot;: { # Assigned content outstream position targeting option details. This will be populated in the content_outstream_position_details field when targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`. # Content outstream position details. This field will be populated when the targeting_type is `TARGETING_TYPE_CONTENT_OUTSTREAM_POSITION`.
          &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
          &quot;contentOutstreamPosition&quot;: &quot;A String&quot;, # Required. The content outstream position.
        },
        &quot;contentStreamTypeDetails&quot;: { # Details for content stream type assigned targeting option. This will be populated in the content_stream_type_details field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`. Explicitly targeting all options is not supported. Remove all content stream type targeting options to achieve this effect. # Content duration details. This field will be populated when the TargetingType is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.
          &quot;contentStreamType&quot;: &quot;A String&quot;, # Output only. The content stream type.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_CONTENT_STREAM_TYPE`.
        },
        &quot;dayAndTimeDetails&quot;: { # Representation of a segment of time defined on a specific day of the week and with a start and end time. The time represented by `start_hour` must be before the time represented by `end_hour`. # Day and time details. This field will be populated when the targeting_type is `TARGETING_TYPE_DAY_AND_TIME`.
          &quot;dayOfWeek&quot;: &quot;A String&quot;, # Required. The day of the week for this day and time targeting setting.
          &quot;endHour&quot;: 42, # Required. The end hour for day and time targeting. Must be between 1 (1 hour after start of day) and 24 (end of day).
          &quot;startHour&quot;: 42, # Required. The start hour for day and time targeting. Must be between 0 (start of day) and 23 (1 hour before end of day).
          &quot;timeZoneResolution&quot;: &quot;A String&quot;, # Required. The mechanism used to determine which timezone to use for this day and time targeting setting.
        },
        &quot;deviceMakeModelDetails&quot;: { # Assigned device make and model targeting option details. This will be populated in the device_make_model_details field when targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`. # Device make and model details. This field will be populated when the targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the device make and model.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_DEVICE_MAKE_MODEL`.
        },
        &quot;deviceTypeDetails&quot;: { # Targeting details for device type. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_DEVICE_TYPE`. # Device Type details. This field will be populated when the targeting_type is `TARGETING_TYPE_DEVICE_TYPE`.
          &quot;deviceType&quot;: &quot;A String&quot;, # Required. The display name of the device type.
          &quot;youtubeAndPartnersBidMultiplier&quot;: 3.14, # Output only. Bid multiplier allows you to show your ads more or less frequently based on the device type. It will apply a multiplier on the original bid price. When this field is 0, it indicates this field is not applicable instead of multiplying 0 on the original bid price. For example, if the bid price without multiplier is $10.0 and the multiplier is 1.5 for Tablet, the resulting bid price for Tablet will be $15.0. Only applicable to YouTube and Partners line items.
        },
        &quot;digitalContentLabelExclusionDetails&quot;: { # Targeting details for digital content label. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. # Digital content label details. This field will be populated when the targeting_type is `TARGETING_TYPE_DIGITAL_CONTENT_LABEL_EXCLUSION`. Digital content labels are targeting exclusions. Advertiser level digital content label exclusions, if set, are always applied in serving (even though they aren&#x27;t visible in resource settings). Resource settings can exclude content labels in addition to advertiser exclusions, but can&#x27;t override them. A line item won&#x27;t serve if all the digital content labels are excluded.
          &quot;excludedContentRatingTier&quot;: &quot;A String&quot;, # Required. The display name of the digital content label rating tier to be EXCLUDED.
        },
        &quot;environmentDetails&quot;: { # Assigned environment targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_ENVIRONMENT`. # Environment details. This field will be populated when the targeting_type is `TARGETING_TYPE_ENVIRONMENT`.
          &quot;environment&quot;: &quot;A String&quot;, # Required. The serving environment.
        },
        &quot;exchangeDetails&quot;: { # Details for assigned exchange targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_EXCHANGE`. # Exchange details. This field will be populated when the targeting_type is `TARGETING_TYPE_EXCHANGE`.
          &quot;exchange&quot;: &quot;A String&quot;, # Required. The enum value for the exchange.
        },
        &quot;genderDetails&quot;: { # Details for assigned gender targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GENDER`. # Gender details. This field will be populated when the targeting_type is `TARGETING_TYPE_GENDER`.
          &quot;gender&quot;: &quot;A String&quot;, # Required. The gender of the audience.
        },
        &quot;geoRegionDetails&quot;: { # Details for assigned geographic region targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GEO_REGION`. # Geographic region details. This field will be populated when the targeting_type is `TARGETING_TYPE_GEO_REGION`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the geographic region (e.g., &quot;Ontario, Canada&quot;).
          &quot;geoRegionType&quot;: &quot;A String&quot;, # Output only. The type of geographic region targeting.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_GEO_REGION`.
        },
        &quot;householdIncomeDetails&quot;: { # Details for assigned household income targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`. # Household income details. This field will be populated when the targeting_type is `TARGETING_TYPE_HOUSEHOLD_INCOME`.
          &quot;householdIncome&quot;: &quot;A String&quot;, # Required. The household income of the audience.
        },
        &quot;inheritance&quot;: &quot;A String&quot;, # Output only. The inheritance status of the assigned targeting option.
        &quot;inventorySourceDetails&quot;: { # Targeting details for inventory source. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`. # Inventory source details. This field will be populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE`.
          &quot;inventorySourceId&quot;: &quot;A String&quot;, # Required. ID of the inventory source. Should refer to the inventory_source_id field of an InventorySource resource.
        },
        &quot;inventorySourceGroupDetails&quot;: { # Targeting details for inventory source group. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`. # Inventory source group details. This field will be populated when the targeting_type is `TARGETING_TYPE_INVENTORY_SOURCE_GROUP`.
          &quot;inventorySourceGroupId&quot;: &quot;A String&quot;, # Required. ID of the inventory source group. Should refer to the inventory_source_group_id field of an InventorySourceGroup resource.
        },
        &quot;keywordDetails&quot;: { # Details for assigned keyword targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_KEYWORD`. # Keyword details. This field will be populated when the targeting_type is `TARGETING_TYPE_KEYWORD`. A maximum of 5000 direct negative keywords can be assigned to a resource. No limit on number of positive keywords that can be assigned.
          &quot;keyword&quot;: &quot;A String&quot;, # Required. The keyword, for example `car insurance`. Positive keyword cannot be offensive word. Must be UTF-8 encoded with a maximum size of 255 bytes. Maximum number of characters is 80. Maximum number of words is 10.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
        },
        &quot;languageDetails&quot;: { # Details for assigned language targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_LANGUAGE`. # Language details. This field will be populated when the targeting_type is `TARGETING_TYPE_LANGUAGE`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the language (e.g., &quot;French&quot;).
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted. All assigned language targeting options on the same resource must have the same value for this field.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_LANGUAGE`.
        },
        &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name for this assigned targeting option.
        &quot;nativeContentPositionDetails&quot;: { # Details for native content position assigned targeting option. This will be populated in the native_content_position_details field when targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`. Explicitly targeting all options is not supported. Remove all native content position targeting options to achieve this effect. # Native content position details. This field will be populated when the targeting_type is `TARGETING_TYPE_NATIVE_CONTENT_POSITION`.
          &quot;contentPosition&quot;: &quot;A String&quot;, # Required. The content position.
        },
        &quot;negativeKeywordListDetails&quot;: { # Targeting details for negative keyword list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. # Keyword details. This field will be populated when the targeting_type is `TARGETING_TYPE_NEGATIVE_KEYWORD_LIST`. A maximum of 4 negative keyword lists can be assigned to a resource.
          &quot;negativeKeywordListId&quot;: &quot;A String&quot;, # Required. ID of the negative keyword list. Should refer to the negative_keyword_list_id field of a NegativeKeywordList resource.
        },
        &quot;omidDetails&quot;: { # Represents a targetable Open Measurement enabled inventory type. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_OMID`. # Open Measurement enabled inventory details. This field will be populated when the targeting_type is `TARGETING_TYPE_OMID`.
          &quot;omid&quot;: &quot;A String&quot;, # Required. The type of Open Measurement enabled inventory.
        },
        &quot;onScreenPositionDetails&quot;: { # On screen position targeting option details. This will be populated in the on_screen_position_details field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`. # On screen position details. This field will be populated when the targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`.
          &quot;adType&quot;: &quot;A String&quot;, # Output only. The ad type to target. Only applicable to insertion order targeting and new line items supporting the specified ad type will inherit this targeting option by default. Possible values are: * `AD_TYPE_DISPLAY`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_DISPLAY_DEFAULT`. * `AD_TYPE_VIDEO`, the setting will be inherited by new line item when line_item_type is `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
          &quot;onScreenPosition&quot;: &quot;A String&quot;, # Output only. The on screen position.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_ON_SCREEN_POSITION`.
        },
        &quot;operatingSystemDetails&quot;: { # Assigned operating system targeting option details. This will be populated in the operating_system_details field when targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`. # Operating system details. This field will be populated when the targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of the operating system.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting option ID populated in targeting_option_id field when targeting_type is `TARGETING_TYPE_OPERATING_SYSTEM`.
        },
        &quot;parentalStatusDetails&quot;: { # Details for assigned parental status targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`. # Parental status details. This field will be populated when the targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`.
          &quot;parentalStatus&quot;: &quot;A String&quot;, # Required. The parental status of the audience.
        },
        &quot;poiDetails&quot;: { # Details for assigned POI targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_POI`. # POI details. This field will be populated when the targeting_type is `TARGETING_TYPE_POI`.
          &quot;displayName&quot;: &quot;A String&quot;, # Output only. The display name of a POI, e.g. &quot;Times Square&quot;, &quot;Space Needle&quot;, followed by its full address if available.
          &quot;latitude&quot;: 3.14, # Output only. Latitude of the POI rounding to 6th decimal place.
          &quot;longitude&quot;: 3.14, # Output only. Longitude of the POI rounding to 6th decimal place.
          &quot;proximityRadiusAmount&quot;: 3.14, # Required. The radius of the area around the POI that will be targeted. The units of the radius are specified by proximity_radius_unit. Must be 1 to 800 if unit is `DISTANCE_UNIT_KILOMETERS` and 1 to 500 if unit is `DISTANCE_UNIT_MILES`.
          &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. The unit of distance by which the targeting radius is measured.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_POI`. Accepted POI targeting option IDs can be retrieved using `targetingTypes.targetingOptions.search`. If targeting a specific latitude/longitude coordinate removed from an address or POI name, you can generate the necessary targeting option ID by rounding the desired coordinate values to the 6th decimal place, removing the decimals, and concatenating the string values separated by a semicolon. For example, you can target the latitude/longitude pair of 40.7414691, -74.003387 using the targeting option ID &quot;40741469;-74003387&quot;. **Upon** **creation, this field value will be updated to append a semicolon and** **alphanumerical hash value if only latitude/longitude coordinates are** **provided.**
        },
        &quot;proximityLocationListDetails&quot;: { # Targeting details for proximity location list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`. # Proximity location list details. This field will be populated when the targeting_type is `TARGETING_TYPE_PROXIMITY_LOCATION_LIST`.
          &quot;proximityLocationListId&quot;: &quot;A String&quot;, # Required. ID of the proximity location list. Should refer to the location_list_id field of a LocationList resource whose type is `TARGETING_LOCATION_TYPE_PROXIMITY`.
          &quot;proximityRadius&quot;: 3.14, # Required. Radius expressed in the distance units set in proximity_radius_unit. This represents the size of the area around a chosen location that will be targeted. Radius should be between 1 and 500 miles or 800 kilometers.
          &quot;proximityRadiusUnit&quot;: &quot;A String&quot;, # Required. Radius distance units.
        },
        &quot;regionalLocationListDetails&quot;: { # Targeting details for regional location list. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`. # Regional location list details. This field will be populated when the targeting_type is `TARGETING_TYPE_REGIONAL_LOCATION_LIST`.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;regionalLocationListId&quot;: &quot;A String&quot;, # Required. ID of the regional location list. Should refer to the location_list_id field of a LocationList resource whose type is `TARGETING_LOCATION_TYPE_REGIONAL`.
        },
        &quot;sensitiveCategoryExclusionDetails&quot;: { # Targeting details for sensitive category. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. # Sensitive category details. This field will be populated when the targeting_type is `TARGETING_TYPE_SENSITIVE_CATEGORY_EXCLUSION`. Sensitive categories are targeting exclusions. Advertiser level sensitive category exclusions, if set, are always applied in serving (even though they aren&#x27;t visible in resource settings). Resource settings can exclude sensitive categories in addition to advertiser exclusions, but can&#x27;t override them.
          &quot;excludedSensitiveCategory&quot;: &quot;A String&quot;, # Required. An enum for the DV360 Sensitive category content classified to be EXCLUDED.
        },
        &quot;sessionPositionDetails&quot;: { # Details for session position assigned targeting option. This will be populated in the session_position_details field when targeting_type is `TARGETING_TYPE_SESSION_POSITION`. # Session position details. This field will be populated when the targeting_type is `TARGETING_TYPE_SESSION_POSITION`.
          &quot;sessionPosition&quot;: &quot;A String&quot;, # The position where the ad will show in a session.
        },
        &quot;subExchangeDetails&quot;: { # Details for assigned sub-exchange targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`. # Sub-exchange details. This field will be populated when the targeting_type is `TARGETING_TYPE_SUB_EXCHANGE`.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id of a TargetingOption of type `TARGETING_TYPE_SUB_EXCHANGE`.
        },
        &quot;targetingType&quot;: &quot;A String&quot;, # Output only. Identifies the type of this assigned targeting option.
        &quot;thirdPartyVerifierDetails&quot;: { # Assigned third party verifier targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`. # Third party verification details. This field will be populated when the targeting_type is `TARGETING_TYPE_THIRD_PARTY_VERIFIER`.
          &quot;adloox&quot;: { # Details of Scope3 (previously known as Adloox) brand safety settings. # Third party brand verifier -- Scope3 (previously known as Adloox).
            &quot;excludedAdlooxCategories&quot;: [ # Scope3 categories to exclude.
              &quot;A String&quot;,
            ],
          },
          &quot;doubleVerify&quot;: { # Details of DoubleVerify settings. # Third party brand verifier -- DoubleVerify.
            &quot;appStarRating&quot;: { # Details of DoubleVerify star ratings settings. # Avoid bidding on apps with the star ratings.
              &quot;avoidInsufficientStarRating&quot;: True or False, # Avoid bidding on apps with insufficient star ratings.
              &quot;avoidedStarRating&quot;: &quot;A String&quot;, # Avoid bidding on apps with the star ratings.
            },
            &quot;avoidedAgeRatings&quot;: [ # Avoid bidding on apps with the age rating.
              &quot;A String&quot;,
            ],
            &quot;brandSafetyCategories&quot;: { # Settings for brand safety controls. # DV Brand Safety Controls.
              &quot;avoidUnknownBrandSafetyCategory&quot;: True or False, # Unknown or unrateable.
              &quot;avoidedHighSeverityCategories&quot;: [ # Brand safety high severity avoidance categories.
                &quot;A String&quot;,
              ],
              &quot;avoidedMediumSeverityCategories&quot;: [ # Brand safety medium severity avoidance categories.
                &quot;A String&quot;,
              ],
            },
            &quot;customSegmentId&quot;: &quot;A String&quot;, # The custom segment ID provided by DoubleVerify. The ID must start with &quot;51&quot; and consist of eight digits. Custom segment ID cannot be specified along with any of the following fields: * brand_safety_categories * avoided_age_ratings * app_star_rating * fraud_invalid_traffic
            &quot;displayViewability&quot;: { # Details of DoubleVerify display viewability settings. # Display viewability settings (applicable to display line items only).
              &quot;iab&quot;: &quot;A String&quot;, # Target web and app inventory to maximize IAB viewable rate.
              &quot;viewableDuring&quot;: &quot;A String&quot;, # Target web and app inventory to maximize 100% viewable duration.
            },
            &quot;fraudInvalidTraffic&quot;: { # DoubleVerify Fraud &amp; Invalid Traffic settings. # Avoid Sites and Apps with historical Fraud &amp; IVT Rates.
              &quot;avoidInsufficientOption&quot;: True or False, # Insufficient Historical Fraud &amp; IVT Stats.
              &quot;avoidedFraudOption&quot;: &quot;A String&quot;, # Avoid Sites and Apps with historical Fraud &amp; IVT.
            },
            &quot;videoViewability&quot;: { # Details of DoubleVerify video viewability settings. # Video viewability settings (applicable to video line items only).
              &quot;playerImpressionRate&quot;: &quot;A String&quot;, # Target inventory to maximize impressions with 400x300 or greater player size.
              &quot;videoIab&quot;: &quot;A String&quot;, # Target web inventory to maximize IAB viewable rate.
              &quot;videoViewableRate&quot;: &quot;A String&quot;, # Target web inventory to maximize fully viewable rate.
            },
          },
          &quot;integralAdScience&quot;: { # Details of Integral Ad Science settings. # Third party brand verifier -- Integral Ad Science.
            &quot;customSegmentId&quot;: [ # The custom segment ID provided by Integral Ad Science. The ID must be between `1000001` and `1999999` or `3000001` and `3999999`, inclusive.
              &quot;A String&quot;,
            ],
            &quot;displayViewability&quot;: &quot;A String&quot;, # Display Viewability section (applicable to display line items only).
            &quot;excludeUnrateable&quot;: True or False, # Brand Safety - **Unrateable**.
            &quot;excludedAdFraudRisk&quot;: &quot;A String&quot;, # Ad Fraud settings.
            &quot;excludedAdultRisk&quot;: &quot;A String&quot;, # Brand Safety - **Adult content**.
            &quot;excludedAlcoholRisk&quot;: &quot;A String&quot;, # Brand Safety - **Alcohol**.
            &quot;excludedDrugsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Drugs**.
            &quot;excludedGamblingRisk&quot;: &quot;A String&quot;, # Brand Safety - **Gambling**.
            &quot;excludedHateSpeechRisk&quot;: &quot;A String&quot;, # Brand Safety - **Hate speech**.
            &quot;excludedIllegalDownloadsRisk&quot;: &quot;A String&quot;, # Brand Safety - **Illegal downloads**.
            &quot;excludedOffensiveLanguageRisk&quot;: &quot;A String&quot;, # Brand Safety - **Offensive language**.
            &quot;excludedViolenceRisk&quot;: &quot;A String&quot;, # Brand Safety - **Violence**.
            &quot;traqScoreOption&quot;: &quot;A String&quot;, # True advertising quality (applicable to Display line items only).
            &quot;videoViewability&quot;: &quot;A String&quot;, # Video Viewability Section (applicable to video line items only).
          },
        },
        &quot;urlDetails&quot;: { # Details for assigned URL targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_URL`. # URL details. This field will be populated when the targeting_type is `TARGETING_TYPE_URL`.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;url&quot;: &quot;A String&quot;, # Required. The URL, for example `example.com`. DV360 supports two levels of subdirectory targeting, for example `www.example.com/one-subdirectory-level/second-level`, and five levels of subdomain targeting, for example `five.four.three.two.one.example.com`.
        },
        &quot;userRewardedContentDetails&quot;: { # User rewarded content targeting option details. This will be populated in the user_rewarded_content_details field when targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`. # User rewarded content details. This field will be populated when the targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`.
          &quot;targetingOptionId&quot;: &quot;A String&quot;, # Required. The targeting_option_id field when targeting_type is `TARGETING_TYPE_USER_REWARDED_CONTENT`.
          &quot;userRewardedContent&quot;: &quot;A String&quot;, # Output only. User rewarded content status for video ads.
        },
        &quot;videoPlayerSizeDetails&quot;: { # Video player size targeting option details. This will be populated in the video_player_size_details field when targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`. Explicitly targeting all options is not supported. Remove all video player size targeting options to achieve this effect. # Video player size details. This field will be populated when the targeting_type is `TARGETING_TYPE_VIDEO_PLAYER_SIZE`.
          &quot;videoPlayerSize&quot;: &quot;A String&quot;, # Required. The video player size.
        },
        &quot;viewabilityDetails&quot;: { # Assigned viewability targeting option details. This will be populated in the viewability_details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_VIEWABILITY`. # Viewability details. This field will be populated when the targeting_type is `TARGETING_TYPE_VIEWABILITY`. You can only target one viewability option per resource.
          &quot;viewability&quot;: &quot;A String&quot;, # Required. The predicted viewability percentage.
        },
        &quot;youtubeChannelDetails&quot;: { # Details for YouTube channel assigned targeting option. This will be populated in the youtube_channel_details field when targeting_type is `TARGETING_TYPE_YOUTUBE_CHANNEL`. # YouTube channel details. This field will be populated when the targeting_type is `TARGETING_TYPE_YOUTUBE_CHANNEL`.
          &quot;channelId&quot;: &quot;A String&quot;, # The YouTube uploader channel id or the channel code of a YouTube channel.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
        },
        &quot;youtubeVideoDetails&quot;: { # Details for YouTube video assigned targeting option. This will be populated in the youtube_video_details field when targeting_type is `TARGETING_TYPE_YOUTUBE_VIDEO`. # YouTube video details. This field will be populated when the targeting_type is `TARGETING_TYPE_YOUTUBE_VIDEO`.
          &quot;negative&quot;: True or False, # Indicates if this option is being negatively targeted.
          &quot;videoId&quot;: &quot;A String&quot;, # YouTube video id as it appears on the YouTube watch page.
        },
      },
      &quot;lineItemId&quot;: &quot;A String&quot;, # The ID of the line item the assigned targeting option is assigned to.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying the next page of results. This value should be specified as the pageToken in a subsequent call to `BulkListAssignedTargetingOptions` to fetch the next page of results. This token will be absent if there are no more line_item_assigned_targeting_options to return.
}</pre>
</div>

<div class="method">
    <code class="details" id="bulkListAssignedTargetingOptions_next">bulkListAssignedTargetingOptions_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="bulkUpdate">bulkUpdate(advertiserId, body=None, x__xgafv=None)</code>
  <pre>Updates multiple line items. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * BulkEditAssignedTargetingOptions * UpdateLineItem * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube &amp; Partners line items cannot be created or updated using the API.

Args:
  advertiserId: string, Required. The ID of the advertiser this line item belongs to. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for LineItemService.BulkUpdateLineItems.
  &quot;lineItemIds&quot;: [ # Required. IDs of line items to update.
    &quot;A String&quot;,
  ],
  &quot;targetLineItem&quot;: { # A single line item. # Required. A line item object containing the fields to be updated and the new values to assign to all line items specified in line_item_ids.&quot;
    &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
    &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
      &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
        &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
      },
      &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
        &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
        &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
        &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
        &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
      },
      &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
        &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
        &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
        &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
        &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
      },
    },
    &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
      &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
      &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
      &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
    },
    &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
    &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
    &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
      &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
        { # Settings that control the behavior of a single Floodlight activity config.
          &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
          &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
          &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
        },
      ],
      &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
    },
    &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
      &quot;A String&quot;,
    ],
    &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
    &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
    &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
    &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.
      &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
        &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
          &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
          &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        },
        &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
          &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
          &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
          &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
        },
      },
      &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
    },
    &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
    &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
    &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
      &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
      &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
    },
    &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
    &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
    &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
      &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
      &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
      &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
      &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
    },
    &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
    &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
      &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
      &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
      &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
      &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
    },
    &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
      { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
        &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
        &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
        &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
        &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
        &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
      },
    ],
    &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
      &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
      &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
    },
    &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
    &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
      &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
      &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
    },
    &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
    &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
      &quot;A String&quot;,
    ],
    &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
      &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
        &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
        &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
        &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
        &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
      },
      &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
      &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
      &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
        &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
        &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
        &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
        &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
      },
      &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
      &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
      &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
        &quot;A String&quot;,
      ],
      &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
        &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
        &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
        &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
      },
      &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
        &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
          { # Settings that control how third-party measurement vendors are configured.
            &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
            &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
          },
        ],
        &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
          { # Settings that control how third-party measurement vendors are configured.
            &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
            &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
          },
        ],
        &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
          { # Settings that control how third-party measurement vendors are configured.
            &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
            &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
          },
        ],
        &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
          { # Settings that control how third-party measurement vendors are configured.
            &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
            &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
          },
        ],
      },
      &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
        &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
        &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
        &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
      },
      &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
        &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
        &quot;steps&quot;: [ # The steps of which the sequence consists.
          { # The detail of a single step in a VideoAdSequence.
            &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
            &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
            &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
            &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
          },
        ],
      },
      &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
        &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
        &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
        &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
        &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
        &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
      },
    },
  },
  &quot;updateMask&quot;: &quot;A String&quot;, # Required. A field mask identifying which fields to update. Only the following fields are currently supported: * entityStatus * containsEuPoliticalAds
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for LineItemService.BulkUpdateLineItems.
  &quot;errors&quot;: [ # Errors returned by line items that failed to update.
    { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
      &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
      &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
        {
          &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
        },
      ],
      &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
    },
  ],
  &quot;failedLineItemIds&quot;: [ # The IDs of line items that failed to update.
    &quot;A String&quot;,
  ],
  &quot;skippedLineItemIds&quot;: [ # The IDs of line items that are skipped for updates. For example, unnecessary mutates that will result in effectively no changes to line items will be skipped and corresponding line item IDs can be tracked here.
    &quot;A String&quot;,
  ],
  &quot;updatedLineItemIds&quot;: [ # The IDs of successfully updated line items.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(advertiserId, body=None, x__xgafv=None)</code>
  <pre>Creates a new line item. Returns the newly created line item if successful. YouTube &amp; Partners line items cannot be created or updated using the API.

Args:
  advertiserId: string, Output only. The unique ID of the advertiser the line item belongs to. (required)
  body: object, The request body.
    The object takes the form of:

{ # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(advertiserId, lineItemId, x__xgafv=None)</code>
  <pre>Deletes a line item. Returns error code `NOT_FOUND` if the line item does not exist. The line item should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it. YouTube &amp; Partners line items cannot be created or updated using the API.

Args:
  advertiserId: string, The ID of the advertiser this line item belongs to. (required)
  lineItemId: string, The ID of the line item to delete. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="duplicate">duplicate(advertiserId, lineItemId, body=None, x__xgafv=None)</code>
  <pre>Duplicates a line item. Returns the ID of the created line item if successful. YouTube &amp; Partners line items cannot be created or updated using the API. **This method regularly experiences high latency.** We recommend [increasing your default timeout](/display-video/api/guides/best-practices/timeouts#client_library_timeout) to avoid errors.

Args:
  advertiserId: string, Required. The ID of the advertiser this line item belongs to. (required)
  lineItemId: string, Required. The ID of the line item to duplicate. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for LineItemService.DuplicateLineItem.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;targetDisplayName&quot;: &quot;A String&quot;, # The display name of the new line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;duplicateLineItemId&quot;: &quot;A String&quot;, # The ID of the created line item.
}</pre>
</div>

<div class="method">
    <code class="details" id="generateDefault">generateDefault(advertiserId, body=None, x__xgafv=None)</code>
  <pre>Creates a new line item with settings (including targeting) inherited from the insertion order and an `ENTITY_STATUS_DRAFT` entity_status. Returns the newly created line item if successful. There are default values based on the three fields: * The insertion order&#x27;s insertion_order_type * The insertion order&#x27;s automation_type * The given line_item_type YouTube &amp; Partners line items cannot be created or updated using the API.

Args:
  advertiserId: string, Required. The ID of the advertiser this line item belongs to. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for LineItemService.GenerateDefaultLineItem.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. The unique ID of the insertion order that the line item belongs to.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="get">get(advertiserId, lineItemId, x__xgafv=None)</code>
  <pre>Gets a line item.

Args:
  advertiserId: string, Required. The ID of the advertiser this line item belongs to. (required)
  lineItemId: string, Required. The ID of the line item to fetch. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(advertiserId, filter=None, orderBy=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists line items in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, line items with `ENTITY_STATUS_ARCHIVED` will not be included in the results.

Args:
  advertiserId: string, Required. The ID of the advertiser to list line items for. (required)
  filter: string, Allows filtering by line item fields. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The `updateTime` field must use the `GREATER THAN OR EQUAL TO (&gt;=)` or `LESS THAN OR EQUAL TO (&lt;=)` operators. * All other fields must use the `EQUALS (=)` operator. Supported fields: * `campaignId` * `displayName` * `entityStatus` * `insertionOrderId` * `lineItemId` * `lineItemType` * `updateTime` (input in ISO 8601 format, or `YYYY-MM-DDTHH:MM:SSZ`) Examples: * All line items under an insertion order: `insertionOrderId=&quot;1234&quot;` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` and `LINE_ITEM_TYPE_DISPLAY_DEFAULT` line items under an advertiser: `(entityStatus=&quot;ENTITY_STATUS_ACTIVE&quot; OR entityStatus=&quot;ENTITY_STATUS_PAUSED&quot;) AND lineItemType=&quot;LINE_ITEM_TYPE_DISPLAY_DEFAULT&quot;` * All line items with an update time less than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime&lt;=&quot;2020-11-04T18:54:47Z&quot;` * All line items with an update time greater than or equal to 2020-11-04T18:54:47Z (format of ISO 8601): `updateTime&gt;=&quot;2020-11-04T18:54:47Z&quot;` The length of this field should be no more than 500 characters. Reference our [filter `LIST` requests](/display-video/api/guides/how-tos/filters) guide for more information.
  orderBy: string, Field by which to sort the list. Acceptable values are: * `displayName` (default) * `entityStatus` * `updateTime` The default sorting order is ascending. To specify descending order for a field, a suffix &quot;desc&quot; should be added to the field name. Example: `displayName desc`.
  pageSize: integer, Requested page size. Must be between `1` and `200`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
  pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListLineItems` method. If not specified, the first page of results will be returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  &quot;lineItems&quot;: [ # The list of line items. This list will be absent if empty.
    { # A single line item.
      &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
      &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
        &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
          &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
        },
        &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
          &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
          &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
          &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
          &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
        },
        &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
          &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
          &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
          &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
          &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
        },
      },
      &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
        &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
        &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
        &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
      },
      &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
      &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
      &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
        &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
          { # Settings that control the behavior of a single Floodlight activity config.
            &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
            &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
            &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
          },
        ],
        &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
      },
      &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
        &quot;A String&quot;,
      ],
      &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
      &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
      &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
      &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.
        &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
          &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
            &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
            &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
            &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
          },
          &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
            &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
            &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
            &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
          },
        },
        &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
      },
      &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
        &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
        &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
        &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
        &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
        &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
      },
      &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
      &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
        &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
        &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
      },
      &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
      &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
      &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
        &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
        &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
        &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
        &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
      &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
        &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
        &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
        &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
        &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
      },
      &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
        { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
          &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
          &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
          &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
          &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
          &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
        },
      ],
      &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
        &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
        &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
      },
      &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
      &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
        &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
        &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
      },
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
      &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
        &quot;A String&quot;,
      ],
      &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
        &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
          &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
          &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
          &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
          &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
        },
        &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
        &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
        &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
          &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
          &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
          &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
          &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
        },
        &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
        &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
        &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
          &quot;A String&quot;,
        ],
        &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
          &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
          &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
          &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
        },
        &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
          &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
            { # Settings that control how third-party measurement vendors are configured.
              &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
              &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
            },
          ],
          &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
            { # Settings that control how third-party measurement vendors are configured.
              &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
              &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
            },
          ],
          &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
            { # Settings that control how third-party measurement vendors are configured.
              &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
              &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
            },
          ],
          &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
            { # Settings that control how third-party measurement vendors are configured.
              &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
              &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
            },
          ],
        },
        &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
          &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
          &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
          &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
        },
        &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
          &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
          &quot;steps&quot;: [ # The steps of which the sequence consists.
            { # The detail of a single step in a VideoAdSequence.
              &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
              &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
              &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
              &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
            },
          ],
        },
        &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
          &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
          &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
          &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
          &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
          &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
        },
      },
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListLineItems` method to retrieve the next page of results.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(advertiserId, lineItemId, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates an existing line item. Returns the updated line item if successful. Requests to this endpoint cannot be made concurrently with the following requests updating the same line item: * BulkEditAssignedTargetingOptions * BulkUpdateLineItems * assignedTargetingOptions.create * assignedTargetingOptions.delete YouTube &amp; Partners line items cannot be created or updated using the API. **This method regularly experiences high latency.** We recommend [increasing your default timeout](/display-video/api/guides/best-practices/timeouts#client_library_timeout) to avoid errors.

Args:
  advertiserId: string, Output only. The unique ID of the advertiser the line item belongs to. (required)
  lineItemId: string, Output only. The unique ID of the line item. Assigned by the system. (required)
  body: object, The request body.
    The object takes the form of:

{ # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}

  updateMask: string, Required. The mask to control which fields to update.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A single line item.
  &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the line item belongs to.
  &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Required. The bidding strategy of the line item.
    &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
      &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
    },
    &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
      &quot;raiseBidForDeals&quot;: True or False, # Whether the strategy takes deal floor prices into account.
    },
    &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
      &quot;customBiddingAlgorithmId&quot;: &quot;A String&quot;, # The ID of the Custom Bidding Algorithm used by this strategy. Only applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`. Assigning a custom bidding algorithm that uses floodlight activities not identified in floodlightActivityConfigs will return an error.
      &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
      &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
      &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
    },
  },
  &quot;budget&quot;: { # Settings that control how budget is allocated. # Required. The budget allocation setting of the line item.
    &quot;budgetAllocationType&quot;: &quot;A String&quot;, # Required. The type of the budget allocation. `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC` is only applicable when automatic budget allocation is enabled for the parent insertion order.
    &quot;budgetUnit&quot;: &quot;A String&quot;, # Output only. The budget unit specifies whether the budget is currency based or impression based. This value is inherited from the parent insertion order.
    &quot;maxAmount&quot;: &quot;A String&quot;, # The maximum budget amount the line item will spend. Must be greater than 0. When budget_allocation_type is: * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_AUTOMATIC`, this field is immutable and is set by the system. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_FIXED`, if budget_unit is: - `BUDGET_UNIT_CURRENCY`, this field represents maximum budget amount to spend, in micros of the advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. - `BUDGET_UNIT_IMPRESSIONS`, this field represents the maximum number of impressions to serve. * `LINE_ITEM_BUDGET_ALLOCATION_TYPE_UNLIMITED`, this field is not applicable and will be ignored by the system.
  },
  &quot;campaignId&quot;: &quot;A String&quot;, # Output only. The unique ID of the campaign that the line item belongs to.
  &quot;containsEuPoliticalAds&quot;: &quot;A String&quot;, # Whether this line item will serve European Union political ads. If contains_eu_political_ads has been set to `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` in the parent advertiser, then this field will be assigned `DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING` if not otherwise specified. This field can then be updated using the UI, API, or Structured Data Files. This field must be assigned when creating a new line item. Otherwise, **the `advertisers.lineItems.create` request will fail**.
  &quot;conversionCounting&quot;: { # Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. # The conversion tracking setting of the line item.
    &quot;floodlightActivityConfigs&quot;: [ # The Floodlight activity configs used to track conversions. The number of conversions counted is the sum of all of the conversions counted by all of the Floodlight activity IDs specified in this field. This field can&#x27;t be updated if a custom bidding algorithm is assigned to the line item. If you set this field and assign a custom bidding algorithm in the same request, the floodlight activities must match the ones used by the custom bidding algorithm.
      { # Settings that control the behavior of a single Floodlight activity config.
        &quot;floodlightActivityId&quot;: &quot;A String&quot;, # Required. The ID of the Floodlight activity.
        &quot;postClickLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been clicked in which a conversion may be counted. Must be between 0 and 90 inclusive.
        &quot;postViewLookbackWindowDays&quot;: 42, # Required. The number of days after an ad has been viewed in which a conversion may be counted. Must be between 0 and 90 inclusive.
      },
    ],
    &quot;postViewCountPercentageMillis&quot;: &quot;A String&quot;, # The percentage of post-view conversions to count, in millis (1/1000 of a percent). Must be between 0 and 100000 inclusive. For example, to track 50% of the post-click conversions, set a value of 50000.
  },
  &quot;creativeIds&quot;: [ # The IDs of the creatives associated with the line item.
    &quot;A String&quot;,
  ],
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes.
  &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only `ENTITY_STATUS_DRAFT` is allowed. To activate a line item, use UpdateLineItem method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * A line item cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * If the line item&#x27;s parent insertion order is not active, the line item can&#x27;t spend its budget even if its own status is `ENTITY_STATUS_ACTIVE`.
  &quot;excludeNewExchanges&quot;: True or False, # Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.
  &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.
    &quot;dateRange&quot;: { # A date range. # The flight start and end dates of the line item. They are resolved relative to the parent advertiser&#x27;s time zone. * Required when flight_date_type is `LINE_ITEM_FLIGHT_DATE_TYPE_CUSTOM`. Output only otherwise. * When creating a new flight, both `start_date` and `end_date` must be in the future. * An existing flight with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
      &quot;endDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
      &quot;startDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
        &quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
        &quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
        &quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
      },
    },
    &quot;flightDateType&quot;: &quot;A String&quot;, # Required. The type of the line item&#x27;s flight dates.
  },
  &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.
    &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
    &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
    &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
    &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
    &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
  },
  &quot;insertionOrderId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the insertion order that the line item belongs to.
  &quot;integrationDetails&quot;: { # Integration details of an entry. # Integration details of the line item.
    &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
    &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
  },
  &quot;lineItemId&quot;: &quot;A String&quot;, # Output only. The unique ID of the line item. Assigned by the system.
  &quot;lineItemType&quot;: &quot;A String&quot;, # Required. Immutable. The type of the line item.
  &quot;mobileApp&quot;: { # A mobile app promoted by a mobile app install line item. # The mobile app promoted by the line item. This is applicable only when line_item_type is either `LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL` or `LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL`.
    &quot;appId&quot;: &quot;A String&quot;, # Required. The ID of the app provided by the platform store. Android apps are identified by the bundle ID used by Android&#x27;s Play store, such as `com.google.android.gm`. iOS apps are identified by a nine-digit app ID used by Apple&#x27;s App store, such as `422689480`.
    &quot;displayName&quot;: &quot;A String&quot;, # Output only. The app name.
    &quot;platform&quot;: &quot;A String&quot;, # Output only. The app platform.
    &quot;publisher&quot;: &quot;A String&quot;, # Output only. The app publisher.
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the line item.
  &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the line item.
    &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
    &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
    &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
    &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period. `PACING_TYPE_ASAP` is not compatible with pacing_period `PACING_PERIOD_FLIGHT` for insertion orders.
  },
  &quot;partnerCosts&quot;: [ # The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.
    { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
      &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
      &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
      &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
      &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
      &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
    },
  ],
  &quot;partnerRevenueModel&quot;: { # Settings that control how partner revenue is calculated. # Required. The partner revenue model setting of the line item.
    &quot;markupAmount&quot;: &quot;A String&quot;, # Required. The markup amount of the partner revenue model. Must be greater than or equal to 0. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`, this field represents the CPM markup in micros of advertiser&#x27;s currency. For example, 1500000 represents 1.5 standard units of the currency. * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_MEDIA_COST_MARKUP`, this field represents the media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001). * When the markup_type is set to be `PARTNER_REVENUE_MODEL_MARKUP_TYPE_TOTAL_MEDIA_COST_MARKUP`, this field represents the total media cost percent markup in millis. For example, 100 represents 0.1% (decimal 0.001).
    &quot;markupType&quot;: &quot;A String&quot;, # Required. The markup type of the partner revenue model.
  },
  &quot;reservationType&quot;: &quot;A String&quot;, # Output only. The reservation type of the line item.
  &quot;targetingExpansion&quot;: { # Settings that control the [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. # The [optimized targeting](//support.google.com/displayvideo/answer/12060859) settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.
    &quot;excludeFirstPartyAudience&quot;: True or False, # Whether to exclude first-party audiences from use in targeting expansion. This field was deprecated with the launch of [optimized targeting](//support.google.com/displayvideo/answer/12060859). This field will be set to `false`. If this field is set to `true` when deprecated, all positive first-party audience targeting assigned to this line item will be replaced with negative targeting of the same first-party audiences to ensure the continued exclusion of those audiences.
    &quot;targetingExpansionLevel&quot;: &quot;A String&quot;, # Required. Whether optimized targeting is turned on. This field supports the following values: * `NO_EXPANSION`: optimized targeting is turned off * `LEAST_EXPANSION`: optimized targeting is turned on If this field is set to any other value, it will automatically be set to `LEAST_EXPANSION`. `NO_EXPANSION` will be the default value for the field and will be automatically assigned if you do not set the field.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the line item was last updated. Assigned by the system.
  &quot;warningMessages&quot;: [ # Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.
    &quot;A String&quot;,
  ],
  &quot;youtubeAndPartnersSettings&quot;: { # Settings for YouTube and Partners line items. # Output only. Settings specific to YouTube and Partners line items.
    &quot;biddingStrategy&quot;: { # Settings that control the bid strategy for YouTube and Partners resources. # Required. The bidding strategy of the YouTube and Partners line item.
      &quot;adGroupEffectiveTargetCpaSource&quot;: &quot;A String&quot;, # Output only. Source of the effective target CPA value for ad group.
      &quot;adGroupEffectiveTargetCpaValue&quot;: &quot;A String&quot;, # Output only. The effective target CPA for ad group, in micros of advertiser&#x27;s currency.
      &quot;type&quot;: &quot;A String&quot;, # The type of the bidding strategy.
      &quot;value&quot;: &quot;A String&quot;, # The value used by the bidding strategy. When the bidding strategy is assigned at the line item level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_SHARE_OF_VOICE` When the bidding strategy is assigned at the ad group level, this field is only applicable for the following strategy types: * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_MANUAL_CPV` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPA` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_RESERVE_CPM` * `YOUTUBE_AND_PARTNERS_BIDDING_STRATEGY_TYPE_TARGET_ROAS` If not using an applicable strategy, the value of this field will be 0.
    },
    &quot;contentCategory&quot;: &quot;A String&quot;, # Output only. The kind of content on which the YouTube and Partners ads will be shown. *Warning*: This field will be removed in the near future. Use effective_content_category instead.
    &quot;effectiveContentCategory&quot;: &quot;A String&quot;, # Output only. The content category which takes effect when serving the line item. When content category is set in both line item and advertiser, the stricter one will take effect when serving the line item. New line items will only inherit the advertiser level setting.
    &quot;inventorySourceSettings&quot;: { # Settings that control what YouTube related inventories the YouTube and Partners line item will target. # Settings that control what YouTube and Partners inventories the line item will target.
      &quot;includeGoogleTv&quot;: True or False, # Optional. Whether to target inventory in video apps available with Google TV.
      &quot;includeYoutubeSearch&quot;: True or False, # Whether to target inventory on the YouTube search results page.
      &quot;includeYoutubeVideoPartners&quot;: True or False, # Whether to target inventory on a collection of partner sites and apps that follow the same brand safety standards as YouTube.
      &quot;includeYoutubeVideos&quot;: True or False, # Whether to target inventory of channels and videos on YouTube and YouTube videos embedded on other sites.
    },
    &quot;leadFormId&quot;: &quot;A String&quot;, # Optional. The ID of the form to generate leads.
    &quot;linkedMerchantId&quot;: &quot;A String&quot;, # Optional. The ID of the merchant which is linked to the line item for product feed.
    &quot;relatedVideoIds&quot;: [ # Optional. The IDs of the videos appear below the primary video ad when the ad is playing in the YouTube app on mobile devices.
      &quot;A String&quot;,
    ],
    &quot;targetFrequency&quot;: { # Setting that controls the average number of times the ads will show to the same person over a certain period of time. # Optional. The average number of times you want ads from this line item to show to the same person over a certain period of time.
      &quot;targetCount&quot;: &quot;A String&quot;, # The target number of times, on average, the ads will be shown to the same person in the timespan dictated by time_unit and time_unit_count.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The unit of time in which the target frequency will be applied. The following time unit is applicable: * `TIME_UNIT_WEEKS`
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the target frequency will last. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_WEEKS` - must be 1
    },
    &quot;thirdPartyMeasurementSettings&quot;: { # Settings that control what third-party vendors are measuring specific line item metrics. # Optional. The third-party measurement settings of the line item.
      &quot;brandLiftVendorConfigs&quot;: [ # The third-party vendors measuring brand lift. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_DYNATA` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;brandSafetyVendorConfigs&quot;: [ # The third-party vendors measuring brand safety. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_ZEFR` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;reachVendorConfigs&quot;: [ # The third-party vendors measuring reach. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_NIELSEN` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_KANTAR`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
      &quot;viewabilityVendorConfigs&quot;: [ # The third-party vendors measuring viewability. The following third-party vendors are applicable: * `THIRD_PARTY_VENDOR_MOAT` * `THIRD_PARTY_VENDOR_DOUBLE_VERIFY` * `THIRD_PARTY_VENDOR_INTEGRAL_AD_SCIENCE` * `THIRD_PARTY_VENDOR_COMSCORE` * `THIRD_PARTY_VENDOR_TELEMETRY` * `THIRD_PARTY_VENDOR_MEETRICS`
        { # Settings that control how third-party measurement vendors are configured.
          &quot;placementId&quot;: &quot;A String&quot;, # The ID used by the platform of the third-party vendor to identify the line item.
          &quot;vendor&quot;: &quot;A String&quot;, # The third-party measurement vendor.
        },
      ],
    },
    &quot;videoAdInventoryControl&quot;: { # The video ad inventory control used in certain YouTube line item types. # Optional. The settings to control which inventory is allowed for this line item.
      &quot;allowInFeed&quot;: True or False, # Optional. Whether ads can serve as in-feed format.
      &quot;allowInStream&quot;: True or False, # Optional. Whether ads can serve as in-stream format.
      &quot;allowShorts&quot;: True or False, # Optional. Whether ads can serve as shorts format.
    },
    &quot;videoAdSequenceSettings&quot;: { # Settings related to VideoAdSequence. # Optional. The settings related to VideoAdSequence.
      &quot;minimumDuration&quot;: &quot;A String&quot;, # The minimum time interval before the same user sees this sequence again.
      &quot;steps&quot;: [ # The steps of which the sequence consists.
        { # The detail of a single step in a VideoAdSequence.
          &quot;adGroupId&quot;: &quot;A String&quot;, # The ID of the corresponding ad group of the step.
          &quot;interactionType&quot;: &quot;A String&quot;, # The interaction on the previous step that will lead the viewer to this step. The first step does not have interaction_type.
          &quot;previousStepId&quot;: &quot;A String&quot;, # The ID of the previous step. The first step does not have previous step.
          &quot;stepId&quot;: &quot;A String&quot;, # The ID of the step.
        },
      ],
    },
    &quot;viewFrequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # The view frequency cap settings of the line item. The max_views field in this settings object must be used if assigning a limited cap.
      &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown the same ad during this period. Must be greater than 0. Required when unlimited is `false` and max_views is not set.
      &quot;maxViews&quot;: 42, # Optional. The maximum number of times a user may click-through or fully view an ad during this period until it is no longer served to them. Must be greater than 0. Only applicable to YouTube and Partners resources. Required when unlimited is `false` and max_impressions is not set.
      &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Required when unlimited is `false`.
      &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Required when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_MONTHS` - must be 1 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
      &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
    },
  },
}</pre>
</div>

</body></html>