google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
27
27
  module Adexchangebuyer2V2beta1
28
28
  VERSION = 'V2beta1'
29
- REVISION = '20170210'
29
+ REVISION = '20170308'
30
30
 
31
31
  # Manage your Ad Exchange buyer account configuration
32
32
  AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer'
@@ -22,6 +22,895 @@ module Google
22
22
  module Apis
23
23
  module Adexchangebuyer2V2beta1
24
24
 
25
+ # A generic empty message that you can re-use to avoid defining duplicated
26
+ # empty messages in your APIs. A typical example is to use it as the request
27
+ # or the response type of an API method. For instance:
28
+ # service Foo `
29
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
30
+ # `
31
+ # The JSON representation for `Empty` is empty JSON object ````.
32
+ class Empty
33
+ include Google::Apis::Core::Hashable
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ end
42
+ end
43
+
44
+ # A request for watching changes to creative Status.
45
+ class WatchCreativeRequest
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # The Pub/Sub topic to publish notifications to.
49
+ # This topic must already exist and must give permission to
50
+ # ad-exchange-buyside-reports@google.com to write to the topic.
51
+ # This should be the full resource name in
52
+ # "projects/`project_id`/topics/`topic_id`" format.
53
+ # Corresponds to the JSON property `topic`
54
+ # @return [String]
55
+ attr_accessor :topic
56
+
57
+ def initialize(**args)
58
+ update!(**args)
59
+ end
60
+
61
+ # Update properties of this object
62
+ def update!(**args)
63
+ @topic = args[:topic] if args.key?(:topic)
64
+ end
65
+ end
66
+
67
+ # @OutputOnly The app type the restriction applies to for mobile device.
68
+ class AppContext
69
+ include Google::Apis::Core::Hashable
70
+
71
+ # The app types this restriction applies to.
72
+ # Corresponds to the JSON property `appTypes`
73
+ # @return [Array<String>]
74
+ attr_accessor :app_types
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @app_types = args[:app_types] if args.key?(:app_types)
83
+ end
84
+ end
85
+
86
+ # Native content for a creative.
87
+ class NativeContent
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # The URL to fetch a native video ad.
91
+ # Corresponds to the JSON property `videoUrl`
92
+ # @return [String]
93
+ attr_accessor :video_url
94
+
95
+ # An image resource. You may provide a larger image than was requested,
96
+ # so long as the aspect ratio is preserved.
97
+ # Corresponds to the JSON property `logo`
98
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
99
+ attr_accessor :logo
100
+
101
+ # The URL that the browser/SDK will load when the user clicks the ad.
102
+ # Corresponds to the JSON property `clickLinkUrl`
103
+ # @return [String]
104
+ attr_accessor :click_link_url
105
+
106
+ # The price of the promoted app including currency info.
107
+ # Corresponds to the JSON property `priceDisplayText`
108
+ # @return [String]
109
+ attr_accessor :price_display_text
110
+
111
+ # The URL to use for click tracking.
112
+ # Corresponds to the JSON property `clickTrackingUrl`
113
+ # @return [String]
114
+ attr_accessor :click_tracking_url
115
+
116
+ # An image resource. You may provide a larger image than was requested,
117
+ # so long as the aspect ratio is preserved.
118
+ # Corresponds to the JSON property `image`
119
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
120
+ attr_accessor :image
121
+
122
+ # The name of the advertiser or sponsor, to be displayed in the ad creative.
123
+ # Corresponds to the JSON property `advertiserName`
124
+ # @return [String]
125
+ attr_accessor :advertiser_name
126
+
127
+ # The URL to the app store to purchase/download the promoted app.
128
+ # Corresponds to the JSON property `storeUrl`
129
+ # @return [String]
130
+ attr_accessor :store_url
131
+
132
+ # A short title for the ad.
133
+ # Corresponds to the JSON property `headline`
134
+ # @return [String]
135
+ attr_accessor :headline
136
+
137
+ # An image resource. You may provide a larger image than was requested,
138
+ # so long as the aspect ratio is preserved.
139
+ # Corresponds to the JSON property `appIcon`
140
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Image]
141
+ attr_accessor :app_icon
142
+
143
+ # A label for the button that the user is supposed to click.
144
+ # Corresponds to the JSON property `callToAction`
145
+ # @return [String]
146
+ attr_accessor :call_to_action
147
+
148
+ # A long description of the ad.
149
+ # Corresponds to the JSON property `body`
150
+ # @return [String]
151
+ attr_accessor :body
152
+
153
+ # The app rating in the app store. Must be in the range [0-5].
154
+ # Corresponds to the JSON property `starRating`
155
+ # @return [Float]
156
+ attr_accessor :star_rating
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @video_url = args[:video_url] if args.key?(:video_url)
165
+ @logo = args[:logo] if args.key?(:logo)
166
+ @click_link_url = args[:click_link_url] if args.key?(:click_link_url)
167
+ @price_display_text = args[:price_display_text] if args.key?(:price_display_text)
168
+ @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url)
169
+ @image = args[:image] if args.key?(:image)
170
+ @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
171
+ @store_url = args[:store_url] if args.key?(:store_url)
172
+ @headline = args[:headline] if args.key?(:headline)
173
+ @app_icon = args[:app_icon] if args.key?(:app_icon)
174
+ @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
175
+ @body = args[:body] if args.key?(:body)
176
+ @star_rating = args[:star_rating] if args.key?(:star_rating)
177
+ end
178
+ end
179
+
180
+ #
181
+ class ListClientsResponse
182
+ include Google::Apis::Core::Hashable
183
+
184
+ # The returned list of clients.
185
+ # Corresponds to the JSON property `clients`
186
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
187
+ attr_accessor :clients
188
+
189
+ # A token to retrieve the next page of results.
190
+ # Pass this value in the
191
+ # ListClientsRequest.pageToken
192
+ # field in the subsequent call to the
193
+ # accounts.clients.list method
194
+ # to retrieve the next page of results.
195
+ # Corresponds to the JSON property `nextPageToken`
196
+ # @return [String]
197
+ attr_accessor :next_page_token
198
+
199
+ def initialize(**args)
200
+ update!(**args)
201
+ end
202
+
203
+ # Update properties of this object
204
+ def update!(**args)
205
+ @clients = args[:clients] if args.key?(:clients)
206
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
207
+ end
208
+ end
209
+
210
+ # @OutputOnly A security context.
211
+ class SecurityContext
212
+ include Google::Apis::Core::Hashable
213
+
214
+ # The security types in this context.
215
+ # Corresponds to the JSON property `securities`
216
+ # @return [Array<String>]
217
+ attr_accessor :securities
218
+
219
+ def initialize(**args)
220
+ update!(**args)
221
+ end
222
+
223
+ # Update properties of this object
224
+ def update!(**args)
225
+ @securities = args[:securities] if args.key?(:securities)
226
+ end
227
+ end
228
+
229
+ # A response for listing creatives.
230
+ class ListCreativesResponse
231
+ include Google::Apis::Core::Hashable
232
+
233
+ # The list of creatives.
234
+ # Corresponds to the JSON property `creatives`
235
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Creative>]
236
+ attr_accessor :creatives
237
+
238
+ # A token to retrieve the next page of results.
239
+ # Pass this value in the
240
+ # ListCreativesRequest.page_token
241
+ # field in the subsequent call to `ListCreatives` method to retrieve the next
242
+ # page of results.
243
+ # Corresponds to the JSON property `nextPageToken`
244
+ # @return [String]
245
+ attr_accessor :next_page_token
246
+
247
+ def initialize(**args)
248
+ update!(**args)
249
+ end
250
+
251
+ # Update properties of this object
252
+ def update!(**args)
253
+ @creatives = args[:creatives] if args.key?(:creatives)
254
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
255
+ end
256
+ end
257
+
258
+ # HTML content for a creative.
259
+ class HtmlContent
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # The height of the HTML snippet in pixels.
263
+ # Corresponds to the JSON property `height`
264
+ # @return [Fixnum]
265
+ attr_accessor :height
266
+
267
+ # The width of the HTML snippet in pixels.
268
+ # Corresponds to the JSON property `width`
269
+ # @return [Fixnum]
270
+ attr_accessor :width
271
+
272
+ # The HTML snippet that displays the ad when inserted in the web page.
273
+ # Corresponds to the JSON property `snippet`
274
+ # @return [String]
275
+ attr_accessor :snippet
276
+
277
+ def initialize(**args)
278
+ update!(**args)
279
+ end
280
+
281
+ # Update properties of this object
282
+ def update!(**args)
283
+ @height = args[:height] if args.key?(:height)
284
+ @width = args[:width] if args.key?(:width)
285
+ @snippet = args[:snippet] if args.key?(:snippet)
286
+ end
287
+ end
288
+
289
+ # The serving context for this restriction.
290
+ class ServingContext
291
+ include Google::Apis::Core::Hashable
292
+
293
+ # @OutputOnly The app type the restriction applies to for mobile device.
294
+ # Corresponds to the JSON property `appType`
295
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::AppContext]
296
+ attr_accessor :app_type
297
+
298
+ # @OutputOnly A security context.
299
+ # Corresponds to the JSON property `securityType`
300
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::SecurityContext]
301
+ attr_accessor :security_type
302
+
303
+ # @OutputOnly The type of platform the restriction applies to.
304
+ # Corresponds to the JSON property `platform`
305
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::PlatformContext]
306
+ attr_accessor :platform
307
+
308
+ # @OutputOnly The Geo criteria the restriction applies to.
309
+ # Corresponds to the JSON property `location`
310
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::LocationContext]
311
+ attr_accessor :location
312
+
313
+ # @OutputOnly The auction type the restriction applies to.
314
+ # Corresponds to the JSON property `auctionType`
315
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::AuctionContext]
316
+ attr_accessor :auction_type
317
+
318
+ # Matches all contexts.
319
+ # Corresponds to the JSON property `all`
320
+ # @return [String]
321
+ attr_accessor :all
322
+
323
+ def initialize(**args)
324
+ update!(**args)
325
+ end
326
+
327
+ # Update properties of this object
328
+ def update!(**args)
329
+ @app_type = args[:app_type] if args.key?(:app_type)
330
+ @security_type = args[:security_type] if args.key?(:security_type)
331
+ @platform = args[:platform] if args.key?(:platform)
332
+ @location = args[:location] if args.key?(:location)
333
+ @auction_type = args[:auction_type] if args.key?(:auction_type)
334
+ @all = args[:all] if args.key?(:all)
335
+ end
336
+ end
337
+
338
+ # An image resource. You may provide a larger image than was requested,
339
+ # so long as the aspect ratio is preserved.
340
+ class Image
341
+ include Google::Apis::Core::Hashable
342
+
343
+ # Image width in pixels.
344
+ # Corresponds to the JSON property `width`
345
+ # @return [Fixnum]
346
+ attr_accessor :width
347
+
348
+ # The URL of the image.
349
+ # Corresponds to the JSON property `url`
350
+ # @return [String]
351
+ attr_accessor :url
352
+
353
+ # Image height in pixels.
354
+ # Corresponds to the JSON property `height`
355
+ # @return [Fixnum]
356
+ attr_accessor :height
357
+
358
+ def initialize(**args)
359
+ update!(**args)
360
+ end
361
+
362
+ # Update properties of this object
363
+ def update!(**args)
364
+ @width = args[:width] if args.key?(:width)
365
+ @url = args[:url] if args.key?(:url)
366
+ @height = args[:height] if args.key?(:height)
367
+ end
368
+ end
369
+
370
+ # A specific filtering status and how many times it occurred.
371
+ class Reason
372
+ include Google::Apis::Core::Hashable
373
+
374
+ # The filtering status code. Please refer to the
375
+ # [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb-
376
+ # dictionaries/creative-status-codes.txt)
377
+ # file for different statuses.
378
+ # Corresponds to the JSON property `status`
379
+ # @return [Fixnum]
380
+ attr_accessor :status
381
+
382
+ # The number of times the creative was filtered for the status. The
383
+ # count is aggregated across all publishers on the exchange.
384
+ # Corresponds to the JSON property `count`
385
+ # @return [String]
386
+ attr_accessor :count
387
+
388
+ def initialize(**args)
389
+ update!(**args)
390
+ end
391
+
392
+ # Update properties of this object
393
+ def update!(**args)
394
+ @status = args[:status] if args.key?(:status)
395
+ @count = args[:count] if args.key?(:count)
396
+ end
397
+ end
398
+
399
+ # Video content for a creative.
400
+ class VideoContent
401
+ include Google::Apis::Core::Hashable
402
+
403
+ # The URL to fetch a video ad.
404
+ # Corresponds to the JSON property `videoUrl`
405
+ # @return [String]
406
+ attr_accessor :video_url
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @video_url = args[:video_url] if args.key?(:video_url)
415
+ end
416
+ end
417
+
418
+ # An invitation for a new client user to get access to the Ad Exchange
419
+ # Buyer UI.
420
+ # All fields are required unless otherwise specified.
421
+ class ClientUserInvitation
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # Numerical account ID of the client buyer
425
+ # that the invited user is associated with.
426
+ # The value of this field is ignored in create operations.
427
+ # Corresponds to the JSON property `clientAccountId`
428
+ # @return [String]
429
+ attr_accessor :client_account_id
430
+
431
+ # The unique numerical ID of the invitation that is sent to the user.
432
+ # The value of this field is ignored in create operations.
433
+ # Corresponds to the JSON property `invitationId`
434
+ # @return [String]
435
+ attr_accessor :invitation_id
436
+
437
+ # The email address to which the invitation is sent. Email
438
+ # addresses should be unique among all client users under each sponsor
439
+ # buyer.
440
+ # Corresponds to the JSON property `email`
441
+ # @return [String]
442
+ attr_accessor :email
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
451
+ @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
452
+ @email = args[:email] if args.key?(:email)
453
+ end
454
+ end
455
+
456
+ # @OutputOnly The auction type the restriction applies to.
457
+ class AuctionContext
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # The auction types this restriction applies to.
461
+ # Corresponds to the JSON property `auctionTypes`
462
+ # @return [Array<String>]
463
+ attr_accessor :auction_types
464
+
465
+ def initialize(**args)
466
+ update!(**args)
467
+ end
468
+
469
+ # Update properties of this object
470
+ def update!(**args)
471
+ @auction_types = args[:auction_types] if args.key?(:auction_types)
472
+ end
473
+ end
474
+
475
+ #
476
+ class ListClientUserInvitationsResponse
477
+ include Google::Apis::Core::Hashable
478
+
479
+ # A token to retrieve the next page of results.
480
+ # Pass this value in the
481
+ # ListClientUserInvitationsRequest.pageToken
482
+ # field in the subsequent call to the
483
+ # clients.invitations.list
484
+ # method to retrieve the next
485
+ # page of results.
486
+ # Corresponds to the JSON property `nextPageToken`
487
+ # @return [String]
488
+ attr_accessor :next_page_token
489
+
490
+ # The returned list of client users.
491
+ # Corresponds to the JSON property `invitations`
492
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
493
+ attr_accessor :invitations
494
+
495
+ def initialize(**args)
496
+ update!(**args)
497
+ end
498
+
499
+ # Update properties of this object
500
+ def update!(**args)
501
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
502
+ @invitations = args[:invitations] if args.key?(:invitations)
503
+ end
504
+ end
505
+
506
+ #
507
+ class ListClientUsersResponse
508
+ include Google::Apis::Core::Hashable
509
+
510
+ # A token to retrieve the next page of results.
511
+ # Pass this value in the
512
+ # ListClientUsersRequest.pageToken
513
+ # field in the subsequent call to the
514
+ # clients.invitations.list
515
+ # method to retrieve the next
516
+ # page of results.
517
+ # Corresponds to the JSON property `nextPageToken`
518
+ # @return [String]
519
+ attr_accessor :next_page_token
520
+
521
+ # The returned list of client users.
522
+ # Corresponds to the JSON property `users`
523
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
524
+ attr_accessor :users
525
+
526
+ def initialize(**args)
527
+ update!(**args)
528
+ end
529
+
530
+ # Update properties of this object
531
+ def update!(**args)
532
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
533
+ @users = args[:users] if args.key?(:users)
534
+ end
535
+ end
536
+
537
+ # @OutputOnly The Geo criteria the restriction applies to.
538
+ class LocationContext
539
+ include Google::Apis::Core::Hashable
540
+
541
+ # IDs representing the geo location for this context.
542
+ # Please refer to the
543
+ # [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionaries/geo-table.
544
+ # csv)
545
+ # file for different geo criteria IDs.
546
+ # Corresponds to the JSON property `geoCriteriaIds`
547
+ # @return [Array<Fixnum>]
548
+ attr_accessor :geo_criteria_ids
549
+
550
+ def initialize(**args)
551
+ update!(**args)
552
+ end
553
+
554
+ # Update properties of this object
555
+ def update!(**args)
556
+ @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids)
557
+ end
558
+ end
559
+
560
+ # @OutputOnly The type of platform the restriction applies to.
561
+ class PlatformContext
562
+ include Google::Apis::Core::Hashable
563
+
564
+ # The platforms this restriction applies to.
565
+ # Corresponds to the JSON property `platforms`
566
+ # @return [Array<String>]
567
+ attr_accessor :platforms
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @platforms = args[:platforms] if args.key?(:platforms)
576
+ end
577
+ end
578
+
579
+ # A client user is created under a client buyer and has restricted access to
580
+ # the Ad Exchange Marketplace and certain other sections
581
+ # of the Ad Exchange Buyer UI based on the role
582
+ # granted to the associated client buyer.
583
+ # The only way a new client user can be created is via accepting an
584
+ # email invitation
585
+ # (see the
586
+ # accounts.clients.invitations.create
587
+ # method).
588
+ # All fields are required unless otherwise specified.
589
+ class ClientUser
590
+ include Google::Apis::Core::Hashable
591
+
592
+ # The status of the client user.
593
+ # Corresponds to the JSON property `status`
594
+ # @return [String]
595
+ attr_accessor :status
596
+
597
+ # The unique numerical ID of the client user
598
+ # that has accepted an invitation.
599
+ # The value of this field is ignored in an update operation.
600
+ # Corresponds to the JSON property `userId`
601
+ # @return [String]
602
+ attr_accessor :user_id
603
+
604
+ # User's email address. The value of this field
605
+ # is ignored in an update operation.
606
+ # Corresponds to the JSON property `email`
607
+ # @return [String]
608
+ attr_accessor :email
609
+
610
+ # Numerical account ID of the client buyer
611
+ # with which the user is associated; the
612
+ # buyer must be a client of the current sponsor buyer.
613
+ # The value of this field is ignored in an update operation.
614
+ # Corresponds to the JSON property `clientAccountId`
615
+ # @return [String]
616
+ attr_accessor :client_account_id
617
+
618
+ def initialize(**args)
619
+ update!(**args)
620
+ end
621
+
622
+ # Update properties of this object
623
+ def update!(**args)
624
+ @status = args[:status] if args.key?(:status)
625
+ @user_id = args[:user_id] if args.key?(:user_id)
626
+ @email = args[:email] if args.key?(:email)
627
+ @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
628
+ end
629
+ end
630
+
631
+ # The association between a creative and a deal.
632
+ class CreativeDealAssociation
633
+ include Google::Apis::Core::Hashable
634
+
635
+ # The account the creative belongs to.
636
+ # Corresponds to the JSON property `accountId`
637
+ # @return [String]
638
+ attr_accessor :account_id
639
+
640
+ # The ID of the creative associated with the deal.
641
+ # Corresponds to the JSON property `creativeId`
642
+ # @return [String]
643
+ attr_accessor :creative_id
644
+
645
+ # The externalDealId for the deal associated with the creative.
646
+ # Corresponds to the JSON property `dealsId`
647
+ # @return [String]
648
+ attr_accessor :deals_id
649
+
650
+ def initialize(**args)
651
+ update!(**args)
652
+ end
653
+
654
+ # Update properties of this object
655
+ def update!(**args)
656
+ @account_id = args[:account_id] if args.key?(:account_id)
657
+ @creative_id = args[:creative_id] if args.key?(:creative_id)
658
+ @deals_id = args[:deals_id] if args.key?(:deals_id)
659
+ end
660
+ end
661
+
662
+ # @OutputOnly Filtering reasons for this creative during a period of a single
663
+ # day (from midnight to midnight Pacific).
664
+ class FilteringStats
665
+ include Google::Apis::Core::Hashable
666
+
667
+ # The set of filtering reasons for this date.
668
+ # Corresponds to the JSON property `reasons`
669
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Reason>]
670
+ attr_accessor :reasons
671
+
672
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
673
+ # time zone are either specified elsewhere or are not significant. The date
674
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
675
+ # represent a year and month where the day is not significant, e.g. credit card
676
+ # expiration date. The year may be 0 to represent a month and day independent
677
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
678
+ # and `google.protobuf.Timestamp`.
679
+ # Corresponds to the JSON property `date`
680
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Date]
681
+ attr_accessor :date
682
+
683
+ def initialize(**args)
684
+ update!(**args)
685
+ end
686
+
687
+ # Update properties of this object
688
+ def update!(**args)
689
+ @reasons = args[:reasons] if args.key?(:reasons)
690
+ @date = args[:date] if args.key?(:date)
691
+ end
692
+ end
693
+
694
+ # A creative and its classification data.
695
+ class Creative
696
+ include Google::Apis::Core::Hashable
697
+
698
+ # Video content for a creative.
699
+ # Corresponds to the JSON property `video`
700
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::VideoContent]
701
+ attr_accessor :video
702
+
703
+ # @OutputOnly The granular status of this ad in specific contexts.
704
+ # A context here relates to where something ultimately serves (for example,
705
+ # a physical location, a platform, an HTTPS vs HTTP request, or the type
706
+ # of auction).
707
+ # Corresponds to the JSON property `servingRestrictions`
708
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction>]
709
+ attr_accessor :serving_restrictions
710
+
711
+ # The agency ID for this creative.
712
+ # Corresponds to the JSON property `agencyId`
713
+ # @return [String]
714
+ attr_accessor :agency_id
715
+
716
+ # The set of destination URLs for the creative.
717
+ # Corresponds to the JSON property `clickThroughUrls`
718
+ # @return [Array<String>]
719
+ attr_accessor :click_through_urls
720
+
721
+ # The link to AdChoices destination page.
722
+ # Corresponds to the JSON property `adChoicesDestinationUrl`
723
+ # @return [String]
724
+ attr_accessor :ad_choices_destination_url
725
+
726
+ # @OutputOnly Detected sensitive categories, if any.
727
+ # See the ad-sensitive-categories.txt file in the technical documentation for
728
+ # a list of IDs. You should use these IDs along with the
729
+ # excluded-sensitive-category field in the bid request to filter your bids.
730
+ # Corresponds to the JSON property `detectedSensitiveCategories`
731
+ # @return [Array<Fixnum>]
732
+ attr_accessor :detected_sensitive_categories
733
+
734
+ # All restricted categories for the ads that may be shown from this creative.
735
+ # Corresponds to the JSON property `restrictedCategories`
736
+ # @return [Array<String>]
737
+ attr_accessor :restricted_categories
738
+
739
+ # @OutputOnly Shows any corrections that were applied to this creative.
740
+ # Corresponds to the JSON property `corrections`
741
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Correction>]
742
+ attr_accessor :corrections
743
+
744
+ # @OutputOnly The version of this creative.
745
+ # Corresponds to the JSON property `version`
746
+ # @return [Fixnum]
747
+ attr_accessor :version
748
+
749
+ # All vendor IDs for the ads that may be shown from this creative.
750
+ # See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt
751
+ # for possible values.
752
+ # Corresponds to the JSON property `vendorIds`
753
+ # @return [Array<Fixnum>]
754
+ attr_accessor :vendor_ids
755
+
756
+ # The set of URLs to be called to record an impression.
757
+ # Corresponds to the JSON property `impressionTrackingUrls`
758
+ # @return [Array<String>]
759
+ attr_accessor :impression_tracking_urls
760
+
761
+ # HTML content for a creative.
762
+ # Corresponds to the JSON property `html`
763
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::HtmlContent]
764
+ attr_accessor :html
765
+
766
+ # @OutputOnly The top-level deals status of this creative.
767
+ # If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') in
768
+ # serving_restrictions will also exist. Note
769
+ # that this may be nuanced with other contextual restrictions, in which case,
770
+ # it may be preferable to read from serving_restrictions directly.
771
+ # Can be used to filter the response of the
772
+ # creatives.list
773
+ # method.
774
+ # Corresponds to the JSON property `dealsStatus`
775
+ # @return [String]
776
+ attr_accessor :deals_status
777
+
778
+ # @OutputOnly Detected product categories, if any.
779
+ # See the ad-product-categories.txt file in the technical documentation
780
+ # for a list of IDs.
781
+ # Corresponds to the JSON property `detectedProductCategories`
782
+ # @return [Array<Fixnum>]
783
+ attr_accessor :detected_product_categories
784
+
785
+ # @OutputOnly The top-level open auction status of this creative.
786
+ # If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') in
787
+ # serving_restrictions will also exist. Note
788
+ # that this may be nuanced with other contextual restrictions, in which case,
789
+ # it may be preferable to read from serving_restrictions directly.
790
+ # Can be used to filter the response of the
791
+ # creatives.list
792
+ # method.
793
+ # Corresponds to the JSON property `openAuctionStatus`
794
+ # @return [String]
795
+ attr_accessor :open_auction_status
796
+
797
+ # The name of the company being advertised in the creative.
798
+ # Corresponds to the JSON property `advertiserName`
799
+ # @return [String]
800
+ attr_accessor :advertiser_name
801
+
802
+ # @OutputOnly
803
+ # The detected domains for this creative.
804
+ # Corresponds to the JSON property `detectedDomains`
805
+ # @return [Array<String>]
806
+ attr_accessor :detected_domains
807
+
808
+ # @OutputOnly Detected advertiser IDs, if any.
809
+ # Corresponds to the JSON property `detectedAdvertiserIds`
810
+ # @return [Array<String>]
811
+ attr_accessor :detected_advertiser_ids
812
+
813
+ # @OutputOnly Filtering reasons for this creative during a period of a single
814
+ # day (from midnight to midnight Pacific).
815
+ # Corresponds to the JSON property `filteringStats`
816
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::FilteringStats]
817
+ attr_accessor :filtering_stats
818
+
819
+ # All attributes for the ads that may be shown from this creative.
820
+ # Can be used to filter the response of the
821
+ # creatives.list
822
+ # method.
823
+ # Corresponds to the JSON property `attributes`
824
+ # @return [Array<String>]
825
+ attr_accessor :attributes
826
+
827
+ # @OutputOnly The last update timestamp of the creative via API.
828
+ # Corresponds to the JSON property `apiUpdateTime`
829
+ # @return [String]
830
+ attr_accessor :api_update_time
831
+
832
+ # @OutputOnly
833
+ # The detected languages for this creative. The order is arbitrary. The codes
834
+ # are 2 or 5 characters and are documented at
835
+ # https://developers.google.com/adwords/api/docs/appendix/languagecodes.
836
+ # Corresponds to the JSON property `detectedLanguages`
837
+ # @return [Array<String>]
838
+ attr_accessor :detected_languages
839
+
840
+ # The buyer-defined creative ID of this creative.
841
+ # Can be used to filter the response of the
842
+ # creatives.list
843
+ # method.
844
+ # Corresponds to the JSON property `creativeId`
845
+ # @return [String]
846
+ attr_accessor :creative_id
847
+
848
+ # The account that this creative belongs to.
849
+ # Can be used to filter the response of the
850
+ # creatives.list
851
+ # method.
852
+ # Corresponds to the JSON property `accountId`
853
+ # @return [String]
854
+ attr_accessor :account_id
855
+
856
+ # Native content for a creative.
857
+ # Corresponds to the JSON property `native`
858
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::NativeContent]
859
+ attr_accessor :native
860
+
861
+ def initialize(**args)
862
+ update!(**args)
863
+ end
864
+
865
+ # Update properties of this object
866
+ def update!(**args)
867
+ @video = args[:video] if args.key?(:video)
868
+ @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions)
869
+ @agency_id = args[:agency_id] if args.key?(:agency_id)
870
+ @click_through_urls = args[:click_through_urls] if args.key?(:click_through_urls)
871
+ @ad_choices_destination_url = args[:ad_choices_destination_url] if args.key?(:ad_choices_destination_url)
872
+ @detected_sensitive_categories = args[:detected_sensitive_categories] if args.key?(:detected_sensitive_categories)
873
+ @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories)
874
+ @corrections = args[:corrections] if args.key?(:corrections)
875
+ @version = args[:version] if args.key?(:version)
876
+ @vendor_ids = args[:vendor_ids] if args.key?(:vendor_ids)
877
+ @impression_tracking_urls = args[:impression_tracking_urls] if args.key?(:impression_tracking_urls)
878
+ @html = args[:html] if args.key?(:html)
879
+ @deals_status = args[:deals_status] if args.key?(:deals_status)
880
+ @detected_product_categories = args[:detected_product_categories] if args.key?(:detected_product_categories)
881
+ @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status)
882
+ @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name)
883
+ @detected_domains = args[:detected_domains] if args.key?(:detected_domains)
884
+ @detected_advertiser_ids = args[:detected_advertiser_ids] if args.key?(:detected_advertiser_ids)
885
+ @filtering_stats = args[:filtering_stats] if args.key?(:filtering_stats)
886
+ @attributes = args[:attributes] if args.key?(:attributes)
887
+ @api_update_time = args[:api_update_time] if args.key?(:api_update_time)
888
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
889
+ @creative_id = args[:creative_id] if args.key?(:creative_id)
890
+ @account_id = args[:account_id] if args.key?(:account_id)
891
+ @native = args[:native] if args.key?(:native)
892
+ end
893
+ end
894
+
895
+ # A request for removing the association between a deal and a creative.
896
+ class RemoveDealAssociationRequest
897
+ include Google::Apis::Core::Hashable
898
+
899
+ # The association between a creative and a deal.
900
+ # Corresponds to the JSON property `association`
901
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
902
+ attr_accessor :association
903
+
904
+ def initialize(**args)
905
+ update!(**args)
906
+ end
907
+
908
+ # Update properties of this object
909
+ def update!(**args)
910
+ @association = args[:association] if args.key?(:association)
911
+ end
912
+ end
913
+
25
914
  # A client resource represents a client buyer&mdash;an agency,
26
915
  # a brand, or an advertiser customer of the sponsor buyer.
27
916
  # Users associated with the client buyer have restricted access to
@@ -32,11 +921,6 @@ module Google
32
921
  class Client
33
922
  include Google::Apis::Core::Hashable
34
923
 
35
- # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
36
- # Corresponds to the JSON property `entityType`
37
- # @return [String]
38
- attr_accessor :entity_type
39
-
40
924
  # Name used to represent this client to publishers.
41
925
  # You may have multiple clients that map to the same entity,
42
926
  # but for each client the combination of `clientName` and entity
@@ -95,13 +979,17 @@ module Google
95
979
  # @return [String]
96
980
  attr_accessor :status
97
981
 
982
+ # The type of the client entity: `ADVERTISER`, `BRAND`, or `AGENCY`.
983
+ # Corresponds to the JSON property `entityType`
984
+ # @return [String]
985
+ attr_accessor :entity_type
986
+
98
987
  def initialize(**args)
99
988
  update!(**args)
100
989
  end
101
990
 
102
991
  # Update properties of this object
103
992
  def update!(**args)
104
- @entity_type = args[:entity_type] if args.key?(:entity_type)
105
993
  @client_name = args[:client_name] if args.key?(:client_name)
106
994
  @role = args[:role] if args.key?(:role)
107
995
  @visible_to_seller = args[:visible_to_seller] if args.key?(:visible_to_seller)
@@ -109,47 +997,28 @@ module Google
109
997
  @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
110
998
  @entity_name = args[:entity_name] if args.key?(:entity_name)
111
999
  @status = args[:status] if args.key?(:status)
1000
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
112
1001
  end
113
1002
  end
114
1003
 
115
- # A client user is created under a client buyer and has restricted access to
116
- # the Ad Exchange Marketplace and certain other sections
117
- # of the Ad Exchange Buyer UI based on the role
118
- # granted to the associated client buyer.
119
- # The only way a new client user can be created is via accepting an
120
- # email invitation
121
- # (see the
122
- # accounts.clients.invitations.create
123
- # method).
124
- # All fields are required unless otherwise specified.
125
- class ClientUser
1004
+ # @OutputOnly Shows any corrections that were applied to this creative.
1005
+ class Correction
126
1006
  include Google::Apis::Core::Hashable
127
1007
 
128
- # The status of the client user.
129
- # Corresponds to the JSON property `status`
130
- # @return [String]
131
- attr_accessor :status
132
-
133
- # The unique numerical ID of the client user
134
- # that has accepted an invitation.
135
- # The value of this field is ignored in an update operation.
136
- # Corresponds to the JSON property `userId`
1008
+ # The type of correction that was applied to the creative.
1009
+ # Corresponds to the JSON property `type`
137
1010
  # @return [String]
138
- attr_accessor :user_id
1011
+ attr_accessor :type
139
1012
 
140
- # User's email address. The value of this field
141
- # is ignored in an update operation.
142
- # Corresponds to the JSON property `email`
143
- # @return [String]
144
- attr_accessor :email
1013
+ # The contexts for the correction.
1014
+ # Corresponds to the JSON property `contexts`
1015
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
1016
+ attr_accessor :contexts
145
1017
 
146
- # Numerical account ID of the client buyer
147
- # with which the user is associated; the
148
- # buyer must be a client of the current sponsor buyer.
149
- # The value of this field is ignored in an update operation.
150
- # Corresponds to the JSON property `clientAccountId`
151
- # @return [String]
152
- attr_accessor :client_account_id
1018
+ # Additional details about what was corrected.
1019
+ # Corresponds to the JSON property `details`
1020
+ # @return [Array<String>]
1021
+ attr_accessor :details
153
1022
 
154
1023
  def initialize(**args)
155
1024
  update!(**args)
@@ -157,38 +1026,20 @@ module Google
157
1026
 
158
1027
  # Update properties of this object
159
1028
  def update!(**args)
160
- @status = args[:status] if args.key?(:status)
161
- @user_id = args[:user_id] if args.key?(:user_id)
162
- @email = args[:email] if args.key?(:email)
163
- @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
1029
+ @type = args[:type] if args.key?(:type)
1030
+ @contexts = args[:contexts] if args.key?(:contexts)
1031
+ @details = args[:details] if args.key?(:details)
164
1032
  end
165
1033
  end
166
1034
 
167
- # An invitation for a new client user to get access to the Ad Exchange
168
- # Buyer UI.
169
- # All fields are required unless otherwise specified.
170
- class ClientUserInvitation
1035
+ # A request for associating a deal and a creative.
1036
+ class AddDealAssociationRequest
171
1037
  include Google::Apis::Core::Hashable
172
1038
 
173
- # The unique numerical ID of the invitation that is sent to the user.
174
- # The value of this field is ignored in create operations.
175
- # Corresponds to the JSON property `invitationId`
176
- # @return [String]
177
- attr_accessor :invitation_id
178
-
179
- # The email address to which the invitation is sent. Email
180
- # addresses should be unique among all client users under each sponsor
181
- # buyer.
182
- # Corresponds to the JSON property `email`
183
- # @return [String]
184
- attr_accessor :email
185
-
186
- # Numerical account ID of the client buyer
187
- # that the invited user is associated with.
188
- # The value of this field is ignored in create operations.
189
- # Corresponds to the JSON property `clientAccountId`
190
- # @return [String]
191
- attr_accessor :client_account_id
1039
+ # The association between a creative and a deal.
1040
+ # Corresponds to the JSON property `association`
1041
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation]
1042
+ attr_accessor :association
192
1043
 
193
1044
  def initialize(**args)
194
1045
  update!(**args)
@@ -196,31 +1047,27 @@ module Google
196
1047
 
197
1048
  # Update properties of this object
198
1049
  def update!(**args)
199
- @invitation_id = args[:invitation_id] if args.key?(:invitation_id)
200
- @email = args[:email] if args.key?(:email)
201
- @client_account_id = args[:client_account_id] if args.key?(:client_account_id)
1050
+ @association = args[:association] if args.key?(:association)
202
1051
  end
203
1052
  end
204
1053
 
205
- #
206
- class ListClientUsersResponse
1054
+ # A response for listing creative and deal associations
1055
+ class ListDealAssociationsResponse
207
1056
  include Google::Apis::Core::Hashable
208
1057
 
209
1058
  # A token to retrieve the next page of results.
210
1059
  # Pass this value in the
211
- # ListClientUsersRequest.pageToken
212
- # field in the subsequent call to the
213
- # clients.invitations.list
214
- # method to retrieve the next
215
- # page of results.
1060
+ # ListDealAssociationsRequest.page_token
1061
+ # field in the subsequent call to 'ListDealAssociation' method to retrieve
1062
+ # the next page of results.
216
1063
  # Corresponds to the JSON property `nextPageToken`
217
1064
  # @return [String]
218
1065
  attr_accessor :next_page_token
219
1066
 
220
- # The returned list of client users.
221
- # Corresponds to the JSON property `users`
222
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUser>]
223
- attr_accessor :users
1067
+ # The list of associations.
1068
+ # Corresponds to the JSON property `associations`
1069
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation>]
1070
+ attr_accessor :associations
224
1071
 
225
1072
  def initialize(**args)
226
1073
  update!(**args)
@@ -229,29 +1076,23 @@ module Google
229
1076
  # Update properties of this object
230
1077
  def update!(**args)
231
1078
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
232
- @users = args[:users] if args.key?(:users)
1079
+ @associations = args[:associations] if args.key?(:associations)
233
1080
  end
234
1081
  end
235
1082
 
236
- #
237
- class ListClientUserInvitationsResponse
1083
+ # @OutputOnly The reason and details for a disapproval.
1084
+ class Disapproval
238
1085
  include Google::Apis::Core::Hashable
239
1086
 
240
- # The returned list of client users.
241
- # Corresponds to the JSON property `invitations`
242
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation>]
243
- attr_accessor :invitations
1087
+ # Additional details about the reason for disapproval.
1088
+ # Corresponds to the JSON property `details`
1089
+ # @return [Array<String>]
1090
+ attr_accessor :details
244
1091
 
245
- # A token to retrieve the next page of results.
246
- # Pass this value in the
247
- # ListClientUserInvitationsRequest.pageToken
248
- # field in the subsequent call to the
249
- # clients.invitations.list
250
- # method to retrieve the next
251
- # page of results.
252
- # Corresponds to the JSON property `nextPageToken`
1092
+ # The categorized reason for disapproval.
1093
+ # Corresponds to the JSON property `reason`
253
1094
  # @return [String]
254
- attr_accessor :next_page_token
1095
+ attr_accessor :reason
255
1096
 
256
1097
  def initialize(**args)
257
1098
  update!(**args)
@@ -259,29 +1100,50 @@ module Google
259
1100
 
260
1101
  # Update properties of this object
261
1102
  def update!(**args)
262
- @invitations = args[:invitations] if args.key?(:invitations)
263
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1103
+ @details = args[:details] if args.key?(:details)
1104
+ @reason = args[:reason] if args.key?(:reason)
264
1105
  end
265
1106
  end
266
1107
 
267
- #
268
- class ListClientsResponse
1108
+ # A request for stopping notifications for changes to creative Status.
1109
+ class StopWatchingCreativeRequest
269
1110
  include Google::Apis::Core::Hashable
270
1111
 
271
- # The returned list of clients.
272
- # Corresponds to the JSON property `clients`
273
- # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Client>]
274
- attr_accessor :clients
1112
+ def initialize(**args)
1113
+ update!(**args)
1114
+ end
275
1115
 
276
- # A token to retrieve the next page of results.
277
- # Pass this value in the
278
- # ListClientsRequest.pageToken
279
- # field in the subsequent call to the
280
- # accounts.clients.list method
281
- # to retrieve the next page of results.
282
- # Corresponds to the JSON property `nextPageToken`
1116
+ # Update properties of this object
1117
+ def update!(**args)
1118
+ end
1119
+ end
1120
+
1121
+ # @OutputOnly A representation of the status of an ad in a
1122
+ # specific context. A context here relates to where something ultimately serves
1123
+ # (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request,
1124
+ # or the type of auction).
1125
+ class ServingRestriction
1126
+ include Google::Apis::Core::Hashable
1127
+
1128
+ # Any disapprovals bound to this restriction.
1129
+ # Only present if status=DISAPPROVED.
1130
+ # Can be used to filter the response of the
1131
+ # creatives.list
1132
+ # method.
1133
+ # Corresponds to the JSON property `disapprovalReasons`
1134
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::Disapproval>]
1135
+ attr_accessor :disapproval_reasons
1136
+
1137
+ # The contexts for the restriction.
1138
+ # Corresponds to the JSON property `contexts`
1139
+ # @return [Array<Google::Apis::Adexchangebuyer2V2beta1::ServingContext>]
1140
+ attr_accessor :contexts
1141
+
1142
+ # The status of the creative in this context (for example, it has been
1143
+ # explicitly disapproved or is pending review).
1144
+ # Corresponds to the JSON property `status`
283
1145
  # @return [String]
284
- attr_accessor :next_page_token
1146
+ attr_accessor :status
285
1147
 
286
1148
  def initialize(**args)
287
1149
  update!(**args)
@@ -289,8 +1151,48 @@ module Google
289
1151
 
290
1152
  # Update properties of this object
291
1153
  def update!(**args)
292
- @clients = args[:clients] if args.key?(:clients)
293
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1154
+ @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons)
1155
+ @contexts = args[:contexts] if args.key?(:contexts)
1156
+ @status = args[:status] if args.key?(:status)
1157
+ end
1158
+ end
1159
+
1160
+ # Represents a whole calendar date, e.g. date of birth. The time of day and
1161
+ # time zone are either specified elsewhere or are not significant. The date
1162
+ # is relative to the Proleptic Gregorian Calendar. The day may be 0 to
1163
+ # represent a year and month where the day is not significant, e.g. credit card
1164
+ # expiration date. The year may be 0 to represent a month and day independent
1165
+ # of year, e.g. anniversary date. Related types are google.type.TimeOfDay
1166
+ # and `google.protobuf.Timestamp`.
1167
+ class Date
1168
+ include Google::Apis::Core::Hashable
1169
+
1170
+ # Year of date. Must be from 1 to 9999, or 0 if specifying a date without
1171
+ # a year.
1172
+ # Corresponds to the JSON property `year`
1173
+ # @return [Fixnum]
1174
+ attr_accessor :year
1175
+
1176
+ # Day of month. Must be from 1 to 31 and valid for the year and month, or 0
1177
+ # if specifying a year/month where the day is not significant.
1178
+ # Corresponds to the JSON property `day`
1179
+ # @return [Fixnum]
1180
+ attr_accessor :day
1181
+
1182
+ # Month of year. Must be from 1 to 12.
1183
+ # Corresponds to the JSON property `month`
1184
+ # @return [Fixnum]
1185
+ attr_accessor :month
1186
+
1187
+ def initialize(**args)
1188
+ update!(**args)
1189
+ end
1190
+
1191
+ # Update properties of this object
1192
+ def update!(**args)
1193
+ @year = args[:year] if args.key?(:year)
1194
+ @day = args[:day] if args.key?(:day)
1195
+ @month = args[:month] if args.key?(:month)
294
1196
  end
295
1197
  end
296
1198
  end