Class: Google::Apis::DoubleclickbidmanagerV2::DoubleClickBidManagerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DoubleclickbidmanagerV2::DoubleClickBidManagerService
- Defined in:
- lib/google/apis/doubleclickbidmanager_v2/service.rb
Overview
DoubleClick Bid Manager API
DoubleClick Bid Manager API allows users to manage and create campaigns and reports.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_query(query_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Query
Creates a query.
-
#delete_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a stored query as well as the associated stored reports.
-
#get_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Query
Retrieves a stored query.
-
#get_query_report(query_id, report_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Report
Retrieves a stored report.
-
#initialize ⇒ DoubleClickBidManagerService
constructor
A new instance of DoubleClickBidManagerService.
-
#list_queries(order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::ListQueriesResponse
Retrieves stored queries.
-
#list_query_reports(query_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::ListReportsResponse
Lists reports.
-
#run_query(query_id, run_query_request_object = nil, synchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Report
Runs a stored query to generate a report.
Constructor Details
#initialize ⇒ DoubleClickBidManagerService
Returns a new instance of DoubleClickBidManagerService.
46 47 48 49 50 51 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 46 def initialize super('https://doubleclickbidmanager.googleapis.com/', 'v2/', client_name: 'google-apis-doubleclickbidmanager_v2', client_version: Google::Apis::DoubleclickbidmanagerV2::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#create_query(query_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Query
Creates a query.
72 73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 72 def create_query(query_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'queries', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV2::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV2::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::Query command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Deletes a stored query as well as the associated stored reports.
103 104 105 106 107 108 109 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 103 def delete_query(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'queries/{queryId}', ) command.params['queryId'] = query_id unless query_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Query
Retrieves a stored query.
131 132 133 134 135 136 137 138 139 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 131 def get_query(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries/{queryId}', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV2::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::Query command.params['queryId'] = query_id unless query_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_query_report(query_id, report_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Report
Retrieves a stored report.
242 243 244 245 246 247 248 249 250 251 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 242 def get_query_report(query_id, report_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries/{queryId}/reports/{reportId}', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV2::Report::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::Report command.params['queryId'] = query_id unless query_id.nil? command.params['reportId'] = report_id unless report_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_queries(order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::ListQueriesResponse
Retrieves stored queries.
170 171 172 173 174 175 176 177 178 179 180 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 170 def list_queries(order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV2::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::ListQueriesResponse command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_query_reports(query_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::ListReportsResponse
Lists reports.
284 285 286 287 288 289 290 291 292 293 294 295 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 284 def list_query_reports(query_id, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries/{queryId}/reports', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV2::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::ListReportsResponse command.params['queryId'] = query_id unless query_id.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#run_query(query_id, run_query_request_object = nil, synchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV2::Report
Runs a stored query to generate a report.
207 208 209 210 211 212 213 214 215 216 217 218 |
# File 'lib/google/apis/doubleclickbidmanager_v2/service.rb', line 207 def run_query(query_id, run_query_request_object = nil, synchronous: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'queries/{queryId}:run', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV2::RunQueryRequest::Representation command.request_object = run_query_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV2::Report::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV2::Report command.params['queryId'] = query_id unless query_id.nil? command.query['synchronous'] = synchronous unless synchronous.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |