Class: Google::Apis::DoubleclickbidmanagerV1::DoubleClickBidManagerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DoubleclickbidmanagerV1::DoubleClickBidManagerService
- Defined in:
- generated/google/apis/doubleclickbidmanager_v1/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::DoubleclickbidmanagerV1::Query
Creates a query.
-
#deletequery(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a stored query as well as the associated stored reports.
-
#download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse
Retrieves line items in CSV format.
-
#download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::DownloadResponse
Retrieves entities in SDF format.
-
#get_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::Query
Retrieves a stored query.
-
#initialize ⇒ DoubleClickBidManagerService
constructor
A new instance of DoubleClickBidManagerService.
-
#list_queries(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse
Retrieves stored queries.
-
#list_reports(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse
Retrieves stored reports.
-
#run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Runs a stored query to generate a report.
-
#upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse
Uploads line items in CSV format.
Constructor Details
#initialize ⇒ DoubleClickBidManagerService
Returns a new instance of DoubleClickBidManagerService.
46 47 48 49 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 46 def initialize super('https://doubleclickbidmanager.googleapis.com/', 'doubleclickbidmanager/v1/') @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 'generated/google/apis/doubleclickbidmanager_v1/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 'generated/google/apis/doubleclickbidmanager_v1/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::DoubleclickbidmanagerV1::Query
Creates a query.
132 133 134 135 136 137 138 139 140 141 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 132 def create_query(query_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'query', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::Query command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#deletequery(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.
163 164 165 166 167 168 169 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 163 def deletequery(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'query/{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 |
#download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse
Retrieves line items in CSV format. YouTube & partners line items are not supported.
71 72 73 74 75 76 77 78 79 80 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 71 def download_line_items(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'lineitems/downloadlineitems', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsRequest::Representation command.request_object = download_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadLineItemsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::DownloadResponse
Retrieves entities in SDF format.
308 309 310 311 312 313 314 315 316 317 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 308 def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'sdf/download', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation command.request_object = download_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse 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::DoubleclickbidmanagerV1::Query
Retrieves a stored query.
191 192 193 194 195 196 197 198 199 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 191 def get_query(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'query/{queryId}', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::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 |
#list_queries(fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse
Retrieves stored queries.
219 220 221 222 223 224 225 226 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 219 def list_queries(fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListQueriesResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_reports(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse
Retrieves stored reports.
279 280 281 282 283 284 285 286 287 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 279 def list_reports(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'queries/{queryId}/reports', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::ListReportsResponse 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 |
#run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Runs a stored query to generate a report.
249 250 251 252 253 254 255 256 257 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 249 def run_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'query/{queryId}', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::RunQueryRequest::Representation command.request_object = run_query_request_object 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 |
#upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse
Uploads line items in CSV format. YouTube & partners line items are not supported.
102 103 104 105 106 107 108 109 110 111 |
# File 'generated/google/apis/doubleclickbidmanager_v1/service.rb', line 102 def upload_line_items(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'lineitems/uploadlineitems', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsRequest::Representation command.request_object = upload_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1::UploadLineItemsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |