google-api-client 0.11.1 → 0.11.2

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