google-api-client 0.41.0 → 0.41.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +72 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3 -5
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +132 -42
- data/generated/google/apis/apigee_v1/representations.rb +16 -0
- data/generated/google/apis/apigee_v1/service.rb +23 -24
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +36 -6
- data/generated/google/apis/bigquery_v2/representations.rb +4 -0
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -800
- data/generated/google/apis/civicinfo_v2/representations.rb +0 -295
- data/generated/google/apis/civicinfo_v2/service.rb +27 -62
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +391 -3
- data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
- data/generated/google/apis/cloudasset_v1/service.rb +178 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
- data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/service.rb +0 -42
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +6 -6
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -3
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -3
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -1
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
- data/generated/google/apis/composer_v1beta1/service.rb +13 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +45 -31
- data/generated/google/apis/compute_alpha/service.rb +9 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +262 -31
- data/generated/google/apis/compute_beta/representations.rb +70 -0
- data/generated/google/apis/compute_beta/service.rb +233 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +592 -29
- data/generated/google/apis/compute_v1/representations.rb +182 -0
- data/generated/google/apis/compute_v1/service.rb +501 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +29 -3
- data/generated/google/apis/container_v1/representations.rb +15 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +172 -0
- data/generated/google/apis/content_v2_1/representations.rb +71 -0
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +194 -20
- data/generated/google/apis/dialogflow_v2/representations.rb +77 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +194 -20
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +77 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +105 -2
- data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
- data/generated/google/apis/displayvideo_v1/service.rb +78 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/documentai_v1beta2.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
- data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +6 -6
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +6 -6
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +69 -21
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +8 -0
- data/generated/google/apis/ml_v1/representations.rb +1 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +2 -2
- data/generated/google/apis/people_v1.rb +4 -1
- data/generated/google/apis/playablelocations_v3.rb +31 -0
- data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
- data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
- data/generated/google/apis/playablelocations_v3/service.rb +157 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +19 -0
- data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +4 -2
- data/generated/google/apis/realtimebidding_v1.rb +40 -0
- data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
- data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
- data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +1 -1
- data/generated/google/apis/redis_v1/service.rb +1 -1
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
- data/generated/google/apis/redis_v1beta1/service.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
- data/generated/google/apis/run_v1.rb +2 -2
- data/generated/google/apis/run_v1/classes.rb +4 -1
- data/generated/google/apis/run_v1/service.rb +1 -1
- data/generated/google/apis/run_v1alpha1.rb +2 -2
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/run_v1beta1.rb +2 -2
- data/generated/google/apis/run_v1beta1/service.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
- data/generated/google/apis/sasportal_v1alpha1/classes.rb +19 -0
- data/generated/google/apis/sasportal_v1alpha1/representations.rb +14 -0
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/service.rb +4 -5
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +2 -5
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +6 -0
- data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +90 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +25 -20
- data/generated/google/apis/spanner_v1/service.rb +2 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/service.rb +2 -3
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/vectortile_v1.rb +31 -0
- data/generated/google/apis/vectortile_v1/classes.rb +881 -0
- data/generated/google/apis/vectortile_v1/representations.rb +329 -0
- data/generated/google/apis/vectortile_v1/service.rb +268 -0
- data/generated/google/apis/webfonts_v1.rb +5 -5
- data/generated/google/apis/webfonts_v1/classes.rb +4 -3
- data/generated/google/apis/webfonts_v1/representations.rb +1 -2
- data/generated/google/apis/webfonts_v1/service.rb +14 -21
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -0,0 +1,661 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module RealtimebiddingV1
|
23
|
+
# Real-time Bidding API
|
24
|
+
#
|
25
|
+
# Allows external bidders to manage their RTB integration with Google. This
|
26
|
+
# includes managing bidder endpoints, QPS quotas, configuring what ad inventory
|
27
|
+
# to receive via pretargeting, submitting creatives for verification, and
|
28
|
+
# accessing creative metadata such as approval status.
|
29
|
+
#
|
30
|
+
# @example
|
31
|
+
# require 'google/apis/realtimebidding_v1'
|
32
|
+
#
|
33
|
+
# Realtimebidding = Google::Apis::RealtimebiddingV1 # Alias the module
|
34
|
+
# service = Realtimebidding::RealtimeBiddingService.new
|
35
|
+
#
|
36
|
+
# @see https://developers.google.com/authorized-buyers/apis/realtimebidding/reference/rest/
|
37
|
+
class RealtimeBiddingService < Google::Apis::Core::BaseService
|
38
|
+
# @return [String]
|
39
|
+
# API key. Your API key identifies your project and provides you with API access,
|
40
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
41
|
+
attr_accessor :key
|
42
|
+
|
43
|
+
# @return [String]
|
44
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
45
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46
|
+
attr_accessor :quota_user
|
47
|
+
|
48
|
+
def initialize
|
49
|
+
super('https://realtimebidding.googleapis.com/', '')
|
50
|
+
@batch_path = 'batch'
|
51
|
+
end
|
52
|
+
|
53
|
+
# Lists creatives.
|
54
|
+
# @param [String] parent
|
55
|
+
# Required. Name of the parent buyer that owns the creatives.
|
56
|
+
# The pattern for this resource is either `buyers/`buyerAccountId`` or
|
57
|
+
# `bidders/`bidderAccountId``.
|
58
|
+
# For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
|
59
|
+
# following:
|
60
|
+
# 1. The ID of the buyer that is accessing their own creatives.
|
61
|
+
# 2. The ID of the child seat buyer under a bidder account.
|
62
|
+
# So for listing creatives pertaining to the child seat buyer (`456`)
|
63
|
+
# under bidder account (`123`), you would use the pattern: `buyers/456`.
|
64
|
+
# 3. The ID of the bidder itself.
|
65
|
+
# So for listing creatives pertaining to bidder (`123`),
|
66
|
+
# you would use `buyers/123`.
|
67
|
+
# If you want to access all creatives pertaining to both the bidder and all
|
68
|
+
# of its child seat accounts, you would use `bidders/`bidderAccountId``,
|
69
|
+
# e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
|
70
|
+
# @param [String] filter
|
71
|
+
# Query string to filter creatives. If no filter is specified,
|
72
|
+
# all active creatives will be returned.
|
73
|
+
# Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
|
74
|
+
# disapprovalReason:UNACCEPTABLE_CONTENT) OR
|
75
|
+
# declaredAttributes:IS_COOKIE_TARGETED'
|
76
|
+
# @param [Fixnum] page_size
|
77
|
+
# Requested page size. The server may return fewer creatives than requested
|
78
|
+
# (due to timeout constraint) even if more are available via another call.
|
79
|
+
# If unspecified, server will pick an appropriate default.
|
80
|
+
# Acceptable values are 1 to 1000, inclusive.
|
81
|
+
# @param [String] page_token
|
82
|
+
# A token identifying a page of results the server should return.
|
83
|
+
# Typically, this is the value of
|
84
|
+
# ListCreativesResponse.nextPageToken
|
85
|
+
# returned from the previous call to the 'ListCreatives' method.
|
86
|
+
# @param [String] view
|
87
|
+
# Controls the amount of information included in the response.
|
88
|
+
# By default only
|
89
|
+
# creativeServingDecision
|
90
|
+
# is included. To retrieve the entire creative
|
91
|
+
# resource (including the declared
|
92
|
+
# fields and the creative content) specify the view as "FULL".
|
93
|
+
# @param [String] fields
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
95
|
+
# @param [String] quota_user
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
99
|
+
# Request-specific options
|
100
|
+
#
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
102
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::ListCreativesResponse] parsed result object
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
104
|
+
#
|
105
|
+
# @return [Google::Apis::RealtimebiddingV1::ListCreativesResponse]
|
106
|
+
#
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
110
|
+
def list_bidder_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
111
|
+
command = make_simple_command(:get, 'v1/{+parent}/creatives', options)
|
112
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::ListCreativesResponse::Representation
|
113
|
+
command.response_class = Google::Apis::RealtimebiddingV1::ListCreativesResponse
|
114
|
+
command.params['parent'] = parent unless parent.nil?
|
115
|
+
command.query['filter'] = filter unless filter.nil?
|
116
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
117
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
118
|
+
command.query['view'] = view unless view.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Watches all creatives pertaining to a bidder. It is sufficient to invoke
|
125
|
+
# this endpoint once per bidder. A Pub/Sub topic will be created and
|
126
|
+
# notifications will be pushed to the topic when any of the bidder's
|
127
|
+
# creatives change status. All of the bidder's service accounts will have
|
128
|
+
# access to read from the topic.
|
129
|
+
# Subsequent invocations of this method will return the existing
|
130
|
+
# Pub/Sub configuration.
|
131
|
+
# @param [String] parent
|
132
|
+
# Required. To watch all creatives pertaining to the bidder and all its child
|
133
|
+
# seat
|
134
|
+
# accounts, the bidder must follow the pattern `bidders/`bidderAccountId``.
|
135
|
+
# @param [Google::Apis::RealtimebiddingV1::WatchCreativesRequest] watch_creatives_request_object
|
136
|
+
# @param [String] fields
|
137
|
+
# Selector specifying which fields to include in a partial response.
|
138
|
+
# @param [String] quota_user
|
139
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
140
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
141
|
+
# @param [Google::Apis::RequestOptions] options
|
142
|
+
# Request-specific options
|
143
|
+
#
|
144
|
+
# @yield [result, err] Result & error if block supplied
|
145
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::WatchCreativesResponse] parsed result object
|
146
|
+
# @yieldparam err [StandardError] error object if request failed
|
147
|
+
#
|
148
|
+
# @return [Google::Apis::RealtimebiddingV1::WatchCreativesResponse]
|
149
|
+
#
|
150
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
151
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
152
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
153
|
+
def watch_creatives(parent, watch_creatives_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
154
|
+
command = make_simple_command(:post, 'v1/{+parent}/creatives:watch', options)
|
155
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::WatchCreativesRequest::Representation
|
156
|
+
command.request_object = watch_creatives_request_object
|
157
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::WatchCreativesResponse::Representation
|
158
|
+
command.response_class = Google::Apis::RealtimebiddingV1::WatchCreativesResponse
|
159
|
+
command.params['parent'] = parent unless parent.nil?
|
160
|
+
command.query['fields'] = fields unless fields.nil?
|
161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
|
+
execute_or_queue_command(command, &block)
|
163
|
+
end
|
164
|
+
|
165
|
+
# Gets remarketing tag for a buyer. A remarketing tag is a piece of
|
166
|
+
# JavaScript code that can be placed on a web page. When a user
|
167
|
+
# visits a page containing a remarketing tag, Google adds the user to a user
|
168
|
+
# list.
|
169
|
+
# @param [String] name
|
170
|
+
# Required. To fetch remarketing tag for an account, name must follow the
|
171
|
+
# pattern
|
172
|
+
# `buyers/`accountId`` where ``accountId``
|
173
|
+
# represents ID of a buyer that owns the remarketing tag. For a
|
174
|
+
# bidder accessing remarketing tag on behalf of a child seat buyer,
|
175
|
+
# ``accountId`` should represent the ID of the child seat buyer.
|
176
|
+
# To fetch remarketing tag for a specific user list, name
|
177
|
+
# must follow the pattern
|
178
|
+
# `buyers/`accountId`/userLists/`userListId``. See
|
179
|
+
# UserList.name.
|
180
|
+
# @param [String] fields
|
181
|
+
# Selector specifying which fields to include in a partial response.
|
182
|
+
# @param [String] quota_user
|
183
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
184
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
185
|
+
# @param [Google::Apis::RequestOptions] options
|
186
|
+
# Request-specific options
|
187
|
+
#
|
188
|
+
# @yield [result, err] Result & error if block supplied
|
189
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse] parsed result object
|
190
|
+
# @yieldparam err [StandardError] error object if request failed
|
191
|
+
#
|
192
|
+
# @return [Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse]
|
193
|
+
#
|
194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
197
|
+
def get_buyer_remarketing_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
198
|
+
command = make_simple_command(:get, 'v1/{+name}:getRemarketingTag', options)
|
199
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse::Representation
|
200
|
+
command.response_class = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
|
201
|
+
command.params['name'] = name unless name.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Creates a creative.
|
208
|
+
# @param [String] parent
|
209
|
+
# Required. The name of the parent buyer that the new creative belongs to that
|
210
|
+
# must
|
211
|
+
# follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
|
212
|
+
# represents the account ID of the buyer who owns a creative. For a bidder
|
213
|
+
# accessing creatives on behalf of a child seat buyer, ``buyerAccountId``
|
214
|
+
# should represent the account ID of the child seat buyer.
|
215
|
+
# @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
|
216
|
+
# @param [String] fields
|
217
|
+
# Selector specifying which fields to include in a partial response.
|
218
|
+
# @param [String] quota_user
|
219
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
220
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
221
|
+
# @param [Google::Apis::RequestOptions] options
|
222
|
+
# Request-specific options
|
223
|
+
#
|
224
|
+
# @yield [result, err] Result & error if block supplied
|
225
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::Creative] parsed result object
|
226
|
+
# @yieldparam err [StandardError] error object if request failed
|
227
|
+
#
|
228
|
+
# @return [Google::Apis::RealtimebiddingV1::Creative]
|
229
|
+
#
|
230
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
231
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
232
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
233
|
+
def create_buyer_creative(parent, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
234
|
+
command = make_simple_command(:post, 'v1/{+parent}/creatives', options)
|
235
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::Creative::Representation
|
236
|
+
command.request_object = creative_object
|
237
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation
|
238
|
+
command.response_class = Google::Apis::RealtimebiddingV1::Creative
|
239
|
+
command.params['parent'] = parent unless parent.nil?
|
240
|
+
command.query['fields'] = fields unless fields.nil?
|
241
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
242
|
+
execute_or_queue_command(command, &block)
|
243
|
+
end
|
244
|
+
|
245
|
+
# Gets a creative.
|
246
|
+
# @param [String] name
|
247
|
+
# Required. Name of the creative to retrieve. See
|
248
|
+
# creative.name.
|
249
|
+
# @param [String] view
|
250
|
+
# Controls the amount of information included in the response.
|
251
|
+
# By default only
|
252
|
+
# creativeServingDecision
|
253
|
+
# is included. To retrieve the entire creative
|
254
|
+
# resource (including the declared
|
255
|
+
# fields and the creative content) specify the view as "FULL".
|
256
|
+
# @param [String] fields
|
257
|
+
# Selector specifying which fields to include in a partial response.
|
258
|
+
# @param [String] quota_user
|
259
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
260
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
261
|
+
# @param [Google::Apis::RequestOptions] options
|
262
|
+
# Request-specific options
|
263
|
+
#
|
264
|
+
# @yield [result, err] Result & error if block supplied
|
265
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::Creative] parsed result object
|
266
|
+
# @yieldparam err [StandardError] error object if request failed
|
267
|
+
#
|
268
|
+
# @return [Google::Apis::RealtimebiddingV1::Creative]
|
269
|
+
#
|
270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
273
|
+
def get_buyer_creative(name, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
274
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
275
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation
|
276
|
+
command.response_class = Google::Apis::RealtimebiddingV1::Creative
|
277
|
+
command.params['name'] = name unless name.nil?
|
278
|
+
command.query['view'] = view unless view.nil?
|
279
|
+
command.query['fields'] = fields unless fields.nil?
|
280
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
281
|
+
execute_or_queue_command(command, &block)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Lists creatives.
|
285
|
+
# @param [String] parent
|
286
|
+
# Required. Name of the parent buyer that owns the creatives.
|
287
|
+
# The pattern for this resource is either `buyers/`buyerAccountId`` or
|
288
|
+
# `bidders/`bidderAccountId``.
|
289
|
+
# For `buyers/`buyerAccountId``, the `buyerAccountId` can be one of the
|
290
|
+
# following:
|
291
|
+
# 1. The ID of the buyer that is accessing their own creatives.
|
292
|
+
# 2. The ID of the child seat buyer under a bidder account.
|
293
|
+
# So for listing creatives pertaining to the child seat buyer (`456`)
|
294
|
+
# under bidder account (`123`), you would use the pattern: `buyers/456`.
|
295
|
+
# 3. The ID of the bidder itself.
|
296
|
+
# So for listing creatives pertaining to bidder (`123`),
|
297
|
+
# you would use `buyers/123`.
|
298
|
+
# If you want to access all creatives pertaining to both the bidder and all
|
299
|
+
# of its child seat accounts, you would use `bidders/`bidderAccountId``,
|
300
|
+
# e.g., for all creatives pertaining to bidder (`123`), use `bidders/123`.
|
301
|
+
# @param [String] filter
|
302
|
+
# Query string to filter creatives. If no filter is specified,
|
303
|
+
# all active creatives will be returned.
|
304
|
+
# Example: 'accountId=12345 AND (dealsStatus:DISAPPROVED AND
|
305
|
+
# disapprovalReason:UNACCEPTABLE_CONTENT) OR
|
306
|
+
# declaredAttributes:IS_COOKIE_TARGETED'
|
307
|
+
# @param [Fixnum] page_size
|
308
|
+
# Requested page size. The server may return fewer creatives than requested
|
309
|
+
# (due to timeout constraint) even if more are available via another call.
|
310
|
+
# If unspecified, server will pick an appropriate default.
|
311
|
+
# Acceptable values are 1 to 1000, inclusive.
|
312
|
+
# @param [String] page_token
|
313
|
+
# A token identifying a page of results the server should return.
|
314
|
+
# Typically, this is the value of
|
315
|
+
# ListCreativesResponse.nextPageToken
|
316
|
+
# returned from the previous call to the 'ListCreatives' method.
|
317
|
+
# @param [String] view
|
318
|
+
# Controls the amount of information included in the response.
|
319
|
+
# By default only
|
320
|
+
# creativeServingDecision
|
321
|
+
# is included. To retrieve the entire creative
|
322
|
+
# resource (including the declared
|
323
|
+
# fields and the creative content) specify the view as "FULL".
|
324
|
+
# @param [String] fields
|
325
|
+
# Selector specifying which fields to include in a partial response.
|
326
|
+
# @param [String] quota_user
|
327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
329
|
+
# @param [Google::Apis::RequestOptions] options
|
330
|
+
# Request-specific options
|
331
|
+
#
|
332
|
+
# @yield [result, err] Result & error if block supplied
|
333
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::ListCreativesResponse] parsed result object
|
334
|
+
# @yieldparam err [StandardError] error object if request failed
|
335
|
+
#
|
336
|
+
# @return [Google::Apis::RealtimebiddingV1::ListCreativesResponse]
|
337
|
+
#
|
338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
341
|
+
def list_buyer_creatives(parent, filter: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
342
|
+
command = make_simple_command(:get, 'v1/{+parent}/creatives', options)
|
343
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::ListCreativesResponse::Representation
|
344
|
+
command.response_class = Google::Apis::RealtimebiddingV1::ListCreativesResponse
|
345
|
+
command.params['parent'] = parent unless parent.nil?
|
346
|
+
command.query['filter'] = filter unless filter.nil?
|
347
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
348
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
349
|
+
command.query['view'] = view unless view.nil?
|
350
|
+
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
352
|
+
execute_or_queue_command(command, &block)
|
353
|
+
end
|
354
|
+
|
355
|
+
# Updates a creative.
|
356
|
+
# @param [String] name
|
357
|
+
# Name of the creative to update. See
|
358
|
+
# creative.name.
|
359
|
+
# @param [Google::Apis::RealtimebiddingV1::Creative] creative_object
|
360
|
+
# @param [String] update_mask
|
361
|
+
# Field mask to use for partial in-place updates.
|
362
|
+
# @param [String] fields
|
363
|
+
# Selector specifying which fields to include in a partial response.
|
364
|
+
# @param [String] quota_user
|
365
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
366
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
367
|
+
# @param [Google::Apis::RequestOptions] options
|
368
|
+
# Request-specific options
|
369
|
+
#
|
370
|
+
# @yield [result, err] Result & error if block supplied
|
371
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::Creative] parsed result object
|
372
|
+
# @yieldparam err [StandardError] error object if request failed
|
373
|
+
#
|
374
|
+
# @return [Google::Apis::RealtimebiddingV1::Creative]
|
375
|
+
#
|
376
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
377
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
378
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
379
|
+
def patch_buyer_creative(name, creative_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
380
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
381
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::Creative::Representation
|
382
|
+
command.request_object = creative_object
|
383
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::Creative::Representation
|
384
|
+
command.response_class = Google::Apis::RealtimebiddingV1::Creative
|
385
|
+
command.params['name'] = name unless name.nil?
|
386
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
387
|
+
command.query['fields'] = fields unless fields.nil?
|
388
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
389
|
+
execute_or_queue_command(command, &block)
|
390
|
+
end
|
391
|
+
|
392
|
+
# Change the status of a user list to CLOSED. This prevents new users from
|
393
|
+
# being added to the user list.
|
394
|
+
# @param [String] name
|
395
|
+
# Required. The name of the user list to close.
|
396
|
+
# See UserList.name
|
397
|
+
# @param [Google::Apis::RealtimebiddingV1::CloseUserListRequest] close_user_list_request_object
|
398
|
+
# @param [String] fields
|
399
|
+
# Selector specifying which fields to include in a partial response.
|
400
|
+
# @param [String] quota_user
|
401
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
402
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
403
|
+
# @param [Google::Apis::RequestOptions] options
|
404
|
+
# Request-specific options
|
405
|
+
#
|
406
|
+
# @yield [result, err] Result & error if block supplied
|
407
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::UserList] parsed result object
|
408
|
+
# @yieldparam err [StandardError] error object if request failed
|
409
|
+
#
|
410
|
+
# @return [Google::Apis::RealtimebiddingV1::UserList]
|
411
|
+
#
|
412
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
413
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
414
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
415
|
+
def close_user_list(name, close_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
416
|
+
command = make_simple_command(:post, 'v1/{+name}:close', options)
|
417
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::CloseUserListRequest::Representation
|
418
|
+
command.request_object = close_user_list_request_object
|
419
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
420
|
+
command.response_class = Google::Apis::RealtimebiddingV1::UserList
|
421
|
+
command.params['name'] = name unless name.nil?
|
422
|
+
command.query['fields'] = fields unless fields.nil?
|
423
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
424
|
+
execute_or_queue_command(command, &block)
|
425
|
+
end
|
426
|
+
|
427
|
+
# Create a new user list.
|
428
|
+
# @param [String] parent
|
429
|
+
# Required. The name of the parent buyer of the user list to be retrieved that
|
430
|
+
# must follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
|
431
|
+
# represents the account ID of the buyer who owns user lists. For a bidder
|
432
|
+
# accessing user lists on behalf of a child seat buyer , ``buyerAccountId``
|
433
|
+
# should represent the account ID of the child seat buyer.
|
434
|
+
# @param [Google::Apis::RealtimebiddingV1::UserList] user_list_object
|
435
|
+
# @param [String] fields
|
436
|
+
# Selector specifying which fields to include in a partial response.
|
437
|
+
# @param [String] quota_user
|
438
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
439
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
441
|
+
# Request-specific options
|
442
|
+
#
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
444
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::UserList] parsed result object
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
446
|
+
#
|
447
|
+
# @return [Google::Apis::RealtimebiddingV1::UserList]
|
448
|
+
#
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
+
def create_buyer_user_list(parent, user_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
453
|
+
command = make_simple_command(:post, 'v1/{+parent}/userLists', options)
|
454
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
455
|
+
command.request_object = user_list_object
|
456
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
457
|
+
command.response_class = Google::Apis::RealtimebiddingV1::UserList
|
458
|
+
command.params['parent'] = parent unless parent.nil?
|
459
|
+
command.query['fields'] = fields unless fields.nil?
|
460
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
|
+
execute_or_queue_command(command, &block)
|
462
|
+
end
|
463
|
+
|
464
|
+
# Gets a user list by its name.
|
465
|
+
# @param [String] name
|
466
|
+
# Required. The name of the user list to be retrieved. See
|
467
|
+
# UserList.name.
|
468
|
+
# @param [String] fields
|
469
|
+
# Selector specifying which fields to include in a partial response.
|
470
|
+
# @param [String] quota_user
|
471
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
472
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
473
|
+
# @param [Google::Apis::RequestOptions] options
|
474
|
+
# Request-specific options
|
475
|
+
#
|
476
|
+
# @yield [result, err] Result & error if block supplied
|
477
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::UserList] parsed result object
|
478
|
+
# @yieldparam err [StandardError] error object if request failed
|
479
|
+
#
|
480
|
+
# @return [Google::Apis::RealtimebiddingV1::UserList]
|
481
|
+
#
|
482
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
483
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
484
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
485
|
+
def get_buyer_user_list(name, fields: nil, quota_user: nil, options: nil, &block)
|
486
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
487
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
488
|
+
command.response_class = Google::Apis::RealtimebiddingV1::UserList
|
489
|
+
command.params['name'] = name unless name.nil?
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
execute_or_queue_command(command, &block)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Gets remarketing tag for a buyer. A remarketing tag is a piece of
|
496
|
+
# JavaScript code that can be placed on a web page. When a user
|
497
|
+
# visits a page containing a remarketing tag, Google adds the user to a user
|
498
|
+
# list.
|
499
|
+
# @param [String] name
|
500
|
+
# Required. To fetch remarketing tag for an account, name must follow the
|
501
|
+
# pattern
|
502
|
+
# `buyers/`accountId`` where ``accountId``
|
503
|
+
# represents ID of a buyer that owns the remarketing tag. For a
|
504
|
+
# bidder accessing remarketing tag on behalf of a child seat buyer,
|
505
|
+
# ``accountId`` should represent the ID of the child seat buyer.
|
506
|
+
# To fetch remarketing tag for a specific user list, name
|
507
|
+
# must follow the pattern
|
508
|
+
# `buyers/`accountId`/userLists/`userListId``. See
|
509
|
+
# UserList.name.
|
510
|
+
# @param [String] fields
|
511
|
+
# Selector specifying which fields to include in a partial response.
|
512
|
+
# @param [String] quota_user
|
513
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
514
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
515
|
+
# @param [Google::Apis::RequestOptions] options
|
516
|
+
# Request-specific options
|
517
|
+
#
|
518
|
+
# @yield [result, err] Result & error if block supplied
|
519
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse] parsed result object
|
520
|
+
# @yieldparam err [StandardError] error object if request failed
|
521
|
+
#
|
522
|
+
# @return [Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse]
|
523
|
+
#
|
524
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
525
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
526
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
527
|
+
def get_buyer_user_list_remarketing_tag(name, fields: nil, quota_user: nil, options: nil, &block)
|
528
|
+
command = make_simple_command(:get, 'v1/{+name}:getRemarketingTag', options)
|
529
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse::Representation
|
530
|
+
command.response_class = Google::Apis::RealtimebiddingV1::GetRemarketingTagResponse
|
531
|
+
command.params['name'] = name unless name.nil?
|
532
|
+
command.query['fields'] = fields unless fields.nil?
|
533
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
534
|
+
execute_or_queue_command(command, &block)
|
535
|
+
end
|
536
|
+
|
537
|
+
# Lists the user lists visible to the current user.
|
538
|
+
# @param [String] parent
|
539
|
+
# Required. The name of the parent buyer for the user lists to be returned that
|
540
|
+
# must
|
541
|
+
# follow the pattern `buyers/`buyerAccountId``, where ``buyerAccountId``
|
542
|
+
# represents the account ID of the buyer who owns user lists. For a bidder
|
543
|
+
# accessing user lists on behalf of a child seat buyer , ``buyerAccountId``
|
544
|
+
# should represent the account ID of the child seat buyer.
|
545
|
+
# @param [Fixnum] page_size
|
546
|
+
# The number of results to return per page.
|
547
|
+
# @param [String] page_token
|
548
|
+
# Continuation page token (as received from a previous response).
|
549
|
+
# @param [String] fields
|
550
|
+
# Selector specifying which fields to include in a partial response.
|
551
|
+
# @param [String] quota_user
|
552
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
553
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
554
|
+
# @param [Google::Apis::RequestOptions] options
|
555
|
+
# Request-specific options
|
556
|
+
#
|
557
|
+
# @yield [result, err] Result & error if block supplied
|
558
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::ListUserListsResponse] parsed result object
|
559
|
+
# @yieldparam err [StandardError] error object if request failed
|
560
|
+
#
|
561
|
+
# @return [Google::Apis::RealtimebiddingV1::ListUserListsResponse]
|
562
|
+
#
|
563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
566
|
+
def list_buyer_user_lists(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
567
|
+
command = make_simple_command(:get, 'v1/{+parent}/userLists', options)
|
568
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::ListUserListsResponse::Representation
|
569
|
+
command.response_class = Google::Apis::RealtimebiddingV1::ListUserListsResponse
|
570
|
+
command.params['parent'] = parent unless parent.nil?
|
571
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
572
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
573
|
+
command.query['fields'] = fields unless fields.nil?
|
574
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
575
|
+
execute_or_queue_command(command, &block)
|
576
|
+
end
|
577
|
+
|
578
|
+
# Change the status of a user list to OPEN. This allows new users to be added
|
579
|
+
# to the user list.
|
580
|
+
# @param [String] name
|
581
|
+
# Required. The name of the user list to open.
|
582
|
+
# See UserList.name
|
583
|
+
# @param [Google::Apis::RealtimebiddingV1::OpenUserListRequest] open_user_list_request_object
|
584
|
+
# @param [String] fields
|
585
|
+
# Selector specifying which fields to include in a partial response.
|
586
|
+
# @param [String] quota_user
|
587
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
588
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
589
|
+
# @param [Google::Apis::RequestOptions] options
|
590
|
+
# Request-specific options
|
591
|
+
#
|
592
|
+
# @yield [result, err] Result & error if block supplied
|
593
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::UserList] parsed result object
|
594
|
+
# @yieldparam err [StandardError] error object if request failed
|
595
|
+
#
|
596
|
+
# @return [Google::Apis::RealtimebiddingV1::UserList]
|
597
|
+
#
|
598
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
599
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
600
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
601
|
+
def open_user_list(name, open_user_list_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
602
|
+
command = make_simple_command(:post, 'v1/{+name}:open', options)
|
603
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::OpenUserListRequest::Representation
|
604
|
+
command.request_object = open_user_list_request_object
|
605
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
606
|
+
command.response_class = Google::Apis::RealtimebiddingV1::UserList
|
607
|
+
command.params['name'] = name unless name.nil?
|
608
|
+
command.query['fields'] = fields unless fields.nil?
|
609
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
610
|
+
execute_or_queue_command(command, &block)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Update the given user list. Only user lists with URLRestrictions can be
|
614
|
+
# updated.
|
615
|
+
# @param [String] name
|
616
|
+
# Output only. Name of the user list that must follow the pattern
|
617
|
+
# `buyers/`buyer`/userLists/`user_list``, where ``buyer`` represents
|
618
|
+
# the account ID of the buyer who owns the user list. For a bidder accessing
|
619
|
+
# user lists on behalf of a child seat buyer, ``buyer`` represents
|
620
|
+
# the account ID of the child seat buyer. ``user_list`` is an int64
|
621
|
+
# identifier assigned by Google to uniquely identify a user list.
|
622
|
+
# @param [Google::Apis::RealtimebiddingV1::UserList] user_list_object
|
623
|
+
# @param [String] fields
|
624
|
+
# Selector specifying which fields to include in a partial response.
|
625
|
+
# @param [String] quota_user
|
626
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
627
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
628
|
+
# @param [Google::Apis::RequestOptions] options
|
629
|
+
# Request-specific options
|
630
|
+
#
|
631
|
+
# @yield [result, err] Result & error if block supplied
|
632
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1::UserList] parsed result object
|
633
|
+
# @yieldparam err [StandardError] error object if request failed
|
634
|
+
#
|
635
|
+
# @return [Google::Apis::RealtimebiddingV1::UserList]
|
636
|
+
#
|
637
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
638
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
639
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
640
|
+
def update_buyer_user_list(name, user_list_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
641
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
642
|
+
command.request_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
643
|
+
command.request_object = user_list_object
|
644
|
+
command.response_representation = Google::Apis::RealtimebiddingV1::UserList::Representation
|
645
|
+
command.response_class = Google::Apis::RealtimebiddingV1::UserList
|
646
|
+
command.params['name'] = name unless name.nil?
|
647
|
+
command.query['fields'] = fields unless fields.nil?
|
648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
649
|
+
execute_or_queue_command(command, &block)
|
650
|
+
end
|
651
|
+
|
652
|
+
protected
|
653
|
+
|
654
|
+
def apply_command_defaults(command)
|
655
|
+
command.query['key'] = key unless key.nil?
|
656
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
657
|
+
end
|
658
|
+
end
|
659
|
+
end
|
660
|
+
end
|
661
|
+
end
|