google-api-client 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/MIGRATING.md +22 -7
  4. data/README.md +4 -8
  5. data/api_names.yaml +1210 -37815
  6. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +32 -0
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +144 -0
  8. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +86 -0
  9. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +90 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +764 -764
  12. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +180 -180
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +421 -421
  14. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -0
  15. data/generated/google/apis/admin_directory_v1/classes.rb +1 -0
  16. data/generated/google/apis/admin_reports_v1.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +187 -187
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +42 -42
  21. data/generated/google/apis/appengine_v1.rb +40 -0
  22. data/generated/google/apis/appengine_v1/classes.rb +2251 -0
  23. data/generated/google/apis/appengine_v1/representations.rb +858 -0
  24. data/generated/google/apis/appengine_v1/service.rb +894 -0
  25. data/generated/google/apis/bigquery_v2.rb +1 -1
  26. data/generated/google/apis/bigquery_v2/classes.rb +11 -6
  27. data/generated/google/apis/books_v1.rb +1 -1
  28. data/generated/google/apis/books_v1/classes.rb +26 -0
  29. data/generated/google/apis/books_v1/representations.rb +15 -0
  30. data/generated/google/apis/books_v1/service.rb +4 -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/cloudbuild_v1.rb +1 -1
  34. data/generated/google/apis/cloudbuild_v1/classes.rb +638 -637
  35. data/generated/google/apis/cloudbuild_v1/representations.rb +110 -110
  36. data/generated/google/apis/cloudbuild_v1/service.rb +139 -139
  37. data/generated/google/apis/clouddebugger_v2.rb +3 -3
  38. data/generated/google/apis/clouddebugger_v2/classes.rb +131 -131
  39. data/generated/google/apis/clouddebugger_v2/representations.rb +25 -25
  40. data/generated/google/apis/clouderrorreporting_v1beta1.rb +36 -0
  41. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +590 -0
  42. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +252 -0
  43. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +350 -0
  44. data/generated/google/apis/cloudfunctions_v1.rb +35 -0
  45. data/generated/google/apis/cloudfunctions_v1/classes.rb +98 -0
  46. data/generated/google/apis/cloudfunctions_v1/representations.rb +57 -0
  47. data/generated/google/apis/cloudfunctions_v1/service.rb +89 -0
  48. data/generated/google/apis/cloudkms_v1/classes.rb +277 -270
  49. data/generated/google/apis/cloudkms_v1/representations.rb +73 -73
  50. data/generated/google/apis/cloudkms_v1/service.rb +194 -194
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1147 -1144
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +513 -936
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +307 -916
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +63 -285
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +333 -681
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  60. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  61. data/generated/google/apis/cloudtrace_v1/service.rb +16 -16
  62. data/generated/google/apis/compute_beta.rb +1 -1
  63. data/generated/google/apis/compute_beta/classes.rb +32 -7
  64. data/generated/google/apis/compute_beta/representations.rb +2 -0
  65. data/generated/google/apis/compute_beta/service.rb +11 -11
  66. data/generated/google/apis/compute_v1.rb +1 -1
  67. data/generated/google/apis/compute_v1/classes.rb +95 -2
  68. data/generated/google/apis/compute_v1/representations.rb +33 -0
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3333 -3333
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +759 -759
  71. data/generated/google/apis/dataflow_v1b3/service.rb +154 -154
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1097 -1097
  74. data/generated/google/apis/dataproc_v1/representations.rb +200 -200
  75. data/generated/google/apis/dataproc_v1/service.rb +356 -356
  76. data/generated/google/apis/datastore_v1.rb +4 -4
  77. data/generated/google/apis/datastore_v1/classes.rb +701 -690
  78. data/generated/google/apis/datastore_v1/representations.rb +160 -160
  79. data/generated/google/apis/datastore_v1/service.rb +52 -52
  80. data/generated/google/apis/deploymentmanager_v2/classes.rb +4 -0
  81. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2.rb +1 -1
  83. data/generated/google/apis/drive_v2/classes.rb +158 -35
  84. data/generated/google/apis/drive_v2/representations.rb +39 -0
  85. data/generated/google/apis/drive_v2/service.rb +4 -4
  86. data/generated/google/apis/drive_v3.rb +1 -1
  87. data/generated/google/apis/drive_v3/classes.rb +162 -33
  88. data/generated/google/apis/drive_v3/representations.rb +39 -0
  89. data/generated/google/apis/drive_v3/service.rb +4 -4
  90. data/generated/google/apis/firebasedynamiclinks_v1.rb +35 -0
  91. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +466 -0
  92. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +222 -0
  93. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +95 -0
  94. data/generated/google/apis/firebaserules_v1.rb +41 -0
  95. data/generated/google/apis/firebaserules_v1/classes.rb +425 -0
  96. data/generated/google/apis/firebaserules_v1/representations.rb +222 -0
  97. data/generated/google/apis/firebaserules_v1/service.rb +495 -0
  98. data/generated/google/apis/games_v1/classes.rb +4 -0
  99. data/generated/google/apis/genomics_v1.rb +7 -7
  100. data/generated/google/apis/genomics_v1/classes.rb +2336 -2335
  101. data/generated/google/apis/genomics_v1/representations.rb +387 -387
  102. data/generated/google/apis/genomics_v1/service.rb +1187 -1187
  103. data/generated/google/apis/gmail_v1/classes.rb +3 -0
  104. data/generated/google/apis/iam_v1.rb +1 -1
  105. data/generated/google/apis/iam_v1/classes.rb +123 -117
  106. data/generated/google/apis/iam_v1/representations.rb +33 -33
  107. data/generated/google/apis/iam_v1/service.rb +109 -109
  108. data/generated/google/apis/identitytoolkit_v3/classes.rb +5 -0
  109. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  110. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  111. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  112. data/generated/google/apis/language_v1.rb +36 -0
  113. data/generated/google/apis/language_v1/classes.rb +757 -0
  114. data/generated/google/apis/language_v1/representations.rb +338 -0
  115. data/generated/google/apis/language_v1/service.rb +185 -0
  116. data/generated/google/apis/language_v1beta1/classes.rb +407 -407
  117. data/generated/google/apis/language_v1beta1/representations.rb +103 -103
  118. data/generated/google/apis/language_v1beta1/service.rb +45 -45
  119. data/generated/google/apis/logging_v2.rb +46 -0
  120. data/generated/google/apis/logging_v2/classes.rb +1271 -0
  121. data/generated/google/apis/logging_v2/representations.rb +421 -0
  122. data/generated/google/apis/logging_v2/service.rb +1569 -0
  123. data/generated/google/apis/logging_v2beta1.rb +1 -1
  124. data/generated/google/apis/logging_v2beta1/classes.rb +886 -886
  125. data/generated/google/apis/logging_v2beta1/representations.rb +132 -132
  126. data/generated/google/apis/logging_v2beta1/service.rb +235 -235
  127. data/generated/google/apis/manufacturers_v1/classes.rb +147 -147
  128. data/generated/google/apis/manufacturers_v1/representations.rb +29 -29
  129. data/generated/google/apis/ml_v1.rb +34 -0
  130. data/generated/google/apis/ml_v1/classes.rb +1617 -0
  131. data/generated/google/apis/ml_v1/representations.rb +498 -0
  132. data/generated/google/apis/ml_v1/service.rb +769 -0
  133. data/generated/google/apis/monitoring_v3.rb +4 -4
  134. data/generated/google/apis/monitoring_v3/classes.rb +630 -630
  135. data/generated/google/apis/monitoring_v3/representations.rb +134 -134
  136. data/generated/google/apis/monitoring_v3/service.rb +240 -240
  137. data/generated/google/apis/pagespeedonline_v2/classes.rb +1 -0
  138. data/generated/google/apis/partners_v2.rb +1 -1
  139. data/generated/google/apis/partners_v2/classes.rb +639 -639
  140. data/generated/google/apis/partners_v2/representations.rb +168 -168
  141. data/generated/google/apis/partners_v2/service.rb +381 -381
  142. data/generated/google/apis/people_v1.rb +10 -10
  143. data/generated/google/apis/people_v1/classes.rb +524 -524
  144. data/generated/google/apis/people_v1/representations.rb +143 -143
  145. data/generated/google/apis/people_v1/service.rb +30 -30
  146. data/generated/google/apis/plus_domains_v1.rb +1 -1
  147. data/generated/google/apis/plus_v1.rb +1 -1
  148. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +454 -444
  149. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +90 -90
  150. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +110 -110
  151. data/generated/google/apis/pubsub_v1/classes.rb +175 -173
  152. data/generated/google/apis/pubsub_v1/representations.rb +53 -53
  153. data/generated/google/apis/pubsub_v1/service.rb +210 -210
  154. data/generated/google/apis/replicapool_v1beta2/classes.rb +2 -0
  155. data/generated/google/apis/runtimeconfig_v1.rb +38 -0
  156. data/generated/google/apis/runtimeconfig_v1/classes.rb +252 -0
  157. data/generated/google/apis/runtimeconfig_v1/representations.rb +98 -0
  158. data/generated/google/apis/runtimeconfig_v1/service.rb +176 -0
  159. data/generated/google/apis/script_v1.rb +1 -1
  160. data/generated/google/apis/script_v1/classes.rb +6 -6
  161. data/generated/google/apis/script_v1/representations.rb +1 -1
  162. data/generated/google/apis/searchconsole_v1.rb +31 -0
  163. data/generated/google/apis/searchconsole_v1/classes.rb +205 -0
  164. data/generated/google/apis/searchconsole_v1/representations.rb +129 -0
  165. data/generated/google/apis/searchconsole_v1/service.rb +88 -0
  166. data/generated/google/apis/servicecontrol_v1.rb +38 -0
  167. data/generated/google/apis/servicecontrol_v1/classes.rb +1675 -0
  168. data/generated/google/apis/servicecontrol_v1/representations.rb +601 -0
  169. data/generated/google/apis/servicecontrol_v1/service.rb +337 -0
  170. data/generated/google/apis/servicemanagement_v1.rb +45 -0
  171. data/generated/google/apis/servicemanagement_v1/classes.rb +4934 -0
  172. data/generated/google/apis/servicemanagement_v1/representations.rb +1526 -0
  173. data/generated/google/apis/servicemanagement_v1/service.rb +860 -0
  174. data/generated/google/apis/serviceuser_v1.rb +42 -0
  175. data/generated/google/apis/serviceuser_v1/classes.rb +3746 -0
  176. data/generated/google/apis/serviceuser_v1/representations.rb +1041 -0
  177. data/generated/google/apis/serviceuser_v1/service.rb +214 -0
  178. data/generated/google/apis/sheets_v4.rb +3 -3
  179. data/generated/google/apis/sheets_v4/classes.rb +4390 -4390
  180. data/generated/google/apis/sheets_v4/representations.rb +381 -381
  181. data/generated/google/apis/sheets_v4/service.rb +48 -48
  182. data/generated/google/apis/slides_v1.rb +3 -3
  183. data/generated/google/apis/slides_v1/classes.rb +2860 -2860
  184. data/generated/google/apis/slides_v1/representations.rb +693 -693
  185. data/generated/google/apis/slides_v1/service.rb +30 -30
  186. data/generated/google/apis/sourcerepo_v1.rb +34 -0
  187. data/generated/google/apis/sourcerepo_v1/classes.rb +687 -0
  188. data/generated/google/apis/sourcerepo_v1/representations.rb +285 -0
  189. data/generated/google/apis/sourcerepo_v1/service.rb +291 -0
  190. data/generated/google/apis/spanner_v1.rb +35 -0
  191. data/generated/google/apis/spanner_v1/classes.rb +3294 -0
  192. data/generated/google/apis/spanner_v1/representations.rb +984 -0
  193. data/generated/google/apis/spanner_v1/service.rb +1504 -0
  194. data/generated/google/apis/speech_v1beta1.rb +1 -1
  195. data/generated/google/apis/speech_v1beta1/classes.rb +197 -196
  196. data/generated/google/apis/speech_v1beta1/representations.rb +53 -53
  197. data/generated/google/apis/speech_v1beta1/service.rb +27 -27
  198. data/generated/google/apis/storage_v1.rb +1 -1
  199. data/generated/google/apis/storage_v1/classes.rb +131 -0
  200. data/generated/google/apis/storage_v1/representations.rb +51 -0
  201. data/generated/google/apis/storage_v1/service.rb +182 -0
  202. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  203. data/generated/google/apis/storagetransfer_v1/classes.rb +732 -661
  204. data/generated/google/apis/storagetransfer_v1/representations.rb +132 -132
  205. data/generated/google/apis/storagetransfer_v1/service.rb +174 -197
  206. data/generated/google/apis/surveys_v2.rb +40 -0
  207. data/generated/google/apis/surveys_v2/classes.rb +806 -0
  208. data/generated/google/apis/surveys_v2/representations.rb +347 -0
  209. data/generated/google/apis/surveys_v2/service.rb +477 -0
  210. data/generated/google/apis/tagmanager_v2.rb +52 -0
  211. data/generated/google/apis/tagmanager_v2/classes.rb +2435 -0
  212. data/generated/google/apis/tagmanager_v2/representations.rb +993 -0
  213. data/generated/google/apis/tagmanager_v2/service.rb +2865 -0
  214. data/generated/google/apis/toolresults_v1beta3.rb +34 -0
  215. data/generated/google/apis/toolresults_v1beta3/classes.rb +2160 -0
  216. data/generated/google/apis/toolresults_v1beta3/representations.rb +729 -0
  217. data/generated/google/apis/toolresults_v1beta3/service.rb +1236 -0
  218. data/generated/google/apis/tracing_v1.rb +40 -0
  219. data/generated/google/apis/tracing_v1/classes.rb +664 -0
  220. data/generated/google/apis/tracing_v1/representations.rb +279 -0
  221. data/generated/google/apis/tracing_v1/service.rb +225 -0
  222. data/generated/google/apis/vision_v1.rb +1 -1
  223. data/generated/google/apis/vision_v1/classes.rb +1223 -1222
  224. data/generated/google/apis/vision_v1/representations.rb +234 -234
  225. data/generated/google/apis/vision_v1/service.rb +10 -10
  226. data/generated/google/apis/webfonts_v1.rb +33 -0
  227. data/generated/google/apis/webfonts_v1/classes.rb +113 -0
  228. data/generated/google/apis/webfonts_v1/representations.rb +62 -0
  229. data/generated/google/apis/webfonts_v1/service.rb +102 -0
  230. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  231. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  232. data/generated/google/apis/youtube_partner_v1/classes.rb +31 -0
  233. data/generated/google/apis/youtube_partner_v1/representations.rb +6 -0
  234. data/generated/google/apis/youtube_partner_v1/service.rb +41 -0
  235. data/generated/google/apis/youtube_v3/classes.rb +1 -0
  236. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  237. data/generated/google/apis/youtubereporting_v1/classes.rb +76 -76
  238. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  239. data/generated/google/apis/youtubereporting_v1/service.rb +95 -95
  240. data/lib/google/apis/generator/annotator.rb +5 -4
  241. data/lib/google/apis/generator/templates/_class.tmpl +3 -0
  242. data/lib/google/apis/version.rb +1 -1
  243. data/samples/cli/lib/samples/adsense.rb +99 -0
  244. data/samples/cli/lib/samples/analytics.rb +18 -0
  245. data/samples/cli/lib/samples/gmail.rb +33 -0
  246. data/samples/cli/lib/samples/vision.rb +69 -0
  247. metadata +89 -4
  248. data/sync.rb +0 -71
@@ -33,810 +33,810 @@ module Google
33
33
  #
34
34
  # @see https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
35
35
  class AdExchangeBuyerIIService < Google::Apis::Core::BaseService
36
- # @return [String]
37
- # API key. Your API key identifies your project and provides you with API access,
38
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
- attr_accessor :key
40
-
41
36
  # @return [String]
42
37
  # Available to use for quota purposes for server-side applications. Can be any
43
38
  # arbitrary string assigned to a user, but should not exceed 40 characters.
44
39
  attr_accessor :quota_user
45
40
 
41
+ # @return [String]
42
+ # API key. Your API key identifies your project and provides you with API access,
43
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
44
+ attr_accessor :key
45
+
46
46
  def initialize
47
47
  super('https://adexchangebuyer.googleapis.com/', '')
48
48
  end
49
49
 
50
- # Gets a client buyer with a given client account ID.
50
+ # Gets a creative.
51
51
  # @param [String] account_id
52
- # Numerical account ID of the client's sponsor buyer. (required)
53
- # @param [String] client_account_id
54
- # Numerical account ID of the client buyer to retrieve. (required)
55
- # @param [String] fields
56
- # Selector specifying which fields to include in a partial response.
52
+ # The account the creative belongs to.
53
+ # @param [String] creative_id
54
+ # The ID of the creative to retrieve.
57
55
  # @param [String] quota_user
58
56
  # Available to use for quota purposes for server-side applications. Can be any
59
57
  # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
60
  # @param [Google::Apis::RequestOptions] options
61
61
  # Request-specific options
62
62
  #
63
63
  # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
64
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
65
65
  # @yieldparam err [StandardError] error object if request failed
66
66
  #
67
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
67
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
68
68
  #
69
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
74
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
75
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
72
+ def get_account_creative(account_id, creative_id, quota_user: nil, fields: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
74
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
75
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
76
76
  command.params['accountId'] = account_id unless account_id.nil?
77
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
78
- command.query['fields'] = fields unless fields.nil?
77
+ command.params['creativeId'] = creative_id unless creative_id.nil?
79
78
  command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
80
  execute_or_queue_command(command, &block)
81
81
  end
82
82
 
83
- # Lists all the clients for the current sponsor buyer.
83
+ # Watches a creative. Will result in push notifications being sent to the
84
+ # topic when the creative changes status.
84
85
  # @param [String] account_id
85
- # Unique numerical account ID of the sponsor buyer to list the clients for.
86
- # @param [String] page_token
87
- # A token identifying a page of results the server should return.
88
- # Typically, this is the value of
89
- # ListClientsResponse.nextPageToken
90
- # returned from the previous call to the
91
- # accounts.clients.list method.
92
- # @param [Fixnum] page_size
93
- # Requested page size. The server may return fewer clients than requested.
94
- # If unspecified, the server will pick an appropriate default.
95
- # @param [String] fields
96
- # Selector specifying which fields to include in a partial response.
86
+ # The account of the creative to watch.
87
+ # @param [String] creative_id
88
+ # The creative ID to watch for status changes.
89
+ # Specify "-" to watch all creatives under the above account.
90
+ # If both creative-level and account-level notifications are
91
+ # sent, only a single notification will be sent to the
92
+ # creative-level notification topic.
93
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
97
94
  # @param [String] quota_user
98
95
  # Available to use for quota purposes for server-side applications. Can be any
99
96
  # arbitrary string assigned to a user, but should not exceed 40 characters.
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
100
99
  # @param [Google::Apis::RequestOptions] options
101
100
  # Request-specific options
102
101
  #
103
102
  # @yield [result, err] Result & error if block supplied
104
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
103
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
105
104
  # @yieldparam err [StandardError] error object if request failed
106
105
  #
107
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
106
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
108
107
  #
109
108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
110
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
111
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
112
- def list_account_clients(account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
113
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
114
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
115
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
111
+ def watch_creative(account_id, creative_id, watch_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
112
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
113
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
114
+ command.request_object = watch_creative_request_object
115
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
116
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
116
117
  command.params['accountId'] = account_id unless account_id.nil?
117
- command.query['pageToken'] = page_token unless page_token.nil?
118
- command.query['pageSize'] = page_size unless page_size.nil?
119
- command.query['fields'] = fields unless fields.nil?
118
+ command.params['creativeId'] = creative_id unless creative_id.nil?
120
119
  command.query['quotaUser'] = quota_user unless quota_user.nil?
120
+ command.query['fields'] = fields unless fields.nil?
121
121
  execute_or_queue_command(command, &block)
122
122
  end
123
123
 
124
- # Updates an existing client buyer.
124
+ # Updates a creative.
125
125
  # @param [String] account_id
126
- # Unique numerical account ID for the buyer of which the client buyer
127
- # is a customer; the sponsor buyer to update a client for. (required)
128
- # @param [String] client_account_id
129
- # Unique numerical account ID of the client to update. (required)
130
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
131
- # @param [String] fields
132
- # Selector specifying which fields to include in a partial response.
126
+ # The account that this creative belongs to.
127
+ # Can be used to filter the response of the
128
+ # creatives.list
129
+ # method.
130
+ # @param [String] creative_id
131
+ # The buyer-defined creative ID of this creative.
132
+ # Can be used to filter the response of the
133
+ # creatives.list
134
+ # method.
135
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
133
136
  # @param [String] quota_user
134
137
  # Available to use for quota purposes for server-side applications. Can be any
135
138
  # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # @param [String] fields
140
+ # Selector specifying which fields to include in a partial response.
136
141
  # @param [Google::Apis::RequestOptions] options
137
142
  # Request-specific options
138
143
  #
139
144
  # @yield [result, err] Result & error if block supplied
140
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
145
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
141
146
  # @yieldparam err [StandardError] error object if request failed
142
147
  #
143
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
148
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
144
149
  #
145
150
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
148
- def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
150
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
151
- command.request_object = client_object
152
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
153
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
153
+ def update_account_creative(account_id, creative_id, creative_object = nil, quota_user: nil, fields: nil, options: nil, &block)
154
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
155
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
156
+ command.request_object = creative_object
157
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
158
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
154
159
  command.params['accountId'] = account_id unless account_id.nil?
155
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
156
- command.query['fields'] = fields unless fields.nil?
160
+ command.params['creativeId'] = creative_id unless creative_id.nil?
157
161
  command.query['quotaUser'] = quota_user unless quota_user.nil?
162
+ command.query['fields'] = fields unless fields.nil?
158
163
  execute_or_queue_command(command, &block)
159
164
  end
160
165
 
161
- # Creates a new client buyer.
166
+ # Lists creatives.
162
167
  # @param [String] account_id
163
- # Unique numerical account ID for the buyer of which the client buyer
164
- # is a customer; the sponsor buyer to create a client for. (required)
165
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
166
- # @param [String] fields
167
- # Selector specifying which fields to include in a partial response.
168
+ # The account to list the creatives from.
169
+ # Specify "-" to list all creatives the current user has access to.
170
+ # @param [String] page_token
171
+ # A token identifying a page of results the server should return.
172
+ # Typically, this is the value of
173
+ # ListCreativesResponse.next_page_token
174
+ # returned from the previous call to 'ListCreatives' method.
175
+ # @param [Fixnum] page_size
176
+ # Requested page size. The server may return fewer creatives than requested
177
+ # (due to timeout constraint) even if more are available via another call.
178
+ # If unspecified, server will pick an appropriate default.
179
+ # Acceptable values are 1 to 1000, inclusive.
180
+ # @param [String] query
181
+ # An optional query string to filter creatives. If no filter is specified,
182
+ # all active creatives will be returned.
183
+ # Supported queries are:
184
+ # <ul>
185
+ # <li>accountId=<i>account_id_string</i>
186
+ # <li>creativeId=<i>creative_id_string</i>
187
+ # <li>dealsStatus: `approved, conditionally_approved, disapproved,
188
+ # not_checked`
189
+ # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
190
+ # not_checked`
191
+ # <li>attribute: `a numeric attribute from the list of attributes`
192
+ # <li>disapprovalReason: `a reason from DisapprovalReason
193
+ # </ul>
194
+ # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
195
+ # unacceptable_content) OR attribute:47'
168
196
  # @param [String] quota_user
169
197
  # Available to use for quota purposes for server-side applications. Can be any
170
198
  # arbitrary string assigned to a user, but should not exceed 40 characters.
199
+ # @param [String] fields
200
+ # Selector specifying which fields to include in a partial response.
171
201
  # @param [Google::Apis::RequestOptions] options
172
202
  # Request-specific options
173
203
  #
174
204
  # @yield [result, err] Result & error if block supplied
175
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
205
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
176
206
  # @yieldparam err [StandardError] error object if request failed
177
207
  #
178
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
208
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
179
209
  #
180
210
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
181
211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
182
212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
183
- def create_account_client(account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
184
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
185
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
186
- command.request_object = client_object
187
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
188
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
213
+ def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
214
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
215
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
216
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
189
217
  command.params['accountId'] = account_id unless account_id.nil?
190
- command.query['fields'] = fields unless fields.nil?
218
+ command.query['pageToken'] = page_token unless page_token.nil?
219
+ command.query['pageSize'] = page_size unless page_size.nil?
220
+ command.query['query'] = query unless query.nil?
191
221
  command.query['quotaUser'] = quota_user unless quota_user.nil?
222
+ command.query['fields'] = fields unless fields.nil?
192
223
  execute_or_queue_command(command, &block)
193
224
  end
194
225
 
195
- # Creates and sends out an email invitation to access
196
- # an Ad Exchange client buyer account.
226
+ # Creates a creative.
197
227
  # @param [String] account_id
198
- # Numerical account ID of the client's sponsor buyer. (required)
199
- # @param [String] client_account_id
200
- # Numerical account ID of the client buyer that the user
201
- # should be associated with. (required)
202
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
203
- # @param [String] fields
204
- # Selector specifying which fields to include in a partial response.
228
+ # The account that this creative belongs to.
229
+ # Can be used to filter the response of the
230
+ # creatives.list
231
+ # method.
232
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
233
+ # @param [String] duplicate_id_mode
234
+ # Indicates if multiple creatives can share an ID or not. Default is
235
+ # NO_DUPLICATES (one ID per creative).
205
236
  # @param [String] quota_user
206
237
  # Available to use for quota purposes for server-side applications. Can be any
207
238
  # arbitrary string assigned to a user, but should not exceed 40 characters.
239
+ # @param [String] fields
240
+ # Selector specifying which fields to include in a partial response.
208
241
  # @param [Google::Apis::RequestOptions] options
209
242
  # Request-specific options
210
243
  #
211
244
  # @yield [result, err] Result & error if block supplied
212
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
245
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
213
246
  # @yieldparam err [StandardError] error object if request failed
214
247
  #
215
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
248
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
216
249
  #
217
250
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
218
251
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
219
252
  # @raise [Google::Apis::AuthorizationError] Authorization is required
220
- def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
221
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
222
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
223
- command.request_object = client_user_invitation_object
224
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
225
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
253
+ def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, quota_user: nil, fields: nil, options: nil, &block)
254
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
255
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
256
+ command.request_object = creative_object
257
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
258
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
226
259
  command.params['accountId'] = account_id unless account_id.nil?
227
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
228
- command.query['fields'] = fields unless fields.nil?
260
+ command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
229
261
  command.query['quotaUser'] = quota_user unless quota_user.nil?
262
+ command.query['fields'] = fields unless fields.nil?
230
263
  execute_or_queue_command(command, &block)
231
264
  end
232
265
 
233
- # Retrieves an existing client user invitation.
266
+ # Stops watching a creative. Will stop push notifications being sent to the
267
+ # topics when the creative changes status.
234
268
  # @param [String] account_id
235
- # Numerical account ID of the client's sponsor buyer. (required)
236
- # @param [String] client_account_id
237
- # Numerical account ID of the client buyer that the user invitation
238
- # to be retrieved is associated with. (required)
239
- # @param [String] invitation_id
240
- # Numerical identifier of the user invitation to retrieve. (required)
241
- # @param [String] fields
242
- # Selector specifying which fields to include in a partial response.
269
+ # The account of the creative to stop notifications for.
270
+ # @param [String] creative_id
271
+ # The creative ID of the creative to stop notifications for.
272
+ # Specify "-" to specify stopping account level notifications.
273
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
243
274
  # @param [String] quota_user
244
275
  # Available to use for quota purposes for server-side applications. Can be any
245
276
  # arbitrary string assigned to a user, but should not exceed 40 characters.
277
+ # @param [String] fields
278
+ # Selector specifying which fields to include in a partial response.
246
279
  # @param [Google::Apis::RequestOptions] options
247
280
  # Request-specific options
248
281
  #
249
282
  # @yield [result, err] Result & error if block supplied
250
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
283
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
251
284
  # @yieldparam err [StandardError] error object if request failed
252
285
  #
253
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
286
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
254
287
  #
255
288
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
289
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
290
  # @raise [Google::Apis::AuthorizationError] Authorization is required
258
- def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
259
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
260
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
261
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
291
+ def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
292
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
293
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
294
+ command.request_object = stop_watching_creative_request_object
295
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
296
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
262
297
  command.params['accountId'] = account_id unless account_id.nil?
263
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
264
- command.params['invitationId'] = invitation_id unless invitation_id.nil?
265
- command.query['fields'] = fields unless fields.nil?
298
+ command.params['creativeId'] = creative_id unless creative_id.nil?
266
299
  command.query['quotaUser'] = quota_user unless quota_user.nil?
300
+ command.query['fields'] = fields unless fields.nil?
267
301
  execute_or_queue_command(command, &block)
268
302
  end
269
303
 
270
- # Lists all the client users invitations for a client
271
- # with a given account ID.
304
+ # Associate an existing deal with a creative.
272
305
  # @param [String] account_id
273
- # Numerical account ID of the client's sponsor buyer. (required)
274
- # @param [String] client_account_id
275
- # Numerical account ID of the client buyer to list invitations for.
276
- # (required)
277
- # You must either specify a string representation of a
278
- # numerical account identifier or the `-` character
279
- # to list all the invitations for all the clients
280
- # of a given sponsor buyer.
281
- # @param [String] page_token
282
- # A token identifying a page of results the server should return.
283
- # Typically, this is the value of
284
- # ListClientUserInvitationsResponse.nextPageToken
285
- # returned from the previous call to the
286
- # clients.invitations.list
287
- # method.
288
- # @param [Fixnum] page_size
289
- # Requested page size. Server may return fewer clients than requested.
290
- # If unspecified, server will pick an appropriate default.
291
- # @param [String] fields
292
- # Selector specifying which fields to include in a partial response.
306
+ # The account the creative belongs to.
307
+ # @param [String] creative_id
308
+ # The ID of the creative associated with the deal.
309
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
293
310
  # @param [String] quota_user
294
311
  # Available to use for quota purposes for server-side applications. Can be any
295
312
  # arbitrary string assigned to a user, but should not exceed 40 characters.
313
+ # @param [String] fields
314
+ # Selector specifying which fields to include in a partial response.
296
315
  # @param [Google::Apis::RequestOptions] options
297
316
  # Request-specific options
298
317
  #
299
318
  # @yield [result, err] Result & error if block supplied
300
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
319
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
301
320
  # @yieldparam err [StandardError] error object if request failed
302
321
  #
303
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
322
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
304
323
  #
305
324
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
306
325
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
307
326
  # @raise [Google::Apis::AuthorizationError] Authorization is required
308
- def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
309
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
310
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
311
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
327
+ def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
328
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
329
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
330
+ command.request_object = add_deal_association_request_object
331
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
332
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
312
333
  command.params['accountId'] = account_id unless account_id.nil?
313
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
314
- command.query['pageToken'] = page_token unless page_token.nil?
315
- command.query['pageSize'] = page_size unless page_size.nil?
316
- command.query['fields'] = fields unless fields.nil?
334
+ command.params['creativeId'] = creative_id unless creative_id.nil?
317
335
  command.query['quotaUser'] = quota_user unless quota_user.nil?
336
+ command.query['fields'] = fields unless fields.nil?
318
337
  execute_or_queue_command(command, &block)
319
338
  end
320
339
 
321
- # Updates an existing client user.
322
- # Only the user status can be changed on update.
340
+ # Remove the association between a deal and a creative.
323
341
  # @param [String] account_id
324
- # Numerical account ID of the client's sponsor buyer. (required)
325
- # @param [String] client_account_id
326
- # Numerical account ID of the client buyer that the user to be retrieved
327
- # is associated with. (required)
328
- # @param [String] user_id
329
- # Numerical identifier of the user to retrieve. (required)
330
- # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
331
- # @param [String] fields
332
- # Selector specifying which fields to include in a partial response.
342
+ # The account the creative belongs to.
343
+ # @param [String] creative_id
344
+ # The ID of the creative associated with the deal.
345
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
333
346
  # @param [String] quota_user
334
347
  # Available to use for quota purposes for server-side applications. Can be any
335
348
  # arbitrary string assigned to a user, but should not exceed 40 characters.
349
+ # @param [String] fields
350
+ # Selector specifying which fields to include in a partial response.
336
351
  # @param [Google::Apis::RequestOptions] options
337
352
  # Request-specific options
338
353
  #
339
354
  # @yield [result, err] Result & error if block supplied
340
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
355
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
341
356
  # @yieldparam err [StandardError] error object if request failed
342
357
  #
343
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
358
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
344
359
  #
345
360
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
346
361
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
347
362
  # @raise [Google::Apis::AuthorizationError] Authorization is required
348
- def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
349
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
350
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
351
- command.request_object = client_user_object
352
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
353
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
363
+ def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
364
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
365
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
366
+ command.request_object = remove_deal_association_request_object
367
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
368
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
354
369
  command.params['accountId'] = account_id unless account_id.nil?
355
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
356
- command.params['userId'] = user_id unless user_id.nil?
357
- command.query['fields'] = fields unless fields.nil?
370
+ command.params['creativeId'] = creative_id unless creative_id.nil?
358
371
  command.query['quotaUser'] = quota_user unless quota_user.nil?
372
+ command.query['fields'] = fields unless fields.nil?
359
373
  execute_or_queue_command(command, &block)
360
374
  end
361
375
 
362
- # Lists all the known client users for a specified
363
- # sponsor buyer account ID.
376
+ # List all creative-deal associations.
364
377
  # @param [String] account_id
365
- # Numerical account ID of the sponsor buyer of the client to list users for.
366
- # (required)
367
- # @param [String] client_account_id
368
- # The account ID of the client buyer to list users for. (required)
369
- # You must specify either a string representation of a
370
- # numerical account identifier or the `-` character
371
- # to list all the client users for all the clients
372
- # of a given sponsor buyer.
378
+ # The account to list the associations from.
379
+ # Specify "-" to list all creatives the current user has access to.
380
+ # @param [String] creative_id
381
+ # The creative ID to list the associations from.
382
+ # Specify "-" to list all creatives under the above account.
373
383
  # @param [String] page_token
374
384
  # A token identifying a page of results the server should return.
375
385
  # Typically, this is the value of
376
- # ListClientUsersResponse.nextPageToken
377
- # returned from the previous call to the
378
- # accounts.clients.users.list method.
386
+ # ListDealAssociationsResponse.next_page_token
387
+ # returned from the previous call to 'ListDealAssociations' method.
379
388
  # @param [Fixnum] page_size
380
- # Requested page size. The server may return fewer clients than requested.
381
- # If unspecified, the server will pick an appropriate default.
382
- # @param [String] fields
383
- # Selector specifying which fields to include in a partial response.
389
+ # Requested page size. Server may return fewer associations than requested.
390
+ # If unspecified, server will pick an appropriate default.
391
+ # @param [String] query
392
+ # An optional query string to filter deal associations. If no filter is
393
+ # specified, all associations will be returned.
394
+ # Supported queries are:
395
+ # <ul>
396
+ # <li>accountId=<i>account_id_string</i>
397
+ # <li>creativeId=<i>creative_id_string</i>
398
+ # <li>dealsId=<i>deals_id_string</i>
399
+ # <li>dealsStatus:`approved, conditionally_approved, disapproved,
400
+ # not_checked`
401
+ # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
402
+ # not_checked`
403
+ # </ul>
404
+ # Example: 'dealsId=12345 AND dealsStatus:disapproved'
384
405
  # @param [String] quota_user
385
406
  # Available to use for quota purposes for server-side applications. Can be any
386
407
  # arbitrary string assigned to a user, but should not exceed 40 characters.
408
+ # @param [String] fields
409
+ # Selector specifying which fields to include in a partial response.
387
410
  # @param [Google::Apis::RequestOptions] options
388
411
  # Request-specific options
389
412
  #
390
413
  # @yield [result, err] Result & error if block supplied
391
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
414
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
392
415
  # @yieldparam err [StandardError] error object if request failed
393
416
  #
394
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
417
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
395
418
  #
396
419
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
420
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
421
  # @raise [Google::Apis::AuthorizationError] Authorization is required
399
- def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
400
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
401
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
402
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
422
+ def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, quota_user: nil, fields: nil, options: nil, &block)
423
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
424
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
425
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
403
426
  command.params['accountId'] = account_id unless account_id.nil?
404
- command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
427
+ command.params['creativeId'] = creative_id unless creative_id.nil?
405
428
  command.query['pageToken'] = page_token unless page_token.nil?
406
429
  command.query['pageSize'] = page_size unless page_size.nil?
407
- command.query['fields'] = fields unless fields.nil?
430
+ command.query['query'] = query unless query.nil?
408
431
  command.query['quotaUser'] = quota_user unless quota_user.nil?
432
+ command.query['fields'] = fields unless fields.nil?
409
433
  execute_or_queue_command(command, &block)
410
434
  end
411
435
 
412
- # Retrieves an existing client user.
436
+ # Gets a client buyer with a given client account ID.
413
437
  # @param [String] account_id
414
438
  # Numerical account ID of the client's sponsor buyer. (required)
415
439
  # @param [String] client_account_id
416
- # Numerical account ID of the client buyer
417
- # that the user to be retrieved is associated with. (required)
418
- # @param [String] user_id
419
- # Numerical identifier of the user to retrieve. (required)
420
- # @param [String] fields
421
- # Selector specifying which fields to include in a partial response.
440
+ # Numerical account ID of the client buyer to retrieve. (required)
422
441
  # @param [String] quota_user
423
442
  # Available to use for quota purposes for server-side applications. Can be any
424
443
  # arbitrary string assigned to a user, but should not exceed 40 characters.
444
+ # @param [String] fields
445
+ # Selector specifying which fields to include in a partial response.
425
446
  # @param [Google::Apis::RequestOptions] options
426
447
  # Request-specific options
427
448
  #
428
449
  # @yield [result, err] Result & error if block supplied
429
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
450
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
430
451
  # @yieldparam err [StandardError] error object if request failed
431
452
  #
432
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
453
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
433
454
  #
434
455
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
456
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
457
  # @raise [Google::Apis::AuthorizationError] Authorization is required
437
- def get_account_client_user(account_id, client_account_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
438
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
439
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
440
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
458
+ def get_account_client(account_id, client_account_id, quota_user: nil, fields: nil, options: nil, &block)
459
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
460
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
461
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
441
462
  command.params['accountId'] = account_id unless account_id.nil?
442
463
  command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
443
- command.params['userId'] = user_id unless user_id.nil?
444
- command.query['fields'] = fields unless fields.nil?
445
464
  command.query['quotaUser'] = quota_user unless quota_user.nil?
465
+ command.query['fields'] = fields unless fields.nil?
446
466
  execute_or_queue_command(command, &block)
447
467
  end
448
468
 
449
- # Creates a creative.
469
+ # Lists all the clients for the current sponsor buyer.
450
470
  # @param [String] account_id
451
- # The account that this creative belongs to.
452
- # Can be used to filter the response of the
453
- # creatives.list
454
- # method.
455
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
456
- # @param [String] duplicate_id_mode
457
- # Indicates if multiple creatives can share an ID or not. Default is
458
- # NO_DUPLICATES (one ID per creative).
459
- # @param [String] fields
460
- # Selector specifying which fields to include in a partial response.
471
+ # Unique numerical account ID of the sponsor buyer to list the clients for.
472
+ # @param [String] page_token
473
+ # A token identifying a page of results the server should return.
474
+ # Typically, this is the value of
475
+ # ListClientsResponse.nextPageToken
476
+ # returned from the previous call to the
477
+ # accounts.clients.list method.
478
+ # @param [Fixnum] page_size
479
+ # Requested page size. The server may return fewer clients than requested.
480
+ # If unspecified, the server will pick an appropriate default.
461
481
  # @param [String] quota_user
462
482
  # Available to use for quota purposes for server-side applications. Can be any
463
483
  # arbitrary string assigned to a user, but should not exceed 40 characters.
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
464
486
  # @param [Google::Apis::RequestOptions] options
465
487
  # Request-specific options
466
488
  #
467
489
  # @yield [result, err] Result & error if block supplied
468
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
490
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
469
491
  # @yieldparam err [StandardError] error object if request failed
470
492
  #
471
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
493
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
472
494
  #
473
495
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
474
496
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
475
497
  # @raise [Google::Apis::AuthorizationError] Authorization is required
476
- def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
477
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
478
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
479
- command.request_object = creative_object
480
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
481
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
498
+ def list_account_clients(account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
499
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
500
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
501
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
482
502
  command.params['accountId'] = account_id unless account_id.nil?
483
- command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
484
- command.query['fields'] = fields unless fields.nil?
503
+ command.query['pageToken'] = page_token unless page_token.nil?
504
+ command.query['pageSize'] = page_size unless page_size.nil?
485
505
  command.query['quotaUser'] = quota_user unless quota_user.nil?
506
+ command.query['fields'] = fields unless fields.nil?
486
507
  execute_or_queue_command(command, &block)
487
508
  end
488
509
 
489
- # Stops watching a creative. Will stop push notifications being sent to the
490
- # topics when the creative changes status.
510
+ # Updates an existing client buyer.
491
511
  # @param [String] account_id
492
- # The account of the creative to stop notifications for.
493
- # @param [String] creative_id
494
- # The creative ID of the creative to stop notifications for.
495
- # Specify "-" to specify stopping account level notifications.
496
- # @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
497
- # @param [String] fields
498
- # Selector specifying which fields to include in a partial response.
512
+ # Unique numerical account ID for the buyer of which the client buyer
513
+ # is a customer; the sponsor buyer to update a client for. (required)
514
+ # @param [String] client_account_id
515
+ # Unique numerical account ID of the client to update. (required)
516
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
499
517
  # @param [String] quota_user
500
518
  # Available to use for quota purposes for server-side applications. Can be any
501
519
  # arbitrary string assigned to a user, but should not exceed 40 characters.
520
+ # @param [String] fields
521
+ # Selector specifying which fields to include in a partial response.
502
522
  # @param [Google::Apis::RequestOptions] options
503
523
  # Request-specific options
504
524
  #
505
525
  # @yield [result, err] Result & error if block supplied
506
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
526
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
507
527
  # @yieldparam err [StandardError] error object if request failed
508
528
  #
509
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
529
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
510
530
  #
511
531
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
512
532
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
513
533
  # @raise [Google::Apis::AuthorizationError] Authorization is required
514
- def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
515
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
516
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
517
- command.request_object = stop_watching_creative_request_object
518
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
519
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
534
+ def update_account_client(account_id, client_account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
535
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
536
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
537
+ command.request_object = client_object
538
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
539
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
520
540
  command.params['accountId'] = account_id unless account_id.nil?
521
- command.params['creativeId'] = creative_id unless creative_id.nil?
522
- command.query['fields'] = fields unless fields.nil?
541
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
523
542
  command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ command.query['fields'] = fields unless fields.nil?
524
544
  execute_or_queue_command(command, &block)
525
545
  end
526
546
 
527
- # Gets a creative.
547
+ # Creates a new client buyer.
528
548
  # @param [String] account_id
529
- # The account the creative belongs to.
530
- # @param [String] creative_id
531
- # The ID of the creative to retrieve.
532
- # @param [String] fields
533
- # Selector specifying which fields to include in a partial response.
549
+ # Unique numerical account ID for the buyer of which the client buyer
550
+ # is a customer; the sponsor buyer to create a client for. (required)
551
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
534
552
  # @param [String] quota_user
535
553
  # Available to use for quota purposes for server-side applications. Can be any
536
554
  # arbitrary string assigned to a user, but should not exceed 40 characters.
555
+ # @param [String] fields
556
+ # Selector specifying which fields to include in a partial response.
537
557
  # @param [Google::Apis::RequestOptions] options
538
558
  # Request-specific options
539
559
  #
540
560
  # @yield [result, err] Result & error if block supplied
541
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
561
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
542
562
  # @yieldparam err [StandardError] error object if request failed
543
563
  #
544
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
564
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
545
565
  #
546
566
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
547
567
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
548
568
  # @raise [Google::Apis::AuthorizationError] Authorization is required
549
- def get_account_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
550
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
551
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
552
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
569
+ def create_account_client(account_id, client_object = nil, quota_user: nil, fields: nil, options: nil, &block)
570
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
571
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
572
+ command.request_object = client_object
573
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
574
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
553
575
  command.params['accountId'] = account_id unless account_id.nil?
554
- command.params['creativeId'] = creative_id unless creative_id.nil?
555
- command.query['fields'] = fields unless fields.nil?
556
576
  command.query['quotaUser'] = quota_user unless quota_user.nil?
577
+ command.query['fields'] = fields unless fields.nil?
557
578
  execute_or_queue_command(command, &block)
558
579
  end
559
580
 
560
- # Watches a creative. Will result in push notifications being sent to the
561
- # topic when the creative changes status.
581
+ # Lists all the known client users for a specified
582
+ # sponsor buyer account ID.
562
583
  # @param [String] account_id
563
- # The account of the creative to watch.
564
- # @param [String] creative_id
565
- # The creative ID to watch for status changes.
566
- # Specify "-" to watch all creatives under the above account.
567
- # If both creative-level and account-level notifications are
568
- # sent, only a single notification will be sent to the
569
- # creative-level notification topic.
570
- # @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
571
- # @param [String] fields
572
- # Selector specifying which fields to include in a partial response.
584
+ # Numerical account ID of the sponsor buyer of the client to list users for.
585
+ # (required)
586
+ # @param [String] client_account_id
587
+ # The account ID of the client buyer to list users for. (required)
588
+ # You must specify either a string representation of a
589
+ # numerical account identifier or the `-` character
590
+ # to list all the client users for all the clients
591
+ # of a given sponsor buyer.
592
+ # @param [String] page_token
593
+ # A token identifying a page of results the server should return.
594
+ # Typically, this is the value of
595
+ # ListClientUsersResponse.nextPageToken
596
+ # returned from the previous call to the
597
+ # accounts.clients.users.list method.
598
+ # @param [Fixnum] page_size
599
+ # Requested page size. The server may return fewer clients than requested.
600
+ # If unspecified, the server will pick an appropriate default.
573
601
  # @param [String] quota_user
574
602
  # Available to use for quota purposes for server-side applications. Can be any
575
603
  # arbitrary string assigned to a user, but should not exceed 40 characters.
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
576
606
  # @param [Google::Apis::RequestOptions] options
577
607
  # Request-specific options
578
608
  #
579
609
  # @yield [result, err] Result & error if block supplied
580
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
610
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
581
611
  # @yieldparam err [StandardError] error object if request failed
582
612
  #
583
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
613
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
584
614
  #
585
615
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
586
616
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
617
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
- def watch_creative(account_id, creative_id, watch_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
589
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
590
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
591
- command.request_object = watch_creative_request_object
592
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
593
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
618
+ def list_account_client_users(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
619
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
620
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
621
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
594
622
  command.params['accountId'] = account_id unless account_id.nil?
595
- command.params['creativeId'] = creative_id unless creative_id.nil?
596
- command.query['fields'] = fields unless fields.nil?
623
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
624
+ command.query['pageToken'] = page_token unless page_token.nil?
625
+ command.query['pageSize'] = page_size unless page_size.nil?
597
626
  command.query['quotaUser'] = quota_user unless quota_user.nil?
627
+ command.query['fields'] = fields unless fields.nil?
598
628
  execute_or_queue_command(command, &block)
599
629
  end
600
630
 
601
- # Updates a creative.
631
+ # Retrieves an existing client user.
602
632
  # @param [String] account_id
603
- # The account that this creative belongs to.
604
- # Can be used to filter the response of the
605
- # creatives.list
606
- # method.
607
- # @param [String] creative_id
608
- # The buyer-defined creative ID of this creative.
609
- # Can be used to filter the response of the
610
- # creatives.list
611
- # method.
612
- # @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
613
- # @param [String] fields
614
- # Selector specifying which fields to include in a partial response.
633
+ # Numerical account ID of the client's sponsor buyer. (required)
634
+ # @param [String] client_account_id
635
+ # Numerical account ID of the client buyer
636
+ # that the user to be retrieved is associated with. (required)
637
+ # @param [String] user_id
638
+ # Numerical identifier of the user to retrieve. (required)
615
639
  # @param [String] quota_user
616
640
  # Available to use for quota purposes for server-side applications. Can be any
617
641
  # arbitrary string assigned to a user, but should not exceed 40 characters.
642
+ # @param [String] fields
643
+ # Selector specifying which fields to include in a partial response.
618
644
  # @param [Google::Apis::RequestOptions] options
619
645
  # Request-specific options
620
646
  #
621
647
  # @yield [result, err] Result & error if block supplied
622
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
648
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
623
649
  # @yieldparam err [StandardError] error object if request failed
624
650
  #
625
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
651
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
626
652
  #
627
653
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
628
654
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
629
655
  # @raise [Google::Apis::AuthorizationError] Authorization is required
630
- def update_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
631
- command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
632
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
633
- command.request_object = creative_object
634
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
635
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
656
+ def get_account_client_user(account_id, client_account_id, user_id, quota_user: nil, fields: nil, options: nil, &block)
657
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
658
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
659
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
636
660
  command.params['accountId'] = account_id unless account_id.nil?
637
- command.params['creativeId'] = creative_id unless creative_id.nil?
638
- command.query['fields'] = fields unless fields.nil?
661
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
662
+ command.params['userId'] = user_id unless user_id.nil?
639
663
  command.query['quotaUser'] = quota_user unless quota_user.nil?
664
+ command.query['fields'] = fields unless fields.nil?
640
665
  execute_or_queue_command(command, &block)
641
666
  end
642
667
 
643
- # Lists creatives.
668
+ # Updates an existing client user.
669
+ # Only the user status can be changed on update.
644
670
  # @param [String] account_id
645
- # The account to list the creatives from.
646
- # Specify "-" to list all creatives the current user has access to.
647
- # @param [String] page_token
648
- # A token identifying a page of results the server should return.
649
- # Typically, this is the value of
650
- # ListCreativesResponse.next_page_token
651
- # returned from the previous call to 'ListCreatives' method.
652
- # @param [Fixnum] page_size
653
- # Requested page size. The server may return fewer creatives than requested
654
- # (due to timeout constraint) even if more are available via another call.
655
- # If unspecified, server will pick an appropriate default.
656
- # Acceptable values are 1 to 1000, inclusive.
657
- # @param [String] query
658
- # An optional query string to filter creatives. If no filter is specified,
659
- # all active creatives will be returned.
660
- # Supported queries are:
661
- # <ul>
662
- # <li>accountId=<i>account_id_string</i>
663
- # <li>creativeId=<i>creative_id_string</i>
664
- # <li>dealsStatus: `approved, conditionally_approved, disapproved,
665
- # not_checked`
666
- # <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
667
- # not_checked`
668
- # <li>attribute: `a numeric attribute from the list of attributes`
669
- # <li>disapprovalReason: `a reason from DisapprovalReason
670
- # </ul>
671
- # Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:
672
- # unacceptable_content) OR attribute:47'
673
- # @param [String] fields
674
- # Selector specifying which fields to include in a partial response.
671
+ # Numerical account ID of the client's sponsor buyer. (required)
672
+ # @param [String] client_account_id
673
+ # Numerical account ID of the client buyer that the user to be retrieved
674
+ # is associated with. (required)
675
+ # @param [String] user_id
676
+ # Numerical identifier of the user to retrieve. (required)
677
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
675
678
  # @param [String] quota_user
676
679
  # Available to use for quota purposes for server-side applications. Can be any
677
680
  # arbitrary string assigned to a user, but should not exceed 40 characters.
681
+ # @param [String] fields
682
+ # Selector specifying which fields to include in a partial response.
678
683
  # @param [Google::Apis::RequestOptions] options
679
684
  # Request-specific options
680
685
  #
681
686
  # @yield [result, err] Result & error if block supplied
682
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
687
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
683
688
  # @yieldparam err [StandardError] error object if request failed
684
689
  #
685
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
690
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
686
691
  #
687
692
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
693
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
694
  # @raise [Google::Apis::AuthorizationError] Authorization is required
690
- def list_account_creatives(account_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
691
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
692
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
693
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
695
+ def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, quota_user: nil, fields: nil, options: nil, &block)
696
+ command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
697
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
698
+ command.request_object = client_user_object
699
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
700
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
694
701
  command.params['accountId'] = account_id unless account_id.nil?
695
- command.query['pageToken'] = page_token unless page_token.nil?
696
- command.query['pageSize'] = page_size unless page_size.nil?
697
- command.query['query'] = query unless query.nil?
698
- command.query['fields'] = fields unless fields.nil?
702
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
703
+ command.params['userId'] = user_id unless user_id.nil?
699
704
  command.query['quotaUser'] = quota_user unless quota_user.nil?
705
+ command.query['fields'] = fields unless fields.nil?
700
706
  execute_or_queue_command(command, &block)
701
707
  end
702
708
 
703
- # List all creative-deal associations.
709
+ # Creates and sends out an email invitation to access
710
+ # an Ad Exchange client buyer account.
704
711
  # @param [String] account_id
705
- # The account to list the associations from.
706
- # Specify "-" to list all creatives the current user has access to.
707
- # @param [String] creative_id
708
- # The creative ID to list the associations from.
709
- # Specify "-" to list all creatives under the above account.
710
- # @param [String] page_token
711
- # A token identifying a page of results the server should return.
712
- # Typically, this is the value of
713
- # ListDealAssociationsResponse.next_page_token
714
- # returned from the previous call to 'ListDealAssociations' method.
715
- # @param [Fixnum] page_size
716
- # Requested page size. Server may return fewer associations than requested.
717
- # If unspecified, server will pick an appropriate default.
718
- # @param [String] query
719
- # An optional query string to filter deal associations. If no filter is
720
- # specified, all associations will be returned.
721
- # Supported queries are:
722
- # <ul>
723
- # <li>accountId=<i>account_id_string</i>
724
- # <li>creativeId=<i>creative_id_string</i>
725
- # <li>dealsId=<i>deals_id_string</i>
726
- # <li>dealsStatus:`approved, conditionally_approved, disapproved,
727
- # not_checked`
728
- # <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
729
- # not_checked`
730
- # </ul>
731
- # Example: 'dealsId=12345 AND dealsStatus:disapproved'
732
- # @param [String] fields
733
- # Selector specifying which fields to include in a partial response.
712
+ # Numerical account ID of the client's sponsor buyer. (required)
713
+ # @param [String] client_account_id
714
+ # Numerical account ID of the client buyer that the user
715
+ # should be associated with. (required)
716
+ # @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
734
717
  # @param [String] quota_user
735
718
  # Available to use for quota purposes for server-side applications. Can be any
736
719
  # arbitrary string assigned to a user, but should not exceed 40 characters.
720
+ # @param [String] fields
721
+ # Selector specifying which fields to include in a partial response.
737
722
  # @param [Google::Apis::RequestOptions] options
738
723
  # Request-specific options
739
724
  #
740
725
  # @yield [result, err] Result & error if block supplied
741
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
726
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
742
727
  # @yieldparam err [StandardError] error object if request failed
743
728
  #
744
- # @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
729
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
745
730
  #
746
731
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
747
732
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
748
733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
749
- def list_account_creative_deal_associations(account_id, creative_id, page_token: nil, page_size: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
750
- command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
751
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
752
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
734
+ def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, quota_user: nil, fields: nil, options: nil, &block)
735
+ command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
736
+ command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
737
+ command.request_object = client_user_invitation_object
738
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
739
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
753
740
  command.params['accountId'] = account_id unless account_id.nil?
754
- command.params['creativeId'] = creative_id unless creative_id.nil?
755
- command.query['pageToken'] = page_token unless page_token.nil?
756
- command.query['pageSize'] = page_size unless page_size.nil?
757
- command.query['query'] = query unless query.nil?
758
- command.query['fields'] = fields unless fields.nil?
741
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
759
742
  command.query['quotaUser'] = quota_user unless quota_user.nil?
743
+ command.query['fields'] = fields unless fields.nil?
760
744
  execute_or_queue_command(command, &block)
761
745
  end
762
746
 
763
- # Associate an existing deal with a creative.
747
+ # Retrieves an existing client user invitation.
764
748
  # @param [String] account_id
765
- # The account the creative belongs to.
766
- # @param [String] creative_id
767
- # The ID of the creative associated with the deal.
768
- # @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
769
- # @param [String] fields
770
- # Selector specifying which fields to include in a partial response.
749
+ # Numerical account ID of the client's sponsor buyer. (required)
750
+ # @param [String] client_account_id
751
+ # Numerical account ID of the client buyer that the user invitation
752
+ # to be retrieved is associated with. (required)
753
+ # @param [String] invitation_id
754
+ # Numerical identifier of the user invitation to retrieve. (required)
771
755
  # @param [String] quota_user
772
756
  # Available to use for quota purposes for server-side applications. Can be any
773
757
  # arbitrary string assigned to a user, but should not exceed 40 characters.
758
+ # @param [String] fields
759
+ # Selector specifying which fields to include in a partial response.
774
760
  # @param [Google::Apis::RequestOptions] options
775
761
  # Request-specific options
776
762
  #
777
763
  # @yield [result, err] Result & error if block supplied
778
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
764
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
779
765
  # @yieldparam err [StandardError] error object if request failed
780
766
  #
781
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
767
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
782
768
  #
783
769
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
770
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
771
  # @raise [Google::Apis::AuthorizationError] Authorization is required
786
- def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
787
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
788
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
789
- command.request_object = add_deal_association_request_object
790
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
791
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
772
+ def get_account_client_invitation(account_id, client_account_id, invitation_id, quota_user: nil, fields: nil, options: nil, &block)
773
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
774
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
775
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
792
776
  command.params['accountId'] = account_id unless account_id.nil?
793
- command.params['creativeId'] = creative_id unless creative_id.nil?
794
- command.query['fields'] = fields unless fields.nil?
777
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
778
+ command.params['invitationId'] = invitation_id unless invitation_id.nil?
795
779
  command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ command.query['fields'] = fields unless fields.nil?
796
781
  execute_or_queue_command(command, &block)
797
782
  end
798
783
 
799
- # Remove the association between a deal and a creative.
784
+ # Lists all the client users invitations for a client
785
+ # with a given account ID.
800
786
  # @param [String] account_id
801
- # The account the creative belongs to.
802
- # @param [String] creative_id
803
- # The ID of the creative associated with the deal.
804
- # @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
805
- # @param [String] fields
806
- # Selector specifying which fields to include in a partial response.
787
+ # Numerical account ID of the client's sponsor buyer. (required)
788
+ # @param [String] client_account_id
789
+ # Numerical account ID of the client buyer to list invitations for.
790
+ # (required)
791
+ # You must either specify a string representation of a
792
+ # numerical account identifier or the `-` character
793
+ # to list all the invitations for all the clients
794
+ # of a given sponsor buyer.
795
+ # @param [String] page_token
796
+ # A token identifying a page of results the server should return.
797
+ # Typically, this is the value of
798
+ # ListClientUserInvitationsResponse.nextPageToken
799
+ # returned from the previous call to the
800
+ # clients.invitations.list
801
+ # method.
802
+ # @param [Fixnum] page_size
803
+ # Requested page size. Server may return fewer clients than requested.
804
+ # If unspecified, server will pick an appropriate default.
807
805
  # @param [String] quota_user
808
806
  # Available to use for quota purposes for server-side applications. Can be any
809
807
  # arbitrary string assigned to a user, but should not exceed 40 characters.
808
+ # @param [String] fields
809
+ # Selector specifying which fields to include in a partial response.
810
810
  # @param [Google::Apis::RequestOptions] options
811
811
  # Request-specific options
812
812
  #
813
813
  # @yield [result, err] Result & error if block supplied
814
- # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
814
+ # @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
815
815
  # @yieldparam err [StandardError] error object if request failed
816
816
  #
817
- # @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
817
+ # @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
818
818
  #
819
819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
820
820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
821
821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
822
- def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
823
- command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
824
- command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
825
- command.request_object = remove_deal_association_request_object
826
- command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
827
- command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
822
+ def list_account_client_invitations(account_id, client_account_id, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
823
+ command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
824
+ command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
825
+ command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
828
826
  command.params['accountId'] = account_id unless account_id.nil?
829
- command.params['creativeId'] = creative_id unless creative_id.nil?
830
- command.query['fields'] = fields unless fields.nil?
827
+ command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
828
+ command.query['pageToken'] = page_token unless page_token.nil?
829
+ command.query['pageSize'] = page_size unless page_size.nil?
831
830
  command.query['quotaUser'] = quota_user unless quota_user.nil?
831
+ command.query['fields'] = fields unless fields.nil?
832
832
  execute_or_queue_command(command, &block)
833
833
  end
834
834
 
835
835
  protected
836
836
 
837
837
  def apply_command_defaults(command)
838
- command.query['key'] = key unless key.nil?
839
838
  command.query['quotaUser'] = quota_user unless quota_user.nil?
839
+ command.query['key'] = key unless key.nil?
840
840
  end
841
841
  end
842
842
  end