File: classes.rb

package info (click to toggle)
ruby-google-api-client 0.53.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,020 kB
  • sloc: ruby: 626,567; makefile: 4
file content (1849 lines) | stat: -rw-r--r-- 80,195 bytes parent folder | download | duplicates (2)
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
# Copyright 2015 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'

module Google
  module Apis
    module RealtimebiddingV1
      
      # A request to activate a pretargeting configuration. Sets the configuration's
      # state to ACTIVE.
      class ActivatePretargetingConfigRequest
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # A request to start targeting the provided app IDs in a specific pretargeting
      # configuration. The pretargeting configuration itself specifies how these apps
      # are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting.
      class AddTargetedAppsRequest
        include Google::Apis::Core::Hashable
      
        # A list of app IDs to target in the pretargeting configuration. These values
        # will be added to the list of targeted app IDs in PretargetingConfig.
        # appTargeting.mobileAppTargeting.values.
        # Corresponds to the JSON property `appIds`
        # @return [Array<String>]
        attr_accessor :app_ids
      
        # Required. The targeting mode that should be applied to the list of app IDs. If
        # there are existing targeted app IDs, must be equal to the existing
        # PretargetingConfig.appTargeting.mobileAppTargeting.targetingMode or a 400 bad
        # request error will be returned.
        # Corresponds to the JSON property `targetingMode`
        # @return [String]
        attr_accessor :targeting_mode
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @app_ids = args[:app_ids] if args.key?(:app_ids)
          @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode)
        end
      end
      
      # A request to start targeting the provided publishers in a specific
      # pretargeting configuration. The pretargeting configuration itself specifies
      # how these publishers are targeted in PretargetingConfig.publisherTargeting.
      class AddTargetedPublishersRequest
        include Google::Apis::Core::Hashable
      
        # A list of publisher IDs to target in the pretargeting configuration. These
        # values will be added to the list of targeted publisher IDs in
        # PretargetingConfig.publisherTargeting.values. Publishers are identified by
        # their publisher ID from ads.txt / app-ads.txt. See https://iabtechlab.com/ads-
        # txt/ and https://iabtechlab.com/app-ads-txt/ for more details.
        # Corresponds to the JSON property `publisherIds`
        # @return [Array<String>]
        attr_accessor :publisher_ids
      
        # Required. The targeting mode that should be applied to the list of publisher
        # IDs. If are existing publisher IDs, must be equal to the existing
        # PretargetingConfig.publisherTargeting.targetingMode or a 400 bad request error
        # will be returned.
        # Corresponds to the JSON property `targetingMode`
        # @return [String]
        attr_accessor :targeting_mode
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @publisher_ids = args[:publisher_ids] if args.key?(:publisher_ids)
          @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode)
        end
      end
      
      # A request to start targeting the provided sites in a specific pretargeting
      # configuration. The pretargeting configuration itself specifies how these sites
      # are targeted in PretargetingConfig.webTargeting.
      class AddTargetedSitesRequest
        include Google::Apis::Core::Hashable
      
        # A list of site URLs to target in the pretargeting configuration. These values
        # will be added to the list of targeted URLs in PretargetingConfig.webTargeting.
        # values.
        # Corresponds to the JSON property `sites`
        # @return [Array<String>]
        attr_accessor :sites
      
        # Required. The targeting mode that should be applied to the list of site URLs.
        # If there are existing targeted sites, must be equal to the existing
        # PretargetingConfig.webTargeting.targetingMode or a 400 bad request error will
        # be returned.
        # Corresponds to the JSON property `targetingMode`
        # @return [String]
        attr_accessor :targeting_mode
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @sites = args[:sites] if args.key?(:sites)
          @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode)
        end
      end
      
      # Detected advertiser and brand information.
      class AdvertiserAndBrand
        include Google::Apis::Core::Hashable
      
        # See https://storage.googleapis.com/adx-rtb-dictionaries/advertisers.txt for
        # the list of possible values. Can be used to filter the response of the
        # creatives.list method.
        # Corresponds to the JSON property `advertiserId`
        # @return [Fixnum]
        attr_accessor :advertiser_id
      
        # Advertiser name. Can be used to filter the response of the creatives.list
        # method.
        # Corresponds to the JSON property `advertiserName`
        # @return [String]
        attr_accessor :advertiser_name
      
        # Detected brand ID or zero if no brand has been detected. See https://storage.
        # googleapis.com/adx-rtb-dictionaries/brands.txt for the list of possible values.
        # Can be used to filter the response of the creatives.list method.
        # Corresponds to the JSON property `brandId`
        # @return [Fixnum]
        attr_accessor :brand_id
      
        # Brand name. Can be used to filter the response of the creatives.list method.
        # Corresponds to the JSON property `brandName`
        # @return [String]
        attr_accessor :brand_name
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
          @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
          @brand_id = args[:brand_id] if args.key?(:brand_id)
          @brand_name = args[:brand_name] if args.key?(:brand_name)
        end
      end
      
      # A subset of app inventory to target. Bid requests that match criteria in at
      # least one of the specified dimensions will be sent.
      class AppTargeting
        include Google::Apis::Core::Hashable
      
        # Generic targeting used for targeting dimensions that contain a list of
        # included and excluded numeric IDs used in app, user list, geo, and vertical id
        # targeting.
        # Corresponds to the JSON property `mobileAppCategoryTargeting`
        # @return [Google::Apis::RealtimebiddingV1::NumericTargetingDimension]
        attr_accessor :mobile_app_category_targeting
      
        # Generic targeting with string values used in app, website and publisher
        # targeting.
        # Corresponds to the JSON property `mobileAppTargeting`
        # @return [Google::Apis::RealtimebiddingV1::StringTargetingDimension]
        attr_accessor :mobile_app_targeting
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @mobile_app_category_targeting = args[:mobile_app_category_targeting] if args.key?(:mobile_app_category_targeting)
          @mobile_app_targeting = args[:mobile_app_targeting] if args.key?(:mobile_app_targeting)
        end
      end
      
      # A request to close a specified user list.
      class CloseUserListRequest
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # A creative and its classification data.
      class Creative
        include Google::Apis::Core::Hashable
      
        # Output only. ID of the buyer account that this creative is owned by. Can be
        # used to filter the response of the creatives.list method with equality and
        # inequality check.
        # Corresponds to the JSON property `accountId`
        # @return [Fixnum]
        attr_accessor :account_id
      
        # The link to AdChoices destination page. This is only supported for native ads.
        # Corresponds to the JSON property `adChoicesDestinationUrl`
        # @return [String]
        attr_accessor :ad_choices_destination_url
      
        # The name of the company being advertised in the creative. Can be used to
        # filter the response of the creatives.list method.
        # Corresponds to the JSON property `advertiserName`
        # @return [String]
        attr_accessor :advertiser_name
      
        # The agency ID for this creative.
        # Corresponds to the JSON property `agencyId`
        # @return [Fixnum]
        attr_accessor :agency_id
      
        # Output only. The last update timestamp of the creative via API.
        # Corresponds to the JSON property `apiUpdateTime`
        # @return [String]
        attr_accessor :api_update_time
      
        # Output only. The format of this creative. Can be used to filter the response
        # of the creatives.list method.
        # Corresponds to the JSON property `creativeFormat`
        # @return [String]
        attr_accessor :creative_format
      
        # Buyer-specific creative ID that references this creative in bid responses.
        # This field is Ignored in update operations. Can be used to filter the response
        # of the creatives.list method. The maximum length of the creative ID is 128
        # bytes.
        # Corresponds to the JSON property `creativeId`
        # @return [String]
        attr_accessor :creative_id
      
        # Top level status and detected attributes of a creative.
        # Corresponds to the JSON property `creativeServingDecision`
        # @return [Google::Apis::RealtimebiddingV1::CreativeServingDecision]
        attr_accessor :creative_serving_decision
      
        # Output only. IDs of all of the deals with which this creative has been used in
        # bidding. Can be used to filter the response of the creatives.list method.
        # Corresponds to the JSON property `dealIds`
        # @return [Array<String>]
        attr_accessor :deal_ids
      
        # All declared attributes for the ads that may be shown from this creative. Can
        # be used to filter the response of the creatives.list method. If the `
        # excluded_attribute` field of a [bid request](https://developers.google.com/
        # authorized-buyers/rtb/downloads/realtime-bidding-proto") contains one of the
        # attributes that were declared or detected for a given creative, and a bid is
        # submitted with that creative, the bid will be filtered before the auction.
        # Corresponds to the JSON property `declaredAttributes`
        # @return [Array<String>]
        attr_accessor :declared_attributes
      
        # The set of declared destination URLs for the creative. Can be used to filter
        # the response of the creatives.list method.
        # Corresponds to the JSON property `declaredClickThroughUrls`
        # @return [Array<String>]
        attr_accessor :declared_click_through_urls
      
        # All declared restricted categories for the ads that may be shown from this
        # creative. Can be used to filter the response of the creatives.list method.
        # Corresponds to the JSON property `declaredRestrictedCategories`
        # @return [Array<String>]
        attr_accessor :declared_restricted_categories
      
        # IDs for the declared ad technology vendors that may be used by this creative.
        # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for
        # possible values. Can be used to filter the response of the creatives.list
        # method.
        # Corresponds to the JSON property `declaredVendorIds`
        # @return [Array<Fixnum>]
        attr_accessor :declared_vendor_ids
      
        # HTML content for a creative.
        # Corresponds to the JSON property `html`
        # @return [Google::Apis::RealtimebiddingV1::HtmlContent]
        attr_accessor :html
      
        # The set of URLs to be called to record an impression.
        # Corresponds to the JSON property `impressionTrackingUrls`
        # @return [Array<String>]
        attr_accessor :impression_tracking_urls
      
        # Output only. Name of the creative. Follows the pattern `buyers/`buyer`/
        # creatives/`creative``, where ``buyer`` represents the account ID of the buyer
        # who owns the creative, and ``creative`` is the buyer-specific creative ID that
        # references this creative in the bid response.
        # Corresponds to the JSON property `name`
        # @return [String]
        attr_accessor :name
      
        # Native content for a creative.
        # Corresponds to the JSON property `native`
        # @return [Google::Apis::RealtimebiddingV1::NativeContent]
        attr_accessor :native
      
        # All restricted categories for the ads that may be shown from this creative.
        # Corresponds to the JSON property `restrictedCategories`
        # @return [Array<String>]
        attr_accessor :restricted_categories
      
        # Output only. The version of this creative. Version for a new creative is 1 and
        # it increments during subsequent creative updates.
        # Corresponds to the JSON property `version`
        # @return [Fixnum]
        attr_accessor :version
      
        # Video content for a creative.
        # Corresponds to the JSON property `video`
        # @return [Google::Apis::RealtimebiddingV1::VideoContent]
        attr_accessor :video
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @account_id = args[:account_id] if args.key?(:account_id)
          @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
          @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
          @agency_id = args[:agency_id] if args.key?(:agency_id)
          @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
          @creative_format = args[:creative_format] if args.key?(:creative_format)
          @creative_id = args[:creative_id] if args.key?(:creative_id)
          @creative_serving_decision = args[:creative_serving_decision] if args.key?(:creative_serving_decision)
          @deal_ids = args[:deal_ids] if args.key?(:deal_ids)
          @declared_attributes = args[:declared_attributes] if args.key?(:declared_attributes)
          @declared_click_through_urls = args[:declared_click_through_urls] if args.key?(:declared_click_through_urls)
          @declared_restricted_categories = args[:declared_restricted_categories] if args.key?(:declared_restricted_categories)
          @declared_vendor_ids = args[:declared_vendor_ids] if args.key?(:declared_vendor_ids)
          @html = args[:html] if args.key?(:html)
          @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
          @name = args[:name] if args.key?(:name)
          @native = args[:native] if args.key?(:native)
          @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
          @version = args[:version] if args.key?(:version)
          @video = args[:video] if args.key?(:video)
        end
      end
      
      # The dimensions of a creative. This applies to only HTML and Native creatives.
      class CreativeDimensions
        include Google::Apis::Core::Hashable
      
        # The height of the creative in pixels.
        # Corresponds to the JSON property `height`
        # @return [Fixnum]
        attr_accessor :height
      
        # The width of the creative in pixels.
        # Corresponds to the JSON property `width`
        # @return [Fixnum]
        attr_accessor :width
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @height = args[:height] if args.key?(:height)
          @width = args[:width] if args.key?(:width)
        end
      end
      
      # Top level status and detected attributes of a creative.
      class CreativeServingDecision
        include Google::Apis::Core::Hashable
      
        # Policy compliance of the creative for a transaction type or a region.
        # Corresponds to the JSON property `chinaPolicyCompliance`
        # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
        attr_accessor :china_policy_compliance
      
        # Policy compliance of the creative for a transaction type or a region.
        # Corresponds to the JSON property `dealsPolicyCompliance`
        # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
        attr_accessor :deals_policy_compliance
      
        # Detected advertisers and brands.
        # Corresponds to the JSON property `detectedAdvertisers`
        # @return [Array<Google::Apis::RealtimebiddingV1::AdvertiserAndBrand>]
        attr_accessor :detected_advertisers
      
        # Publisher-excludable attributes that were detected for this creative. Can be
        # used to filter the response of the creatives.list method. If the `
        # excluded_attribute` field of a [bid request](https://developers.google.com/
        # authorized-buyers/rtb/downloads/realtime-bidding-proto) contains one of the
        # attributes that were declared or detected for a given creative, and a bid is
        # submitted with that creative, the bid will be filtered before the auction.
        # Corresponds to the JSON property `detectedAttributes`
        # @return [Array<String>]
        attr_accessor :detected_attributes
      
        # The set of detected destination URLs for the creative. Can be used to filter
        # the response of the creatives.list method.
        # Corresponds to the JSON property `detectedClickThroughUrls`
        # @return [Array<String>]
        attr_accessor :detected_click_through_urls
      
        # The detected domains for this creative.
        # Corresponds to the JSON property `detectedDomains`
        # @return [Array<String>]
        attr_accessor :detected_domains
      
        # The detected languages for this creative. The order is arbitrary. The codes
        # are 2 or 5 characters and are documented at https://developers.google.com/
        # adwords/api/docs/appendix/languagecodes. Can be used to filter the response of
        # the creatives.list method.
        # Corresponds to the JSON property `detectedLanguages`
        # @return [Array<String>]
        attr_accessor :detected_languages
      
        # Detected product categories, if any. See the ad-product-categories.txt file in
        # the technical documentation for a list of IDs. Can be used to filter the
        # response of the creatives.list method.
        # Corresponds to the JSON property `detectedProductCategories`
        # @return [Array<Fixnum>]
        attr_accessor :detected_product_categories
      
        # Detected sensitive categories, if any. Can be used to filter the response of
        # the creatives.list method. See the ad-sensitive-categories.txt file in the
        # technical documentation for a list of IDs. You should use these IDs along with
        # the excluded-sensitive-category field in the bid request to filter your bids.
        # Corresponds to the JSON property `detectedSensitiveCategories`
        # @return [Array<Fixnum>]
        attr_accessor :detected_sensitive_categories
      
        # IDs of the ad technology vendors that were detected to be used by this
        # creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
        # for possible values. Can be used to filter the response of the creatives.list
        # method. If the `allowed_vendor_type` field of a [bid request](https://
        # developers.google.com/authorized-buyers/rtb/downloads/realtime-bidding-proto)
        # does not contain one of the vendor type IDs that were declared or detected for
        # a given creative, and a bid is submitted with that creative, the bid will be
        # filtered before the auction.
        # Corresponds to the JSON property `detectedVendorIds`
        # @return [Array<Fixnum>]
        attr_accessor :detected_vendor_ids
      
        # The last time the creative status was updated. Can be used to filter the
        # response of the creatives.list method.
        # Corresponds to the JSON property `lastStatusUpdate`
        # @return [String]
        attr_accessor :last_status_update
      
        # Policy compliance of the creative for a transaction type or a region.
        # Corresponds to the JSON property `networkPolicyCompliance`
        # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
        attr_accessor :network_policy_compliance
      
        # Policy compliance of the creative for a transaction type or a region.
        # Corresponds to the JSON property `platformPolicyCompliance`
        # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
        attr_accessor :platform_policy_compliance
      
        # Policy compliance of the creative for a transaction type or a region.
        # Corresponds to the JSON property `russiaPolicyCompliance`
        # @return [Google::Apis::RealtimebiddingV1::PolicyCompliance]
        attr_accessor :russia_policy_compliance
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @china_policy_compliance = args[:china_policy_compliance] if args.key?(:china_policy_compliance)
          @deals_policy_compliance = args[:deals_policy_compliance] if args.key?(:deals_policy_compliance)
          @detected_advertisers = args[:detected_advertisers] if args.key?(:detected_advertisers)
          @detected_attributes = args[:detected_attributes] if args.key?(:detected_attributes)
          @detected_click_through_urls = args[:detected_click_through_urls] if args.key?(:detected_click_through_urls)
          @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
          @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
          @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
          @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
          @detected_vendor_ids = args[:detected_vendor_ids] if args.key?(:detected_vendor_ids)
          @last_status_update = args[:last_status_update] if args.key?(:last_status_update)
          @network_policy_compliance = args[:network_policy_compliance] if args.key?(:network_policy_compliance)
          @platform_policy_compliance = args[:platform_policy_compliance] if args.key?(:platform_policy_compliance)
          @russia_policy_compliance = args[:russia_policy_compliance] if args.key?(:russia_policy_compliance)
        end
      end
      
      # 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 value, with a zero year, such as an anniversary * A year on its own,
      # with zero month and day values * A year and month value, with a zero day, such
      # as a credit card expiration date Related types are google.type.TimeOfDay and `
      # google.protobuf.Timestamp`.
      class Date
        include Google::Apis::Core::Hashable
      
        # 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't significant.
        # Corresponds to the JSON property `day`
        # @return [Fixnum]
        attr_accessor :day
      
        # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month
        # and day.
        # Corresponds to the JSON property `month`
        # @return [Fixnum]
        attr_accessor :month
      
        # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a
        # year.
        # Corresponds to the JSON property `year`
        # @return [Fixnum]
        attr_accessor :year
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @day = args[:day] if args.key?(:day)
          @month = args[:month] if args.key?(:month)
          @year = args[:year] if args.key?(:year)
        end
      end
      
      # Evidence that the creative's destination URL was not crawlable by Google.
      class DestinationNotCrawlableEvidence
        include Google::Apis::Core::Hashable
      
        # Approximate time of the crawl.
        # Corresponds to the JSON property `crawlTime`
        # @return [String]
        attr_accessor :crawl_time
      
        # Destination URL that was attempted to be crawled.
        # Corresponds to the JSON property `crawledUrl`
        # @return [String]
        attr_accessor :crawled_url
      
        # Reason of destination not crawlable.
        # Corresponds to the JSON property `reason`
        # @return [String]
        attr_accessor :reason
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @crawl_time = args[:crawl_time] if args.key?(:crawl_time)
          @crawled_url = args[:crawled_url] if args.key?(:crawled_url)
          @reason = args[:reason] if args.key?(:reason)
        end
      end
      
      # Evidence of the creative's destination URL not functioning properly or having
      # been incorrectly set up.
      class DestinationNotWorkingEvidence
        include Google::Apis::Core::Hashable
      
        # DNS lookup errors.
        # Corresponds to the JSON property `dnsError`
        # @return [String]
        attr_accessor :dns_error
      
        # The full non-working URL.
        # Corresponds to the JSON property `expandedUrl`
        # @return [String]
        attr_accessor :expanded_url
      
        # HTTP error code (e.g. 404 or 5xx)
        # Corresponds to the JSON property `httpError`
        # @return [Fixnum]
        attr_accessor :http_error
      
        # Page was crawled successfully, but was detected as either a page with no
        # content or an error page.
        # Corresponds to the JSON property `invalidPage`
        # @return [String]
        attr_accessor :invalid_page
      
        # Approximate time when the ad destination was last checked.
        # Corresponds to the JSON property `lastCheckTime`
        # @return [String]
        attr_accessor :last_check_time
      
        # Platform of the non-working URL.
        # Corresponds to the JSON property `platform`
        # @return [String]
        attr_accessor :platform
      
        # HTTP redirect chain error.
        # Corresponds to the JSON property `redirectionError`
        # @return [String]
        attr_accessor :redirection_error
      
        # Rejected because of malformed URLs or invalid requests.
        # Corresponds to the JSON property `urlRejected`
        # @return [String]
        attr_accessor :url_rejected
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @dns_error = args[:dns_error] if args.key?(:dns_error)
          @expanded_url = args[:expanded_url] if args.key?(:expanded_url)
          @http_error = args[:http_error] if args.key?(:http_error)
          @invalid_page = args[:invalid_page] if args.key?(:invalid_page)
          @last_check_time = args[:last_check_time] if args.key?(:last_check_time)
          @platform = args[:platform] if args.key?(:platform)
          @redirection_error = args[:redirection_error] if args.key?(:redirection_error)
          @url_rejected = args[:url_rejected] if args.key?(:url_rejected)
        end
      end
      
      # The full landing page URL of the destination.
      class DestinationUrlEvidence
        include Google::Apis::Core::Hashable
      
        # The full landing page URL of the destination.
        # Corresponds to the JSON property `destinationUrl`
        # @return [String]
        attr_accessor :destination_url
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @destination_url = args[:destination_url] if args.key?(:destination_url)
        end
      end
      
      # Number of HTTP calls made by a creative, broken down by domain.
      class DomainCallEvidence
        include Google::Apis::Core::Hashable
      
        # Breakdown of the most frequent domains called via HTTP by the creative.
        # Corresponds to the JSON property `topHttpCallDomains`
        # @return [Array<Google::Apis::RealtimebiddingV1::DomainCalls>]
        attr_accessor :top_http_call_domains
      
        # The total number of HTTP calls made by the creative, including but not limited
        # to the number of calls in the top_http_call_domains.
        # Corresponds to the JSON property `totalHttpCallCount`
        # @return [Fixnum]
        attr_accessor :total_http_call_count
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @top_http_call_domains = args[:top_http_call_domains] if args.key?(:top_http_call_domains)
          @total_http_call_count = args[:total_http_call_count] if args.key?(:total_http_call_count)
        end
      end
      
      # The number of HTTP calls made to the given domain.
      class DomainCalls
        include Google::Apis::Core::Hashable
      
        # The domain name.
        # Corresponds to the JSON property `domain`
        # @return [String]
        attr_accessor :domain
      
        # Number of HTTP calls made to the domain.
        # Corresponds to the JSON property `httpCallCount`
        # @return [Fixnum]
        attr_accessor :http_call_count
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @domain = args[:domain] if args.key?(:domain)
          @http_call_count = args[:http_call_count] if args.key?(:http_call_count)
        end
      end
      
      # Total download size and URL-level download size breakdown for resources in a
      # creative.
      class DownloadSizeEvidence
        include Google::Apis::Core::Hashable
      
        # Download size broken down by URLs with the top download size.
        # Corresponds to the JSON property `topUrlDownloadSizeBreakdowns`
        # @return [Array<Google::Apis::RealtimebiddingV1::UrlDownloadSize>]
        attr_accessor :top_url_download_size_breakdowns
      
        # Total download size (in kilobytes) for all the resources in the creative.
        # Corresponds to the JSON property `totalDownloadSizeKb`
        # @return [Fixnum]
        attr_accessor :total_download_size_kb
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @top_url_download_size_breakdowns = args[:top_url_download_size_breakdowns] if args.key?(:top_url_download_size_breakdowns)
          @total_download_size_kb = args[:total_download_size_kb] if args.key?(:total_download_size_kb)
        end
      end
      
      # 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); ` The JSON representation for
      # `Empty` is empty JSON object ````.
      class Empty
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # Response for a request to get remarketing tag.
      class GetRemarketingTagResponse
        include Google::Apis::Core::Hashable
      
        # A HTML tag that can be placed on the advertiser's page to add users to a user
        # list. For more information and code samples on using snippet on your website
        # refer to [Tag your site for remarketing]( https://support.google.com/google-
        # ads/answer/2476688).
        # Corresponds to the JSON property `snippet`
        # @return [String]
        attr_accessor :snippet
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @snippet = args[:snippet] if args.key?(:snippet)
        end
      end
      
      # HTML content for a creative.
      class HtmlContent
        include Google::Apis::Core::Hashable
      
        # The height of the HTML snippet in pixels. Can be used to filter the response
        # of the creatives.list method.
        # Corresponds to the JSON property `height`
        # @return [Fixnum]
        attr_accessor :height
      
        # The HTML snippet that displays the ad when inserted in the web page.
        # Corresponds to the JSON property `snippet`
        # @return [String]
        attr_accessor :snippet
      
        # The width of the HTML snippet in pixels. Can be used to filter the response of
        # the creatives.list method.
        # Corresponds to the JSON property `width`
        # @return [Fixnum]
        attr_accessor :width
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @height = args[:height] if args.key?(:height)
          @snippet = args[:snippet] if args.key?(:snippet)
          @width = args[:width] if args.key?(:width)
        end
      end
      
      # HTTP calls made by a creative that resulted in policy violations.
      class HttpCallEvidence
        include Google::Apis::Core::Hashable
      
        # URLs of HTTP calls made by the creative.
        # Corresponds to the JSON property `urls`
        # @return [Array<String>]
        attr_accessor :urls
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @urls = args[:urls] if args.key?(:urls)
        end
      end
      
      # Evidence for HTTP cookie-related policy violations.
      class HttpCookieEvidence
        include Google::Apis::Core::Hashable
      
        # Names of cookies that violate Google policies. For TOO_MANY_COOKIES policy,
        # this will be the cookie names of top domains with the largest number of
        # cookies. For other policies, this will be all the cookie names that violate
        # the policy.
        # Corresponds to the JSON property `cookieNames`
        # @return [Array<String>]
        attr_accessor :cookie_names
      
        # The largest number of cookies set by a creative. If this field is set,
        # cookie_names above will be set to the cookie names of top domains with the
        # largest number of cookies. This field will only be set for TOO_MANY_COOKIES
        # policy.
        # Corresponds to the JSON property `maxCookieCount`
        # @return [Fixnum]
        attr_accessor :max_cookie_count
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @cookie_names = args[:cookie_names] if args.key?(:cookie_names)
          @max_cookie_count = args[:max_cookie_count] if args.key?(:max_cookie_count)
        end
      end
      
      # An image resource. You may provide a larger image than was requested, so long
      # as the aspect ratio is preserved.
      class Image
        include Google::Apis::Core::Hashable
      
        # Image height in pixels.
        # Corresponds to the JSON property `height`
        # @return [Fixnum]
        attr_accessor :height
      
        # The URL of the image.
        # Corresponds to the JSON property `url`
        # @return [String]
        attr_accessor :url
      
        # Image width in pixels.
        # Corresponds to the JSON property `width`
        # @return [Fixnum]
        attr_accessor :width
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @height = args[:height] if args.key?(:height)
          @url = args[:url] if args.key?(:url)
          @width = args[:width] if args.key?(:width)
        end
      end
      
      # A response for listing creatives.
      class ListCreativesResponse
        include Google::Apis::Core::Hashable
      
        # The list of creatives.
        # Corresponds to the JSON property `creatives`
        # @return [Array<Google::Apis::RealtimebiddingV1::Creative>]
        attr_accessor :creatives
      
        # A token to retrieve the next page of results. Pass this value in the
        # ListCreativesRequest.pageToken field in the subsequent call to the `
        # ListCreatives` method to retrieve the next page of results.
        # Corresponds to the JSON property `nextPageToken`
        # @return [String]
        attr_accessor :next_page_token
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @creatives = args[:creatives] if args.key?(:creatives)
          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
        end
      end
      
      # A response containing pretargeting configurations.
      class ListPretargetingConfigsResponse
        include Google::Apis::Core::Hashable
      
        # A token which can be passed to a subsequent call to the `
        # ListPretargetingConfigs` method to retrieve the next page of results in
        # ListPretargetingConfigsRequest.pageToken.
        # Corresponds to the JSON property `nextPageToken`
        # @return [String]
        attr_accessor :next_page_token
      
        # List of pretargeting configurations.
        # Corresponds to the JSON property `pretargetingConfigs`
        # @return [Array<Google::Apis::RealtimebiddingV1::PretargetingConfig>]
        attr_accessor :pretargeting_configs
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
          @pretargeting_configs = args[:pretargeting_configs] if args.key?(:pretargeting_configs)
        end
      end
      
      # The list user list response.
      class ListUserListsResponse
        include Google::Apis::Core::Hashable
      
        # The continuation page token to send back to the server in a subsequent request.
        # Due to a currently known issue, it is recommended that the caller keep
        # invoking the list method till the time a next page token is not returned (even
        # if the result set is empty).
        # Corresponds to the JSON property `nextPageToken`
        # @return [String]
        attr_accessor :next_page_token
      
        # List of user lists from the search.
        # Corresponds to the JSON property `userLists`
        # @return [Array<Google::Apis::RealtimebiddingV1::UserList>]
        attr_accessor :user_lists
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
          @user_lists = args[:user_lists] if args.key?(:user_lists)
        end
      end
      
      # Information about each media file in the VAST.
      class MediaFile
        include Google::Apis::Core::Hashable
      
        # Bitrate of the video file, in Kbps. Can be used to filter the response of the
        # creatives.list method.
        # Corresponds to the JSON property `bitrate`
        # @return [Fixnum]
        attr_accessor :bitrate
      
        # The MIME type of this media file. Can be used to filter the response of the
        # creatives.list method.
        # Corresponds to the JSON property `mimeType`
        # @return [String]
        attr_accessor :mime_type
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @bitrate = args[:bitrate] if args.key?(:bitrate)
          @mime_type = args[:mime_type] if args.key?(:mime_type)
        end
      end
      
      # Native content for a creative.
      class NativeContent
        include Google::Apis::Core::Hashable
      
        # The name of the advertiser or sponsor, to be displayed in the ad creative.
        # Corresponds to the JSON property `advertiserName`
        # @return [String]
        attr_accessor :advertiser_name
      
        # An image resource. You may provide a larger image than was requested, so long
        # as the aspect ratio is preserved.
        # Corresponds to the JSON property `appIcon`
        # @return [Google::Apis::RealtimebiddingV1::Image]
        attr_accessor :app_icon
      
        # A long description of the ad.
        # Corresponds to the JSON property `body`
        # @return [String]
        attr_accessor :body
      
        # A label for the button that the user is supposed to click.
        # Corresponds to the JSON property `callToAction`
        # @return [String]
        attr_accessor :call_to_action
      
        # The URL that the browser/SDK will load when the user clicks the ad.
        # Corresponds to the JSON property `clickLinkUrl`
        # @return [String]
        attr_accessor :click_link_url
      
        # The URL to use for click tracking.
        # Corresponds to the JSON property `clickTrackingUrl`
        # @return [String]
        attr_accessor :click_tracking_url
      
        # A short title for the ad.
        # Corresponds to the JSON property `headline`
        # @return [String]
        attr_accessor :headline
      
        # An image resource. You may provide a larger image than was requested, so long
        # as the aspect ratio is preserved.
        # Corresponds to the JSON property `image`
        # @return [Google::Apis::RealtimebiddingV1::Image]
        attr_accessor :image
      
        # An image resource. You may provide a larger image than was requested, so long
        # as the aspect ratio is preserved.
        # Corresponds to the JSON property `logo`
        # @return [Google::Apis::RealtimebiddingV1::Image]
        attr_accessor :logo
      
        # The price of the promoted app including currency info.
        # Corresponds to the JSON property `priceDisplayText`
        # @return [String]
        attr_accessor :price_display_text
      
        # The app rating in the app store. Must be in the range [0-5].
        # Corresponds to the JSON property `starRating`
        # @return [Float]
        attr_accessor :star_rating
      
        # The URL to fetch a native video ad.
        # Corresponds to the JSON property `videoUrl`
        # @return [String]
        attr_accessor :video_url
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
          @app_icon = args[:app_icon] if args.key?(:app_icon)
          @body = args[:body] if args.key?(:body)
          @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
          @click_link_url = args[:click_link_url] if args.key?(:click_link_url)
          @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
          @headline = args[:headline] if args.key?(:headline)
          @image = args[:image] if args.key?(:image)
          @logo = args[:logo] if args.key?(:logo)
          @price_display_text = args[:price_display_text] if args.key?(:price_display_text)
          @star_rating = args[:star_rating] if args.key?(:star_rating)
          @video_url = args[:video_url] if args.key?(:video_url)
        end
      end
      
      # Generic targeting used for targeting dimensions that contain a list of
      # included and excluded numeric IDs used in app, user list, geo, and vertical id
      # targeting.
      class NumericTargetingDimension
        include Google::Apis::Core::Hashable
      
        # The IDs excluded in a configuration.
        # Corresponds to the JSON property `excludedIds`
        # @return [Array<Fixnum>]
        attr_accessor :excluded_ids
      
        # The IDs included in a configuration.
        # Corresponds to the JSON property `includedIds`
        # @return [Array<Fixnum>]
        attr_accessor :included_ids
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @excluded_ids = args[:excluded_ids] if args.key?(:excluded_ids)
          @included_ids = args[:included_ids] if args.key?(:included_ids)
        end
      end
      
      # A request to open a specified user list.
      class OpenUserListRequest
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # Policy compliance of the creative for a transaction type or a region.
      class PolicyCompliance
        include Google::Apis::Core::Hashable
      
        # Serving status for the given transaction type (e.g., open auction, deals) or
        # region (e.g., China, Russia). Can be used to filter the response of the
        # creatives.list method.
        # Corresponds to the JSON property `status`
        # @return [String]
        attr_accessor :status
      
        # Topics related to the policy compliance for this transaction type (e.g., open
        # auction, deals) or region (e.g., China, Russia). Topics may be present only if
        # status is DISAPPROVED.
        # Corresponds to the JSON property `topics`
        # @return [Array<Google::Apis::RealtimebiddingV1::PolicyTopicEntry>]
        attr_accessor :topics
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @status = args[:status] if args.key?(:status)
          @topics = args[:topics] if args.key?(:topics)
        end
      end
      
      # Each policy topic entry will represent a violation of a policy topic for a
      # creative, with the policy topic information and optional evidence for the
      # policy violation.
      class PolicyTopicEntry
        include Google::Apis::Core::Hashable
      
        # Pieces of evidence associated with this policy topic entry.
        # Corresponds to the JSON property `evidences`
        # @return [Array<Google::Apis::RealtimebiddingV1::PolicyTopicEvidence>]
        attr_accessor :evidences
      
        # URL of the help center article describing this policy topic.
        # Corresponds to the JSON property `helpCenterUrl`
        # @return [String]
        attr_accessor :help_center_url
      
        # Policy topic this entry refers to. For example, "ALCOHOL", "
        # TRADEMARKS_IN_AD_TEXT", or "DESTINATION_NOT_WORKING". The set of possible
        # policy topics is not fixed for a particular API version and may change at any
        # time. Can be used to filter the response of the creatives.list method
        # Corresponds to the JSON property `policyTopic`
        # @return [String]
        attr_accessor :policy_topic
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @evidences = args[:evidences] if args.key?(:evidences)
          @help_center_url = args[:help_center_url] if args.key?(:help_center_url)
          @policy_topic = args[:policy_topic] if args.key?(:policy_topic)
        end
      end
      
      # Evidence associated with a policy topic entry.
      class PolicyTopicEvidence
        include Google::Apis::Core::Hashable
      
        # Evidence that the creative's destination URL was not crawlable by Google.
        # Corresponds to the JSON property `destinationNotCrawlable`
        # @return [Google::Apis::RealtimebiddingV1::DestinationNotCrawlableEvidence]
        attr_accessor :destination_not_crawlable
      
        # Evidence of the creative's destination URL not functioning properly or having
        # been incorrectly set up.
        # Corresponds to the JSON property `destinationNotWorking`
        # @return [Google::Apis::RealtimebiddingV1::DestinationNotWorkingEvidence]
        attr_accessor :destination_not_working
      
        # The full landing page URL of the destination.
        # Corresponds to the JSON property `destinationUrl`
        # @return [Google::Apis::RealtimebiddingV1::DestinationUrlEvidence]
        attr_accessor :destination_url
      
        # Number of HTTP calls made by a creative, broken down by domain.
        # Corresponds to the JSON property `domainCall`
        # @return [Google::Apis::RealtimebiddingV1::DomainCallEvidence]
        attr_accessor :domain_call
      
        # Total download size and URL-level download size breakdown for resources in a
        # creative.
        # Corresponds to the JSON property `downloadSize`
        # @return [Google::Apis::RealtimebiddingV1::DownloadSizeEvidence]
        attr_accessor :download_size
      
        # HTTP calls made by a creative that resulted in policy violations.
        # Corresponds to the JSON property `httpCall`
        # @return [Google::Apis::RealtimebiddingV1::HttpCallEvidence]
        attr_accessor :http_call
      
        # Evidence for HTTP cookie-related policy violations.
        # Corresponds to the JSON property `httpCookie`
        # @return [Google::Apis::RealtimebiddingV1::HttpCookieEvidence]
        attr_accessor :http_cookie
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @destination_not_crawlable = args[:destination_not_crawlable] if args.key?(:destination_not_crawlable)
          @destination_not_working = args[:destination_not_working] if args.key?(:destination_not_working)
          @destination_url = args[:destination_url] if args.key?(:destination_url)
          @domain_call = args[:domain_call] if args.key?(:domain_call)
          @download_size = args[:download_size] if args.key?(:download_size)
          @http_call = args[:http_call] if args.key?(:http_call)
          @http_cookie = args[:http_cookie] if args.key?(:http_cookie)
        end
      end
      
      # Pretargeting configuration: a set of targeting dimensions applied at the
      # pretargeting stage of the RTB funnel. These control which inventory a bidder
      # will receive bid requests for.
      class PretargetingConfig
        include Google::Apis::Core::Hashable
      
        # Targeting modes included by this configuration. A bid request must allow all
        # the specified targeting modes. An unset value allows all bid requests to be
        # sent, regardless of which targeting modes they allow.
        # Corresponds to the JSON property `allowedUserTargetingModes`
        # @return [Array<String>]
        attr_accessor :allowed_user_targeting_modes
      
        # A subset of app inventory to target. Bid requests that match criteria in at
        # least one of the specified dimensions will be sent.
        # Corresponds to the JSON property `appTargeting`
        # @return [Google::Apis::RealtimebiddingV1::AppTargeting]
        attr_accessor :app_targeting
      
        # Output only. The identifier that corresponds to this pretargeting
        # configuration that helps buyers track and attribute their spend across their
        # own arbitrary divisions. If a bid request matches more than one configuration,
        # the buyer chooses which billing_id to attribute each of their bids.
        # Corresponds to the JSON property `billingId`
        # @return [Fixnum]
        attr_accessor :billing_id
      
        # The diplay name associated with this configuration. This name must be unique
        # among all the pretargeting configurations a bidder has.
        # Corresponds to the JSON property `displayName`
        # @return [String]
        attr_accessor :display_name
      
        # The sensitive content category label IDs excluded in this configuration. Bid
        # requests for inventory with any of the specified content label IDs will not be
        # sent. Refer to this file https://storage.googleapis.com/adx-rtb-dictionaries/
        # content-labels.txt for category IDs.
        # Corresponds to the JSON property `excludedContentLabelIds`
        # @return [Array<Fixnum>]
        attr_accessor :excluded_content_label_ids
      
        # Generic targeting used for targeting dimensions that contain a list of
        # included and excluded numeric IDs used in app, user list, geo, and vertical id
        # targeting.
        # Corresponds to the JSON property `geoTargeting`
        # @return [Google::Apis::RealtimebiddingV1::NumericTargetingDimension]
        attr_accessor :geo_targeting
      
        # Creative dimensions included by this configuration. Only bid requests eligible
        # for at least one of the specified creative dimensions will be sent. An unset
        # value allows all bid requests to be sent, regardless of creative dimension.
        # Corresponds to the JSON property `includedCreativeDimensions`
        # @return [Array<Google::Apis::RealtimebiddingV1::CreativeDimensions>]
        attr_accessor :included_creative_dimensions
      
        # Environments that are being included. Bid requests will not be sent for a
        # given environment if it is not included. Further restrictions can be applied
        # to included environments to target only a subset of its inventory. An unset
        # value includes all environments.
        # Corresponds to the JSON property `includedEnvironments`
        # @return [Array<String>]
        attr_accessor :included_environments
      
        # Creative formats included by this configuration. Only bid requests eligible
        # for at least one of the specified creative formats will be sent. An unset
        # value will allow all bid requests to be sent, regardless of format.
        # Corresponds to the JSON property `includedFormats`
        # @return [Array<String>]
        attr_accessor :included_formats
      
        # The languages included in this configuration, represented by their language
        # code. See https://developers.google.com/adwords/api/docs/appendix/
        # languagecodes.
        # Corresponds to the JSON property `includedLanguages`
        # @return [Array<String>]
        attr_accessor :included_languages
      
        # The mobile operating systems included in this configuration as defined in
        # https://storage.googleapis.com/adx-rtb-dictionaries/mobile-os.csv
        # Corresponds to the JSON property `includedMobileOperatingSystemIds`
        # @return [Array<Fixnum>]
        attr_accessor :included_mobile_operating_system_ids
      
        # The platforms included by this configration. Bid requests for devices with the
        # specified platform types will be sent. An unset value allows all bid requests
        # to be sent, regardless of platform.
        # Corresponds to the JSON property `includedPlatforms`
        # @return [Array<String>]
        attr_accessor :included_platforms
      
        # User identifier types included in this configuration. At least one of the user
        # identifier types specified in this list must be available for the bid request
        # to be sent.
        # Corresponds to the JSON property `includedUserIdTypes`
        # @return [Array<String>]
        attr_accessor :included_user_id_types
      
        # The interstitial targeting specified for this configuration. The unset value
        # will allow bid requests to be sent regardless of whether they are for
        # interstitials or not.
        # Corresponds to the JSON property `interstitialTargeting`
        # @return [String]
        attr_accessor :interstitial_targeting
      
        # Output only. Existing included or excluded geos that are invalid. Previously
        # targeted geos may become invalid due to privacy restrictions.
        # Corresponds to the JSON property `invalidGeoIds`
        # @return [Array<Fixnum>]
        attr_accessor :invalid_geo_ids
      
        # The maximum QPS threshold for this configuration. The bidder should receive no
        # more than this number of bid requests matching this configuration per second
        # across all their bidding endpoints among all trading locations. Further
        # information available at https://developers.google.com/authorized-buyers/rtb/
        # peer-guide
        # Corresponds to the JSON property `maximumQps`
        # @return [Fixnum]
        attr_accessor :maximum_qps
      
        # The targeted minimum viewability decile, ranging in values [0, 10]. A value of
        # 5 means that the configuration will only match adslots for which we predict at
        # least 50% viewability. Values > 10 will be rounded down to 10. An unset value
        # or a value of 0 indicates that bid requests will be sent regardless of
        # viewability.
        # Corresponds to the JSON property `minimumViewabilityDecile`
        # @return [Fixnum]
        attr_accessor :minimum_viewability_decile
      
        # Output only. Name of the pretargeting configuration that must follow the
        # pattern `bidders/`bidder_account_id`/pretargetingConfigs/`config_id``
        # Corresponds to the JSON property `name`
        # @return [String]
        attr_accessor :name
      
        # Generic targeting with string values used in app, website and publisher
        # targeting.
        # Corresponds to the JSON property `publisherTargeting`
        # @return [Google::Apis::RealtimebiddingV1::StringTargetingDimension]
        attr_accessor :publisher_targeting
      
        # Output only. The state of this pretargeting configuration.
        # Corresponds to the JSON property `state`
        # @return [String]
        attr_accessor :state
      
        # Generic targeting used for targeting dimensions that contain a list of
        # included and excluded numeric IDs used in app, user list, geo, and vertical id
        # targeting.
        # Corresponds to the JSON property `userListTargeting`
        # @return [Google::Apis::RealtimebiddingV1::NumericTargetingDimension]
        attr_accessor :user_list_targeting
      
        # Generic targeting used for targeting dimensions that contain a list of
        # included and excluded numeric IDs used in app, user list, geo, and vertical id
        # targeting.
        # Corresponds to the JSON property `verticalTargeting`
        # @return [Google::Apis::RealtimebiddingV1::NumericTargetingDimension]
        attr_accessor :vertical_targeting
      
        # Generic targeting with string values used in app, website and publisher
        # targeting.
        # Corresponds to the JSON property `webTargeting`
        # @return [Google::Apis::RealtimebiddingV1::StringTargetingDimension]
        attr_accessor :web_targeting
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @allowed_user_targeting_modes = args[:allowed_user_targeting_modes] if args.key?(:allowed_user_targeting_modes)
          @app_targeting = args[:app_targeting] if args.key?(:app_targeting)
          @billing_id = args[:billing_id] if args.key?(:billing_id)
          @display_name = args[:display_name] if args.key?(:display_name)
          @excluded_content_label_ids = args[:excluded_content_label_ids] if args.key?(:excluded_content_label_ids)
          @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting)
          @included_creative_dimensions = args[:included_creative_dimensions] if args.key?(:included_creative_dimensions)
          @included_environments = args[:included_environments] if args.key?(:included_environments)
          @included_formats = args[:included_formats] if args.key?(:included_formats)
          @included_languages = args[:included_languages] if args.key?(:included_languages)
          @included_mobile_operating_system_ids = args[:included_mobile_operating_system_ids] if args.key?(:included_mobile_operating_system_ids)
          @included_platforms = args[:included_platforms] if args.key?(:included_platforms)
          @included_user_id_types = args[:included_user_id_types] if args.key?(:included_user_id_types)
          @interstitial_targeting = args[:interstitial_targeting] if args.key?(:interstitial_targeting)
          @invalid_geo_ids = args[:invalid_geo_ids] if args.key?(:invalid_geo_ids)
          @maximum_qps = args[:maximum_qps] if args.key?(:maximum_qps)
          @minimum_viewability_decile = args[:minimum_viewability_decile] if args.key?(:minimum_viewability_decile)
          @name = args[:name] if args.key?(:name)
          @publisher_targeting = args[:publisher_targeting] if args.key?(:publisher_targeting)
          @state = args[:state] if args.key?(:state)
          @user_list_targeting = args[:user_list_targeting] if args.key?(:user_list_targeting)
          @vertical_targeting = args[:vertical_targeting] if args.key?(:vertical_targeting)
          @web_targeting = args[:web_targeting] if args.key?(:web_targeting)
        end
      end
      
      # A request to stop targeting the provided apps in a specific pretargeting
      # configuration. The pretargeting configuration itself specifies how these apps
      # are targeted. in PretargetingConfig.appTargeting.mobileAppTargeting.
      class RemoveTargetedAppsRequest
        include Google::Apis::Core::Hashable
      
        # A list of app IDs to stop targeting in the pretargeting configuration. These
        # values will be removed from the list of targeted app IDs in PretargetingConfig.
        # appTargeting.mobileAppTargeting.values.
        # Corresponds to the JSON property `appIds`
        # @return [Array<String>]
        attr_accessor :app_ids
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @app_ids = args[:app_ids] if args.key?(:app_ids)
        end
      end
      
      # A request to stop targeting publishers in a specific configuration. The
      # pretargeting configuration itself specifies how these publishers are targeted
      # in PretargetingConfig.publisherTargeting.
      class RemoveTargetedPublishersRequest
        include Google::Apis::Core::Hashable
      
        # A list of publisher IDs to stop targeting in the pretargeting configuration.
        # These values will be removed from the list of targeted publisher IDs in
        # PretargetingConfig.publisherTargeting.values. Publishers are identified by
        # their publisher ID from ads.txt / app-ads.txt. See https://iabtechlab.com/ads-
        # txt/ and https://iabtechlab.com/app-ads-txt/ for more details.
        # Corresponds to the JSON property `publisherIds`
        # @return [Array<String>]
        attr_accessor :publisher_ids
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @publisher_ids = args[:publisher_ids] if args.key?(:publisher_ids)
        end
      end
      
      # A request to stop targeting sites in a specific pretargeting configuration.
      # The pretargeting configuration itself specifies how these sites are targeted
      # in PretargetingConfig.webTargeting.
      class RemoveTargetedSitesRequest
        include Google::Apis::Core::Hashable
      
        # A list of site URLs to stop targeting in the pretargeting configuration. These
        # values will be removed from the list of targeted URLs in PretargetingConfig.
        # webTargeting.values.
        # Corresponds to the JSON property `sites`
        # @return [Array<String>]
        attr_accessor :sites
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @sites = args[:sites] if args.key?(:sites)
        end
      end
      
      # Generic targeting with string values used in app, website and publisher
      # targeting.
      class StringTargetingDimension
        include Google::Apis::Core::Hashable
      
        # How the items in this list should be targeted.
        # Corresponds to the JSON property `targetingMode`
        # @return [String]
        attr_accessor :targeting_mode
      
        # The values specified.
        # Corresponds to the JSON property `values`
        # @return [Array<String>]
        attr_accessor :values
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @targeting_mode = args[:targeting_mode] if args.key?(:targeting_mode)
          @values = args[:values] if args.key?(:values)
        end
      end
      
      # A request to suspend a pretargeting configuration. Sets the configuration's
      # state to SUSPENDED.
      class SuspendPretargetingConfigRequest
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # The URL-level breakdown for the download size.
      class UrlDownloadSize
        include Google::Apis::Core::Hashable
      
        # Download size of the URL in kilobytes.
        # Corresponds to the JSON property `downloadSizeKb`
        # @return [Fixnum]
        attr_accessor :download_size_kb
      
        # The normalized URL with query parameters and fragment removed.
        # Corresponds to the JSON property `normalizedUrl`
        # @return [String]
        attr_accessor :normalized_url
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @download_size_kb = args[:download_size_kb] if args.key?(:download_size_kb)
          @normalized_url = args[:normalized_url] if args.key?(:normalized_url)
        end
      end
      
      # Represents the URL restriction (for the URL captured by the pixel callback)
      # for a user list.
      class UrlRestriction
        include Google::Apis::Core::Hashable
      
        # 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 value, with a zero year, such as an anniversary * A year on its own,
        # with zero month and day values * A year and month value, with a zero day, such
        # as a credit card expiration date Related types are google.type.TimeOfDay and `
        # google.protobuf.Timestamp`.
        # Corresponds to the JSON property `endDate`
        # @return [Google::Apis::RealtimebiddingV1::Date]
        attr_accessor :end_date
      
        # The restriction type for the specified URL.
        # Corresponds to the JSON property `restrictionType`
        # @return [String]
        attr_accessor :restriction_type
      
        # 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 value, with a zero year, such as an anniversary * A year on its own,
        # with zero month and day values * A year and month value, with a zero day, such
        # as a credit card expiration date Related types are google.type.TimeOfDay and `
        # google.protobuf.Timestamp`.
        # Corresponds to the JSON property `startDate`
        # @return [Google::Apis::RealtimebiddingV1::Date]
        attr_accessor :start_date
      
        # Required. The URL to use for applying the restriction on the user list.
        # Corresponds to the JSON property `url`
        # @return [String]
        attr_accessor :url
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @end_date = args[:end_date] if args.key?(:end_date)
          @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
          @start_date = args[:start_date] if args.key?(:start_date)
          @url = args[:url] if args.key?(:url)
        end
      end
      
      # Represents an Authorized Buyers user list. Authorized Buyers can create/update/
      # list user lists. Once a user list is created in the system, Authorized Buyers
      # can add users to the user list using the bulk uploader API. Alternatively,
      # users can be added by hosting a tag on the advertiser's page.
      class UserList
        include Google::Apis::Core::Hashable
      
        # The description for the user list.
        # Corresponds to the JSON property `description`
        # @return [String]
        attr_accessor :description
      
        # Required. Display name of the user list. This must be unique across all user
        # lists for a given account.
        # Corresponds to the JSON property `displayName`
        # @return [String]
        attr_accessor :display_name
      
        # Required. The number of days a user's cookie stays on the user list. The field
        # must be between 0 and 540 inclusive.
        # Corresponds to the JSON property `membershipDurationDays`
        # @return [Fixnum]
        attr_accessor :membership_duration_days
      
        # Output only. Name of the user list that must follow the pattern `buyers/`buyer`
        # /userLists/`user_list``, where ``buyer`` represents the account ID of the
        # buyer who owns the user list. For a bidder accessing user lists on behalf of a
        # child seat buyer, ``buyer`` represents the account ID of the child seat buyer.
        # ``user_list`` is an int64 identifier assigned by Google to uniquely identify a
        # user list.
        # Corresponds to the JSON property `name`
        # @return [String]
        attr_accessor :name
      
        # Output only. The status of the user list. A new user list starts out as open.
        # Corresponds to the JSON property `status`
        # @return [String]
        attr_accessor :status
      
        # Represents the URL restriction (for the URL captured by the pixel callback)
        # for a user list.
        # Corresponds to the JSON property `urlRestriction`
        # @return [Google::Apis::RealtimebiddingV1::UrlRestriction]
        attr_accessor :url_restriction
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @description = args[:description] if args.key?(:description)
          @display_name = args[:display_name] if args.key?(:display_name)
          @membership_duration_days = args[:membership_duration_days] if args.key?(:membership_duration_days)
          @name = args[:name] if args.key?(:name)
          @status = args[:status] if args.key?(:status)
          @url_restriction = args[:url_restriction] if args.key?(:url_restriction)
        end
      end
      
      # Video content for a creative.
      class VideoContent
        include Google::Apis::Core::Hashable
      
        # Video metadata for a creative.
        # Corresponds to the JSON property `videoMetadata`
        # @return [Google::Apis::RealtimebiddingV1::VideoMetadata]
        attr_accessor :video_metadata
      
        # The URL to fetch a video ad.
        # Corresponds to the JSON property `videoUrl`
        # @return [String]
        attr_accessor :video_url
      
        # The contents of a VAST document for a video ad. This document should conform
        # to the VAST 2.0 or 3.0 standard.
        # Corresponds to the JSON property `videoVastXml`
        # @return [String]
        attr_accessor :video_vast_xml
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
          @video_url = args[:video_url] if args.key?(:video_url)
          @video_vast_xml = args[:video_vast_xml] if args.key?(:video_vast_xml)
        end
      end
      
      # Video metadata for a creative.
      class VideoMetadata
        include Google::Apis::Core::Hashable
      
        # The duration of the ad. Can be used to filter the response of the creatives.
        # list method.
        # Corresponds to the JSON property `duration`
        # @return [String]
        attr_accessor :duration
      
        # Is this a valid VAST ad? Can be used to filter the response of the creatives.
        # list method.
        # Corresponds to the JSON property `isValidVast`
        # @return [Boolean]
        attr_accessor :is_valid_vast
        alias_method :is_valid_vast?, :is_valid_vast
      
        # Is this a VPAID ad? Can be used to filter the response of the creatives.list
        # method.
        # Corresponds to the JSON property `isVpaid`
        # @return [Boolean]
        attr_accessor :is_vpaid
        alias_method :is_vpaid?, :is_vpaid
      
        # The list of all media files declared in the VAST. If there are multiple VASTs
        # in a wrapper chain, this includes the media files from the deepest one in the
        # chain.
        # Corresponds to the JSON property `mediaFiles`
        # @return [Array<Google::Apis::RealtimebiddingV1::MediaFile>]
        attr_accessor :media_files
      
        # The minimum duration that the user has to watch before being able to skip this
        # ad. If the field is not set, the ad is not skippable. If the field is set, the
        # ad is skippable. Can be used to filter the response of the creatives.list
        # method.
        # Corresponds to the JSON property `skipOffset`
        # @return [String]
        attr_accessor :skip_offset
      
        # The maximum VAST version across all wrapped VAST documents. Can be used to
        # filter the response of the creatives.list method.
        # Corresponds to the JSON property `vastVersion`
        # @return [String]
        attr_accessor :vast_version
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @duration = args[:duration] if args.key?(:duration)
          @is_valid_vast = args[:is_valid_vast] if args.key?(:is_valid_vast)
          @is_vpaid = args[:is_vpaid] if args.key?(:is_vpaid)
          @media_files = args[:media_files] if args.key?(:media_files)
          @skip_offset = args[:skip_offset] if args.key?(:skip_offset)
          @vast_version = args[:vast_version] if args.key?(:vast_version)
        end
      end
      
      # A request to receive push notifications when any of the creatives belonging to
      # the bidder changes status.
      class WatchCreativesRequest
        include Google::Apis::Core::Hashable
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
        end
      end
      
      # A response for the request to receive push notification when a bidder's
      # creatives change status.
      class WatchCreativesResponse
        include Google::Apis::Core::Hashable
      
        # The Pub/Sub subscription that can be used to pull creative status
        # notifications. This would be of the format `projects/`project_id`/
        # subscriptions/`subscription_id``. Subscription is created with pull delivery.
        # All service accounts belonging to the bidder will have read access to this
        # subscription. Subscriptions that are inactive for more than 90 days will be
        # disabled. Please use watchCreatives to re-enable the subscription.
        # Corresponds to the JSON property `subscription`
        # @return [String]
        attr_accessor :subscription
      
        # The Pub/Sub topic that will be used to publish creative serving status
        # notifications. This would be of the format `projects/`project_id`/topics/`
        # topic_id``.
        # Corresponds to the JSON property `topic`
        # @return [String]
        attr_accessor :topic
      
        def initialize(**args)
           update!(**args)
        end
      
        # Update properties of this object
        def update!(**args)
          @subscription = args[:subscription] if args.key?(:subscription)
          @topic = args[:topic] if args.key?(:topic)
        end
      end
    end
  end
end