google-api-client 0.9.8 → 0.9.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +37 -0
  3. data/Gemfile +9 -1
  4. data/README.md +10 -2
  5. data/api_names.yaml +63 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  16. data/generated/google/apis/admin_directory_v1.rb +1 -1
  17. data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
  18. data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
  19. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  20. data/generated/google/apis/admin_reports_v1.rb +3 -3
  21. data/generated/google/apis/admin_reports_v1/service.rb +2 -2
  22. data/generated/google/apis/adsense_v1_4.rb +1 -1
  23. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  24. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  26. data/generated/google/apis/analytics_v3.rb +1 -1
  27. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  28. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  29. data/generated/google/apis/analytics_v3/service.rb +217 -0
  30. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  31. data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
  38. data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
  39. data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
  40. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  41. data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
  42. data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
  43. data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
  44. data/generated/google/apis/appsactivity_v1.rb +1 -1
  45. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  46. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  47. data/generated/google/apis/appstate_v1.rb +1 -1
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +277 -20
  50. data/generated/google/apis/bigquery_v2/representations.rb +86 -0
  51. data/generated/google/apis/bigquery_v2/service.rb +8 -2
  52. data/generated/google/apis/books_v1.rb +2 -2
  53. data/generated/google/apis/books_v1/classes.rb +79 -1
  54. data/generated/google/apis/books_v1/representations.rb +34 -0
  55. data/generated/google/apis/books_v1/service.rb +7 -3
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/civicinfo_v2.rb +3 -2
  58. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  59. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  60. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  61. data/generated/google/apis/classroom_v1.rb +1 -1
  62. data/generated/google/apis/classroom_v1/classes.rb +183 -37
  63. data/generated/google/apis/classroom_v1/representations.rb +74 -9
  64. data/generated/google/apis/classroom_v1/service.rb +403 -38
  65. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  66. data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
  67. data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
  68. data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
  69. data/generated/google/apis/clouddebugger_v2.rb +3 -6
  70. data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
  71. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  72. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  73. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
  74. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
  75. data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
  76. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  77. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +2299 -434
  82. data/generated/google/apis/compute_beta/representations.rb +752 -33
  83. data/generated/google/apis/compute_beta/service.rb +6067 -3153
  84. data/generated/google/apis/compute_v1.rb +1 -1
  85. data/generated/google/apis/compute_v1/classes.rb +1681 -207
  86. data/generated/google/apis/compute_v1/representations.rb +552 -0
  87. data/generated/google/apis/compute_v1/service.rb +2797 -1171
  88. data/generated/google/apis/content_v2.rb +1 -1
  89. data/generated/google/apis/content_v2/classes.rb +757 -1
  90. data/generated/google/apis/content_v2/representations.rb +337 -0
  91. data/generated/google/apis/content_v2/service.rb +244 -0
  92. data/generated/google/apis/dataflow_v1b3.rb +38 -0
  93. data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
  94. data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
  95. data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
  96. data/generated/google/apis/dataproc_v1.rb +2 -2
  97. data/generated/google/apis/dataproc_v1/classes.rb +213 -68
  98. data/generated/google/apis/dataproc_v1/representations.rb +38 -0
  99. data/generated/google/apis/dataproc_v1/service.rb +78 -48
  100. data/generated/google/apis/datastore_v1.rb +38 -0
  101. data/generated/google/apis/datastore_v1/classes.rb +1284 -0
  102. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  103. data/generated/google/apis/datastore_v1/service.rb +259 -0
  104. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  105. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  106. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  107. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  108. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  109. data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
  110. data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
  111. data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
  112. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  113. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  114. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  115. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  116. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  117. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  118. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  119. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +1 -1
  122. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  123. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  124. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +27 -3
  129. data/generated/google/apis/drive_v2/representations.rb +4 -0
  130. data/generated/google/apis/drive_v2/service.rb +16 -3
  131. data/generated/google/apis/drive_v3.rb +1 -1
  132. data/generated/google/apis/drive_v3/classes.rb +50 -16
  133. data/generated/google/apis/drive_v3/representations.rb +4 -0
  134. data/generated/google/apis/drive_v3/service.rb +12 -2
  135. data/generated/google/apis/fitness_v1.rb +8 -2
  136. data/generated/google/apis/fitness_v1/classes.rb +64 -6
  137. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  138. data/generated/google/apis/fitness_v1/service.rb +17 -18
  139. data/generated/google/apis/fusiontables_v2.rb +1 -1
  140. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_management_v1management.rb +1 -1
  143. data/generated/google/apis/games_v1.rb +1 -1
  144. data/generated/google/apis/genomics_v1.rb +2 -4
  145. data/generated/google/apis/genomics_v1/classes.rb +143 -34
  146. data/generated/google/apis/genomics_v1/representations.rb +48 -11
  147. data/generated/google/apis/genomics_v1/service.rb +35 -37
  148. data/generated/google/apis/gmail_v1.rb +10 -1
  149. data/generated/google/apis/gmail_v1/classes.rb +542 -4
  150. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  151. data/generated/google/apis/gmail_v1/service.rb +898 -1
  152. data/generated/google/apis/groupssettings_v1.rb +1 -1
  153. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  154. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  155. data/generated/google/apis/iam_v1.rb +2 -2
  156. data/generated/google/apis/iam_v1/classes.rb +181 -206
  157. data/generated/google/apis/iam_v1/representations.rb +36 -45
  158. data/generated/google/apis/iam_v1/service.rb +101 -67
  159. data/generated/google/apis/identitytoolkit_v3.rb +4 -1
  160. data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
  161. data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
  162. data/generated/google/apis/language_v1beta1.rb +36 -0
  163. data/generated/google/apis/language_v1beta1/classes.rb +599 -0
  164. data/generated/google/apis/language_v1beta1/representations.rb +289 -0
  165. data/generated/google/apis/language_v1beta1/service.rb +152 -0
  166. data/generated/google/apis/logging_v2beta1.rb +6 -6
  167. data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
  168. data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
  169. data/generated/google/apis/logging_v2beta1/service.rb +290 -209
  170. data/generated/google/apis/mirror_v1.rb +2 -2
  171. data/generated/google/apis/mirror_v1/service.rb +1 -1
  172. data/generated/google/apis/monitoring_v3.rb +45 -0
  173. data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
  174. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  175. data/generated/google/apis/monitoring_v3/service.rb +711 -0
  176. data/generated/google/apis/oauth2_v2.rb +1 -1
  177. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  178. data/generated/google/apis/plus_domains_v1.rb +1 -1
  179. data/generated/google/apis/plus_v1.rb +1 -1
  180. data/generated/google/apis/pubsub_v1.rb +1 -1
  181. data/generated/google/apis/pubsub_v1/classes.rb +10 -9
  182. data/generated/google/apis/pubsub_v1/service.rb +128 -27
  183. data/generated/google/apis/qpx_express_v1.rb +1 -1
  184. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  185. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  186. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  187. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  188. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  189. data/generated/google/apis/script_v1.rb +1 -1
  190. data/generated/google/apis/script_v1/classes.rb +6 -0
  191. data/generated/google/apis/script_v1/representations.rb +1 -0
  192. data/generated/google/apis/sheets_v4.rb +1 -1
  193. data/generated/google/apis/sheets_v4/classes.rb +910 -89
  194. data/generated/google/apis/sheets_v4/representations.rb +194 -10
  195. data/generated/google/apis/sheets_v4/service.rb +216 -49
  196. data/generated/google/apis/slides_v1.rb +49 -0
  197. data/generated/google/apis/slides_v1/classes.rb +3926 -0
  198. data/generated/google/apis/slides_v1/representations.rb +1722 -0
  199. data/generated/google/apis/slides_v1/service.rb +202 -0
  200. data/generated/google/apis/speech_v1beta1.rb +34 -0
  201. data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
  202. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  203. data/generated/google/apis/speech_v1beta1/service.rb +271 -0
  204. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  205. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
  206. data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
  207. data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
  208. data/generated/google/apis/storage_v1.rb +1 -1
  209. data/generated/google/apis/storage_v1/classes.rb +43 -18
  210. data/generated/google/apis/storage_v1/representations.rb +4 -1
  211. data/generated/google/apis/storage_v1/service.rb +5 -2
  212. data/generated/google/apis/translate_v2.rb +2 -2
  213. data/generated/google/apis/translate_v2/service.rb +1 -1
  214. data/generated/google/apis/vision_v1.rb +1 -1
  215. data/generated/google/apis/vision_v1/classes.rb +12 -11
  216. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  217. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  218. data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
  219. data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
  220. data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
  221. data/generated/google/apis/youtube_v3.rb +1 -1
  222. data/generated/google/apis/youtube_v3/classes.rb +183 -21
  223. data/generated/google/apis/youtube_v3/representations.rb +85 -4
  224. data/generated/google/apis/youtube_v3/service.rb +41 -5
  225. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  226. data/google-api-client.gemspec +2 -1
  227. data/lib/google/apis/core/api_command.rb +4 -0
  228. data/lib/google/apis/core/base_service.rb +10 -4
  229. data/lib/google/apis/core/download.rb +7 -2
  230. data/lib/google/apis/core/http_command.rb +5 -1
  231. data/lib/google/apis/core/upload.rb +7 -1
  232. data/lib/google/apis/errors.rb +2 -2
  233. data/lib/google/apis/generator/annotator.rb +6 -0
  234. data/lib/google/apis/version.rb +1 -1
  235. data/samples/cli/lib/samples/bigquery.rb +101 -0
  236. data/samples/cli/lib/samples/sheets.rb +61 -0
  237. data/sync.rb +71 -0
  238. metadata +55 -13
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest
27
27
  module AdexchangebuyerV1_4
28
28
  VERSION = 'V1_4'
29
- REVISION = '20160509'
29
+ REVISION = '20161020'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -93,11 +93,12 @@ module Google
93
93
 
94
94
  # The protocol that the bidder endpoint is using. By default, OpenRTB protocols
95
95
  # use JSON, except PROTOCOL_OPENRTB_PROTOBUF. PROTOCOL_OPENRTB_PROTOBUF uses
96
- # protobuf encoding over the latest OpenRTB protocol version, which is 2.3 right
96
+ # protobuf encoding over the latest OpenRTB protocol version, which is 2.4 right
97
97
  # now. Allowed values:
98
98
  # - PROTOCOL_ADX
99
99
  # - PROTOCOL_OPENRTB_2_2
100
100
  # - PROTOCOL_OPENRTB_2_3
101
+ # - PROTOCOL_OPENRTB_2_4
101
102
  # - PROTOCOL_OPENRTB_PROTOBUF
102
103
  # Corresponds to the JSON property `bidProtocol`
103
104
  # @return [String]
@@ -535,6 +536,12 @@ module Google
535
536
  # @return [String]
536
537
  attr_accessor :deals_status
537
538
 
539
+ # Detected domains for this creative. Read-only. This field should not be set in
540
+ # requests.
541
+ # Corresponds to the JSON property `detectedDomains`
542
+ # @return [Array<String>]
543
+ attr_accessor :detected_domains
544
+
538
545
  # The filtering reasons for the creative. Read-only. This field should not be
539
546
  # set in requests.
540
547
  # Corresponds to the JSON property `filteringReasons`
@@ -556,7 +563,14 @@ module Google
556
563
  # @return [String]
557
564
  attr_accessor :kind
558
565
 
559
- # If nativeAd is set, HTMLSnippet and videoURL should not be set.
566
+ # Detected languages for this creative. Read-only. This field should not be set
567
+ # in requests.
568
+ # Corresponds to the JSON property `languages`
569
+ # @return [Array<String>]
570
+ attr_accessor :languages
571
+
572
+ # If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
573
+ # not be set. (The videoURL inside nativeAd can be set.)
560
574
  # Corresponds to the JSON property `nativeAd`
561
575
  # @return [Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd]
562
576
  attr_accessor :native_ad
@@ -606,7 +620,8 @@ module Google
606
620
  # @return [Fixnum]
607
621
  attr_accessor :version
608
622
 
609
- # The url to fetch a video ad. If set, HTMLSnippet should not be set.
623
+ # The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not
624
+ # be set. Note, this is different from resource.native_ad.video_url above.
610
625
  # Corresponds to the JSON property `videoURL`
611
626
  # @return [String]
612
627
  attr_accessor :video_url
@@ -634,10 +649,12 @@ module Google
634
649
  @click_through_url = args[:click_through_url] if args.key?(:click_through_url)
635
650
  @corrections = args[:corrections] if args.key?(:corrections)
636
651
  @deals_status = args[:deals_status] if args.key?(:deals_status)
652
+ @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
637
653
  @filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons)
638
654
  @height = args[:height] if args.key?(:height)
639
655
  @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url)
640
656
  @kind = args[:kind] if args.key?(:kind)
657
+ @languages = args[:languages] if args.key?(:languages)
641
658
  @native_ad = args[:native_ad] if args.key?(:native_ad)
642
659
  @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
643
660
  @product_categories = args[:product_categories] if args.key?(:product_categories)
@@ -654,6 +671,11 @@ module Google
654
671
  class Correction
655
672
  include Google::Apis::Core::Hashable
656
673
 
674
+ # All known serving contexts containing serving status information.
675
+ # Corresponds to the JSON property `contexts`
676
+ # @return [Array<Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Context>]
677
+ attr_accessor :contexts
678
+
657
679
  # Additional details about the correction.
658
680
  # Corresponds to the JSON property `details`
659
681
  # @return [Array<String>]
@@ -670,9 +692,50 @@ module Google
670
692
 
671
693
  # Update properties of this object
672
694
  def update!(**args)
695
+ @contexts = args[:contexts] if args.key?(:contexts)
673
696
  @details = args[:details] if args.key?(:details)
674
697
  @reason = args[:reason] if args.key?(:reason)
675
698
  end
699
+
700
+ #
701
+ class Context
702
+ include Google::Apis::Core::Hashable
703
+
704
+ # Only set when contextType=AUCTION_TYPE. Represents the auction types this
705
+ # correction applies to.
706
+ # Corresponds to the JSON property `auctionType`
707
+ # @return [Array<String>]
708
+ attr_accessor :auction_type
709
+
710
+ # The type of context (e.g., location, platform, auction type, SSL-ness).
711
+ # Corresponds to the JSON property `contextType`
712
+ # @return [String]
713
+ attr_accessor :context_type
714
+
715
+ # Only set when contextType=LOCATION. Represents the geo criterias this
716
+ # correction applies to.
717
+ # Corresponds to the JSON property `geoCriteriaId`
718
+ # @return [Array<Fixnum>]
719
+ attr_accessor :geo_criteria_id
720
+
721
+ # Only set when contextType=PLATFORM. Represents the platforms this correction
722
+ # applies to.
723
+ # Corresponds to the JSON property `platform`
724
+ # @return [Array<String>]
725
+ attr_accessor :platform
726
+
727
+ def initialize(**args)
728
+ update!(**args)
729
+ end
730
+
731
+ # Update properties of this object
732
+ def update!(**args)
733
+ @auction_type = args[:auction_type] if args.key?(:auction_type)
734
+ @context_type = args[:context_type] if args.key?(:context_type)
735
+ @geo_criteria_id = args[:geo_criteria_id] if args.key?(:geo_criteria_id)
736
+ @platform = args[:platform] if args.key?(:platform)
737
+ end
738
+ end
676
739
  end
677
740
 
678
741
  # The filtering reasons for the creative. Read-only. This field should not be
@@ -729,7 +792,8 @@ module Google
729
792
  end
730
793
  end
731
794
 
732
- # If nativeAd is set, HTMLSnippet and videoURL should not be set.
795
+ # If nativeAd is set, HTMLSnippet and the videoURL outside of nativeAd should
796
+ # not be set. (The videoURL inside nativeAd can be set.)
733
797
  class NativeAd
734
798
  include Google::Apis::Core::Hashable
735
799
 
@@ -753,6 +817,11 @@ module Google
753
817
  # @return [String]
754
818
  attr_accessor :call_to_action
755
819
 
820
+ # The URL that the browser/SDK will load when the user clicks the ad.
821
+ # Corresponds to the JSON property `clickLinkUrl`
822
+ # @return [String]
823
+ attr_accessor :click_link_url
824
+
756
825
  # The URL to use for click tracking.
757
826
  # Corresponds to the JSON property `clickTrackingUrl`
758
827
  # @return [String]
@@ -793,6 +862,12 @@ module Google
793
862
  # @return [String]
794
863
  attr_accessor :store
795
864
 
865
+ # The URL of the XML VAST for a native ad. Note this is a separate field from
866
+ # resource.video_url.
867
+ # Corresponds to the JSON property `videoURL`
868
+ # @return [String]
869
+ attr_accessor :video_url
870
+
796
871
  def initialize(**args)
797
872
  update!(**args)
798
873
  end
@@ -803,6 +878,7 @@ module Google
803
878
  @app_icon = args[:app_icon] if args.key?(:app_icon)
804
879
  @body = args[:body] if args.key?(:body)
805
880
  @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
881
+ @click_link_url = args[:click_link_url] if args.key?(:click_link_url)
806
882
  @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
807
883
  @headline = args[:headline] if args.key?(:headline)
808
884
  @image = args[:image] if args.key?(:image)
@@ -811,6 +887,7 @@ module Google
811
887
  @price = args[:price] if args.key?(:price)
812
888
  @star_rating = args[:star_rating] if args.key?(:star_rating)
813
889
  @store = args[:store] if args.key?(:store)
890
+ @video_url = args[:video_url] if args.key?(:video_url)
814
891
  end
815
892
 
816
893
  # The app icon, for app download ads.
@@ -1009,6 +1086,62 @@ module Google
1009
1086
  end
1010
1087
  end
1011
1088
 
1089
+ # The external deal ids associated with a creative.
1090
+ class CreativeDealIds
1091
+ include Google::Apis::Core::Hashable
1092
+
1093
+ # A list of external deal ids and ARC approval status.
1094
+ # Corresponds to the JSON property `dealStatuses`
1095
+ # @return [Array<Google::Apis::AdexchangebuyerV1_4::CreativeDealIds::DealStatus>]
1096
+ attr_accessor :deal_statuses
1097
+
1098
+ # Resource type.
1099
+ # Corresponds to the JSON property `kind`
1100
+ # @return [String]
1101
+ attr_accessor :kind
1102
+
1103
+ def initialize(**args)
1104
+ update!(**args)
1105
+ end
1106
+
1107
+ # Update properties of this object
1108
+ def update!(**args)
1109
+ @deal_statuses = args[:deal_statuses] if args.key?(:deal_statuses)
1110
+ @kind = args[:kind] if args.key?(:kind)
1111
+ end
1112
+
1113
+ #
1114
+ class DealStatus
1115
+ include Google::Apis::Core::Hashable
1116
+
1117
+ # ARC approval status.
1118
+ # Corresponds to the JSON property `arcStatus`
1119
+ # @return [String]
1120
+ attr_accessor :arc_status
1121
+
1122
+ # External deal ID.
1123
+ # Corresponds to the JSON property `dealId`
1124
+ # @return [String]
1125
+ attr_accessor :deal_id
1126
+
1127
+ # Publisher ID.
1128
+ # Corresponds to the JSON property `webPropertyId`
1129
+ # @return [Fixnum]
1130
+ attr_accessor :web_property_id
1131
+
1132
+ def initialize(**args)
1133
+ update!(**args)
1134
+ end
1135
+
1136
+ # Update properties of this object
1137
+ def update!(**args)
1138
+ @arc_status = args[:arc_status] if args.key?(:arc_status)
1139
+ @deal_id = args[:deal_id] if args.key?(:deal_id)
1140
+ @web_property_id = args[:web_property_id] if args.key?(:web_property_id)
1141
+ end
1142
+ end
1143
+ end
1144
+
1012
1145
  # The creatives feed lists the active creatives for the Ad Exchange buyer
1013
1146
  # accounts that the user has access to. Each entry in the feed corresponds to a
1014
1147
  # single creative.
@@ -1070,6 +1203,11 @@ module Google
1070
1203
  class DealServingMetadataDealPauseStatus
1071
1204
  include Google::Apis::Core::Hashable
1072
1205
 
1206
+ #
1207
+ # Corresponds to the JSON property `buyerPauseReason`
1208
+ # @return [String]
1209
+ attr_accessor :buyer_pause_reason
1210
+
1073
1211
  # If the deal is paused, records which party paused the deal first.
1074
1212
  # Corresponds to the JSON property `firstPausedBy`
1075
1213
  # @return [String]
@@ -1087,15 +1225,22 @@ module Google
1087
1225
  attr_accessor :has_seller_paused
1088
1226
  alias_method :has_seller_paused?, :has_seller_paused
1089
1227
 
1228
+ #
1229
+ # Corresponds to the JSON property `sellerPauseReason`
1230
+ # @return [String]
1231
+ attr_accessor :seller_pause_reason
1232
+
1090
1233
  def initialize(**args)
1091
1234
  update!(**args)
1092
1235
  end
1093
1236
 
1094
1237
  # Update properties of this object
1095
1238
  def update!(**args)
1239
+ @buyer_pause_reason = args[:buyer_pause_reason] if args.key?(:buyer_pause_reason)
1096
1240
  @first_paused_by = args[:first_paused_by] if args.key?(:first_paused_by)
1097
1241
  @has_buyer_paused = args[:has_buyer_paused] if args.key?(:has_buyer_paused)
1098
1242
  @has_seller_paused = args[:has_seller_paused] if args.key?(:has_seller_paused)
1243
+ @seller_pause_reason = args[:seller_pause_reason] if args.key?(:seller_pause_reason)
1099
1244
  end
1100
1245
  end
1101
1246
 
@@ -1108,6 +1253,13 @@ module Google
1108
1253
  # @return [String]
1109
1254
  attr_accessor :branding_type
1110
1255
 
1256
+ # Indicates that this ExternalDealId exists under at least two different
1257
+ # AdxInventoryDeals. Currently, the only case that the same ExternalDealId will
1258
+ # exist is programmatic cross sell case.
1259
+ # Corresponds to the JSON property `crossListedExternalDealIdType`
1260
+ # @return [String]
1261
+ attr_accessor :cross_listed_external_deal_id_type
1262
+
1111
1263
  # Description for the proposed terms of the deal.
1112
1264
  # Corresponds to the JSON property `description`
1113
1265
  # @return [String]
@@ -1140,6 +1292,11 @@ module Google
1140
1292
  # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms]
1141
1293
  attr_accessor :non_guaranteed_fixed_price_terms
1142
1294
 
1295
+ # The terms for rubicon non-guaranteed deals.
1296
+ # Corresponds to the JSON property `rubiconNonGuaranteedTerms`
1297
+ # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsRubiconNonGuaranteedTerms]
1298
+ attr_accessor :rubicon_non_guaranteed_terms
1299
+
1143
1300
  # For deals with Cost Per Day billing, defines the timezone used to mark the
1144
1301
  # boundaries of a day (buyer-readonly)
1145
1302
  # Corresponds to the JSON property `sellerTimeZone`
@@ -1153,12 +1310,14 @@ module Google
1153
1310
  # Update properties of this object
1154
1311
  def update!(**args)
1155
1312
  @branding_type = args[:branding_type] if args.key?(:branding_type)
1313
+ @cross_listed_external_deal_id_type = args[:cross_listed_external_deal_id_type] if args.key?(:cross_listed_external_deal_id_type)
1156
1314
  @description = args[:description] if args.key?(:description)
1157
1315
  @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend)
1158
1316
  @estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day)
1159
1317
  @guaranteed_fixed_price_terms = args[:guaranteed_fixed_price_terms] if args.key?(:guaranteed_fixed_price_terms)
1160
1318
  @non_guaranteed_auction_terms = args[:non_guaranteed_auction_terms] if args.key?(:non_guaranteed_auction_terms)
1161
1319
  @non_guaranteed_fixed_price_terms = args[:non_guaranteed_fixed_price_terms] if args.key?(:non_guaranteed_fixed_price_terms)
1320
+ @rubicon_non_guaranteed_terms = args[:rubicon_non_guaranteed_terms] if args.key?(:rubicon_non_guaranteed_terms)
1162
1321
  @seller_time_zone = args[:seller_time_zone] if args.key?(:seller_time_zone)
1163
1322
  end
1164
1323
  end
@@ -1184,11 +1343,18 @@ module Google
1184
1343
  # @return [String]
1185
1344
  attr_accessor :guaranteed_impressions
1186
1345
 
1187
- # Count of guaranteed looks. Required for deal, optional for product.
1346
+ # Count of guaranteed looks. Required for deal, optional for product. For CPD
1347
+ # deals, buyer changes to guaranteed_looks will be ignored.
1188
1348
  # Corresponds to the JSON property `guaranteedLooks`
1189
1349
  # @return [String]
1190
1350
  attr_accessor :guaranteed_looks
1191
1351
 
1352
+ # Count of minimum daily looks for a CPD deal. For CPD deals, buyer should
1353
+ # negotiate on this field instead of guaranteed_looks.
1354
+ # Corresponds to the JSON property `minimumDailyLooks`
1355
+ # @return [String]
1356
+ attr_accessor :minimum_daily_looks
1357
+
1192
1358
  def initialize(**args)
1193
1359
  update!(**args)
1194
1360
  end
@@ -1199,6 +1365,7 @@ module Google
1199
1365
  @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices)
1200
1366
  @guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions)
1201
1367
  @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks)
1368
+ @minimum_daily_looks = args[:minimum_daily_looks] if args.key?(:minimum_daily_looks)
1202
1369
  end
1203
1370
  end
1204
1371
 
@@ -1213,9 +1380,16 @@ module Google
1213
1380
  # @return [String]
1214
1381
  attr_accessor :currency_conversion_time_ms
1215
1382
 
1383
+ # The DFP line item id associated with this deal. For features like CPD, buyers
1384
+ # can retrieve the DFP line item for billing reconciliation.
1385
+ # Corresponds to the JSON property `dfpLineItemId`
1386
+ # @return [String]
1387
+ attr_accessor :dfp_line_item_id
1388
+
1216
1389
  # The original contracted quantity (# impressions) for this deal. To ensure
1217
- # delivery, sometimes publisher will book the deal with a impression buffer,
1218
- # however clients are billed using the original contracted quantity.
1390
+ # delivery, sometimes the publisher will book the deal with a impression buffer,
1391
+ # such that guaranteed_looks is greater than the contracted quantity. However
1392
+ # clients are billed using the original contracted quantity.
1219
1393
  # Corresponds to the JSON property `originalContractedQuantity`
1220
1394
  # @return [String]
1221
1395
  attr_accessor :original_contracted_quantity
@@ -1233,6 +1407,7 @@ module Google
1233
1407
  # Update properties of this object
1234
1408
  def update!(**args)
1235
1409
  @currency_conversion_time_ms = args[:currency_conversion_time_ms] if args.key?(:currency_conversion_time_ms)
1410
+ @dfp_line_item_id = args[:dfp_line_item_id] if args.key?(:dfp_line_item_id)
1236
1411
  @original_contracted_quantity = args[:original_contracted_quantity] if args.key?(:original_contracted_quantity)
1237
1412
  @price = args[:price] if args.key?(:price)
1238
1413
  end
@@ -1284,6 +1459,31 @@ module Google
1284
1459
  end
1285
1460
  end
1286
1461
 
1462
+ #
1463
+ class DealTermsRubiconNonGuaranteedTerms
1464
+ include Google::Apis::Core::Hashable
1465
+
1466
+ # Optional price for Rubicon priority access in the auction.
1467
+ # Corresponds to the JSON property `priorityPrice`
1468
+ # @return [Google::Apis::AdexchangebuyerV1_4::Price]
1469
+ attr_accessor :priority_price
1470
+
1471
+ # Optional price for Rubicon standard access in the auction.
1472
+ # Corresponds to the JSON property `standardPrice`
1473
+ # @return [Google::Apis::AdexchangebuyerV1_4::Price]
1474
+ attr_accessor :standard_price
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @priority_price = args[:priority_price] if args.key?(:priority_price)
1483
+ @standard_price = args[:standard_price] if args.key?(:standard_price)
1484
+ end
1485
+ end
1486
+
1287
1487
  #
1288
1488
  class DeleteOrderDealsRequest
1289
1489
  include Google::Apis::Core::Hashable
@@ -1438,11 +1638,19 @@ module Google
1438
1638
  # @return [Fixnum]
1439
1639
  attr_accessor :id
1440
1640
 
1441
- # Name of the dimension mainly for debugging purposes.
1641
+ # Name of the dimension mainly for debugging purposes, except for the case of
1642
+ # CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids.
1442
1643
  # Corresponds to the JSON property `name`
1443
1644
  # @return [String]
1444
1645
  attr_accessor :name
1445
1646
 
1647
+ # Percent of total impressions for a dimension type. e.g. `dimension_type: '
1648
+ # GENDER', [`dimension_value: `id: 1, name: 'MALE', percentage: 60``]` Gender
1649
+ # MALE is 60% of all impressions which have gender.
1650
+ # Corresponds to the JSON property `percentage`
1651
+ # @return [Fixnum]
1652
+ attr_accessor :percentage
1653
+
1446
1654
  def initialize(**args)
1447
1655
  update!(**args)
1448
1656
  end
@@ -1451,6 +1659,7 @@ module Google
1451
1659
  def update!(**args)
1452
1660
  @id = args[:id] if args.key?(:id)
1453
1661
  @name = args[:name] if args.key?(:name)
1662
+ @percentage = args[:percentage] if args.key?(:percentage)
1454
1663
  end
1455
1664
  end
1456
1665
 
@@ -1574,7 +1783,10 @@ module Google
1574
1783
  class GetOrderNotesResponse
1575
1784
  include Google::Apis::Core::Hashable
1576
1785
 
1577
- # The list of matching notes.
1786
+ # The list of matching notes. The notes for a proposal are ordered from oldest
1787
+ # to newest. If the notes span multiple proposals, they will be grouped by
1788
+ # proposal, with the notes for the most recently modified proposal appearing
1789
+ # first.
1578
1790
  # Corresponds to the JSON property `notes`
1579
1791
  # @return [Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceNote>]
1580
1792
  attr_accessor :notes
@@ -1652,7 +1864,7 @@ module Google
1652
1864
  # @return [String]
1653
1865
  attr_accessor :creative_safe_frame_compatibility
1654
1866
 
1655
- # A unique deal=id for the deal (readonly).
1867
+ # A unique deal-id for the deal (readonly).
1656
1868
  # Corresponds to the JSON property `dealId`
1657
1869
  # @return [String]
1658
1870
  attr_accessor :deal_id
@@ -1694,6 +1906,13 @@ module Google
1694
1906
  # @return [String]
1695
1907
  attr_accessor :inventory_description
1696
1908
 
1909
+ # Indicates whether the current deal is a RFP template. RFP template is created
1910
+ # by buyer and not based on seller created products.
1911
+ # Corresponds to the JSON property `isRfpTemplate`
1912
+ # @return [Boolean]
1913
+ attr_accessor :is_rfp_template
1914
+ alias_method :is_rfp_template?, :is_rfp_template
1915
+
1697
1916
  # Identifies what kind of resource this is. Value: the fixed string "
1698
1917
  # adexchangebuyer#marketplaceDeal".
1699
1918
  # Corresponds to the JSON property `kind`
@@ -1776,6 +1995,7 @@ module Google
1776
1995
  @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms)
1777
1996
  @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms)
1778
1997
  @inventory_description = args[:inventory_description] if args.key?(:inventory_description)
1998
+ @is_rfp_template = args[:is_rfp_template] if args.key?(:is_rfp_template)
1779
1999
  @kind = args[:kind] if args.key?(:kind)
1780
2000
  @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms)
1781
2001
  @name = args[:name] if args.key?(:name)
@@ -2215,6 +2435,14 @@ module Google
2215
2435
  # @return [Array<String>]
2216
2436
  attr_accessor :supported_creative_attributes
2217
2437
 
2438
+ # Requests containing the specified type of user data will match. Possible
2439
+ # values are HOSTED_MATCH_DATA, which means the request is cookie-targetable and
2440
+ # has a match in the buyer's hosted match table, and COOKIE_OR_IDFA, which means
2441
+ # the request has either a targetable cookie or an iOS IDFA.
2442
+ # Corresponds to the JSON property `userIdentifierDataRequired`
2443
+ # @return [Array<String>]
2444
+ attr_accessor :user_identifier_data_required
2445
+
2218
2446
  # Requests containing any of these user list ids will match.
2219
2447
  # Corresponds to the JSON property `userLists`
2220
2448
  # @return [Array<String>]
@@ -2262,6 +2490,7 @@ module Google
2262
2490
  @placements = args[:placements] if args.key?(:placements)
2263
2491
  @platforms = args[:platforms] if args.key?(:platforms)
2264
2492
  @supported_creative_attributes = args[:supported_creative_attributes] if args.key?(:supported_creative_attributes)
2493
+ @user_identifier_data_required = args[:user_identifier_data_required] if args.key?(:user_identifier_data_required)
2265
2494
  @user_lists = args[:user_lists] if args.key?(:user_lists)
2266
2495
  @vendor_types = args[:vendor_types] if args.key?(:vendor_types)
2267
2496
  @verticals = args[:verticals] if args.key?(:verticals)
@@ -2420,6 +2649,11 @@ module Google
2420
2649
  # @return [String]
2421
2650
  attr_accessor :currency_code
2422
2651
 
2652
+ # In case of CPD deals, the expected CPM in micros.
2653
+ # Corresponds to the JSON property `expectedCpmMicros`
2654
+ # @return [Float]
2655
+ attr_accessor :expected_cpm_micros
2656
+
2423
2657
  # The pricing type for the deal/product.
2424
2658
  # Corresponds to the JSON property `pricingType`
2425
2659
  # @return [String]
@@ -2433,6 +2667,7 @@ module Google
2433
2667
  def update!(**args)
2434
2668
  @amount_micros = args[:amount_micros] if args.key?(:amount_micros)
2435
2669
  @currency_code = args[:currency_code] if args.key?(:currency_code)
2670
+ @expected_cpm_micros = args[:expected_cpm_micros] if args.key?(:expected_cpm_micros)
2436
2671
  @pricing_type = args[:pricing_type] if args.key?(:pricing_type)
2437
2672
  end
2438
2673
  end
@@ -2693,7 +2928,7 @@ module Google
2693
2928
  # @return [Google::Apis::AdexchangebuyerV1_4::Buyer]
2694
2929
  attr_accessor :buyer
2695
2930
 
2696
- # Optional contact information fort the buyer. (seller-readonly)
2931
+ # Optional contact information of the buyer. (seller-readonly)
2697
2932
  # Corresponds to the JSON property `buyerContacts`
2698
2933
  # @return [Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>]
2699
2934
  attr_accessor :buyer_contacts
@@ -2703,8 +2938,13 @@ module Google
2703
2938
  # @return [Google::Apis::AdexchangebuyerV1_4::PrivateData]
2704
2939
  attr_accessor :buyer_private_data
2705
2940
 
2941
+ # IDs of DBM advertisers permission to this proposal.
2942
+ # Corresponds to the JSON property `dbmAdvertiserIds`
2943
+ # @return [Array<String>]
2944
+ attr_accessor :dbm_advertiser_ids
2945
+
2706
2946
  # When an proposal is in an accepted state, indicates whether the buyer has
2707
- # signed off Once both sides have signed off on a deal, the proposal can be
2947
+ # signed off. Once both sides have signed off on a deal, the proposal can be
2708
2948
  # finalized by the seller. (seller-readonly)
2709
2949
  # Corresponds to the JSON property `hasBuyerSignedOff`
2710
2950
  # @return [Boolean]
@@ -2799,7 +3039,7 @@ module Google
2799
3039
  # @return [Google::Apis::AdexchangebuyerV1_4::Seller]
2800
3040
  attr_accessor :seller
2801
3041
 
2802
- # Optional contact information for the seller (buyer-readonly).
3042
+ # Optional contact information of the seller (buyer-readonly).
2803
3043
  # Corresponds to the JSON property `sellerContacts`
2804
3044
  # @return [Array<Google::Apis::AdexchangebuyerV1_4::ContactInformation>]
2805
3045
  attr_accessor :seller_contacts
@@ -2814,6 +3054,7 @@ module Google
2814
3054
  @buyer = args[:buyer] if args.key?(:buyer)
2815
3055
  @buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts)
2816
3056
  @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data)
3057
+ @dbm_advertiser_ids = args[:dbm_advertiser_ids] if args.key?(:dbm_advertiser_ids)
2817
3058
  @has_buyer_signed_off = args[:has_buyer_signed_off] if args.key?(:has_buyer_signed_off)
2818
3059
  @has_seller_signed_off = args[:has_seller_signed_off] if args.key?(:has_seller_signed_off)
2819
3060
  @inventory_source = args[:inventory_source] if args.key?(:inventory_source)
@@ -3138,6 +3379,11 @@ module Google
3138
3379
  # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueSize]
3139
3380
  attr_accessor :size
3140
3381
 
3382
+ # The skippable ad type for video size.
3383
+ # Corresponds to the JSON property `skippableAdType`
3384
+ # @return [String]
3385
+ attr_accessor :skippable_ad_type
3386
+
3141
3387
  def initialize(**args)
3142
3388
  update!(**args)
3143
3389
  end
@@ -3147,6 +3393,7 @@ module Google
3147
3393
  @companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes)
3148
3394
  @creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type)
3149
3395
  @size = args[:size] if args.key?(:size)
3396
+ @skippable_ad_type = args[:skippable_ad_type] if args.key?(:skippable_ad_type)
3150
3397
  end
3151
3398
  end
3152
3399