Class: Google::Apis::DoubleclickbidmanagerV1_1::DoubleClickBidManagerService

Inherits:
Core::BaseService
  • Object
show all
Defined in:
generated/google/apis/doubleclickbidmanager_v1_1/service.rb

Overview

DoubleClick Bid Manager API

API for viewing and managing your reports in DoubleClick Bid Manager.

Examples:

require 'google/apis/doubleclickbidmanager_v1_1'

Doubleclickbidmanager = Google::Apis::DoubleclickbidmanagerV1_1 # Alias the module
service = Doubleclickbidmanager::DoubleClickBidManagerService.new

See Also:

Instance Attribute Summary collapse

Attributes inherited from Core::BaseService

#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path

Instance Method Summary collapse

Methods inherited from Core::BaseService

#batch, #batch_upload, #fetch_all, #http

Methods included from Core::Logging

#logger

Constructor Details

#initializeDoubleClickBidManagerService

Returns a new instance of DoubleClickBidManagerService.


49
50
51
52
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 49

def initialize
  super('https://www.googleapis.com/', 'doubleclickbidmanager/v1.1/')
  @batch_path = 'batch/doubleclickbidmanager/v1.1'
end

Instance Attribute Details

#keyString

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.

Returns:

  • (String)

    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.


38
39
40
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 38

def key
  @key
end

#quota_userString

Returns An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

Returns:

  • (String)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.


43
44
45
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 43

def quota_user
  @quota_user
end

#user_ipString

Returns Deprecated. Please use quotaUser instead.

Returns:

  • (String)

    Deprecated. Please use quotaUser instead.


47
48
49
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 47

def user_ip
  @user_ip
end

Instance Method Details

#createquery_query(query_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query

Creates a query.

Parameters:

  • query_object (Google::Apis::DoubleclickbidmanagerV1_1::Query) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


141
142
143
144
145
146
147
148
149
150
151
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 141

def createquery_query(query_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'query', options)
  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['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#deletequery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Deletes a stored query as well as the associated stored reports.

Parameters:

  • query_id (Fixnum)

    Query ID to delete.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


175
176
177
178
179
180
181
182
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 175

def deletequery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:delete, 'query/{queryId}', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::DownloadResponse

Retrieves entities in SDF format.

Parameters:

  • download_request_object (Google::Apis::DoubleclickbidmanagerV1_1::DownloadRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


349
350
351
352
353
354
355
356
357
358
359
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 349

def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'sdf/download', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsResponse

Retrieves line items in CSV format. TrueView line items are not supported.

Parameters:

  • download_line_items_request_object (Google::Apis::DoubleclickbidmanagerV1_1::DownloadLineItemsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


75
76
77
78
79
80
81
82
83
84
85
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 75

def downloadlineitems_lineitem(download_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'lineitems/downloadlineitems', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#getquery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::Query

Retrieves a stored query.

Parameters:

  • query_id (Fixnum)

    Query ID to retrieve.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


206
207
208
209
210
211
212
213
214
215
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 206

def getquery_query(query_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'query/{queryId}', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListQueriesResponse

Retrieves stored queries.

Parameters:

  • page_size (Fixnum) (defaults to: nil)

    Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified.

  • page_token (String) (defaults to: nil)

    Optional pagination token.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


242
243
244
245
246
247
248
249
250
251
252
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 242

def listqueries_query(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'queries', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::ListReportsResponse

Retrieves stored reports.

Parameters:

  • query_id (Fixnum)

    Query ID with which the reports are associated.

  • page_size (Fixnum) (defaults to: nil)

    Maximum number of results per page. Must be between 1 and 100. Defaults to 100 if unspecified.

  • page_token (String) (defaults to: nil)

    Optional pagination token.

  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


315
316
317
318
319
320
321
322
323
324
325
326
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 315

def listreports_report(query_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:get, 'queries/{queryId}/reports', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#runquery_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... }

This method returns an undefined value.

Runs a stored query to generate a report.

Parameters:

  • query_id (Fixnum)

    Query ID to run.

  • run_query_request_object (Google::Apis::DoubleclickbidmanagerV1_1::RunQueryRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

  • result (NilClass)

    No result returned for this method

  • err (StandardError)

    error object if request failed

Raises:


277
278
279
280
281
282
283
284
285
286
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 277

def runquery_query(query_id, run_query_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'query/{queryId}', options)
  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['fields'] = fields unless fields.nil?
  command.query['quotaUser'] = quota_user unless quota_user.nil?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end

#uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsResponse

Uploads line items in CSV format. TrueView line items are not supported.

Parameters:

  • upload_line_items_request_object (Google::Apis::DoubleclickbidmanagerV1_1::UploadLineItemsRequest) (defaults to: nil)
  • fields (String) (defaults to: nil)

    Selector specifying which fields to include in a partial response.

  • quota_user (String) (defaults to: nil)

    An opaque string that represents a user for quota purposes. Must not exceed 40 characters.

  • user_ip (String) (defaults to: nil)

    Deprecated. Please use quotaUser instead.

  • options (Google::Apis::RequestOptions) (defaults to: nil)

    Request-specific options

Yields:

  • (result, err)

    Result & error if block supplied

Yield Parameters:

Returns:

Raises:


108
109
110
111
112
113
114
115
116
117
118
# File 'generated/google/apis/doubleclickbidmanager_v1_1/service.rb', line 108

def uploadlineitems_lineitem(upload_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
  command = make_simple_command(:post, 'lineitems/uploadlineitems', options)
  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?
  command.query['userIp'] = user_ip unless user_ip.nil?
  execute_or_queue_command(command, &block)
end