Class: Google::Apis::DoubleclickbidmanagerV1_1::DoubleClickBidManagerService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::DoubleclickbidmanagerV1_1::DoubleClickBidManagerService
- Defined in:
- generated/google/apis/doubleclickbidmanager_v1_1/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
-
#createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query
Creates a query.
-
#deletequery_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Deletes a stored query as well as the associated stored reports.
-
#download_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse
Retrieves entities in SDF format.
-
#downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse
Retrieves line items in CSV format.
-
#getquery_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query
Retrieves a stored query.
-
#initialize ⇒ DoubleClickBidManagerService
constructor
A new instance of DoubleClickBidManagerService.
-
#listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse
Retrieves stored queries.
-
#listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse
Retrieves stored reports.
-
#runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
Runs a stored query to generate a report.
-
#uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::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_1/service.rb', line 46 def initialize super('https://doubleclickbidmanager.googleapis.com/', 'doubleclickbidmanager/v1.1/') @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_1/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_1/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query
Creates a query.
135 136 137 138 139 140 141 142 143 144 145 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 135 def createquery_query(query_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'query', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.request_object = query_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::Query command.query['asynchronous'] = asynchronous unless asynchronous.nil? 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(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.
167 168 169 170 171 172 173 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 167 def deletequery_query(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_sdf(download_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse
Retrieves entities in SDF format.
329 330 331 332 333 334 335 336 337 338 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 329 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_1::DownloadRequest::Representation command.request_object = download_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::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_1/service.rb', line 71 def downloadlineitems_lineitem(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_1::DownloadLineItemsRequest::Representation command.request_object = download_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#getquery_query(query_id, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query
Retrieves a stored query.
195 196 197 198 199 200 201 202 203 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 195 def getquery_query(query_id, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'query/{queryId}', ) command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::Query::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::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 |
#listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse
Retrieves stored queries.
228 229 230 231 232 233 234 235 236 237 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 228 def listqueries_query(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::DoubleclickbidmanagerV1_1::ListQueriesResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse 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 |
#listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse
Retrieves stored reports.
298 299 300 301 302 303 304 305 306 307 308 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 298 def listreports_report(query_id, 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::DoubleclickbidmanagerV1_1::ListReportsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse command.params['queryId'] = query_id unless query_id.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 |
#runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... }
This method returns an undefined value.
Runs a stored query to generate a report.
262 263 264 265 266 267 268 269 270 271 |
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 262 def runquery_query(query_id, run_query_request_object = nil, asynchronous: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'query/{queryId}', ) command.request_representation = Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest::Representation command.request_object = run_query_request_object command.params['queryId'] = query_id unless query_id.nil? command.query['asynchronous'] = asynchronous unless asynchronous.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::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_1/service.rb', line 102 def uploadlineitems_lineitem(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_1::UploadLineItemsRequest::Representation command.request_object = upload_line_items_request_object command.response_representation = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse::Representation command.response_class = Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |