2016-10-14 22:48:26 +00:00
|
|
|
# Copyright 2015 Google Inc.
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
require 'google/apis/core/base_service'
|
|
|
|
require 'google/apis/core/json_representation'
|
|
|
|
require 'google/apis/core/hashable'
|
|
|
|
require 'google/apis/errors'
|
|
|
|
|
|
|
|
module Google
|
|
|
|
module Apis
|
|
|
|
module Adexchangebuyer2V2beta1
|
|
|
|
# Ad Exchange Buyer API II
|
|
|
|
#
|
2016-10-20 20:15:24 +00:00
|
|
|
# Accesses the latest features for managing Ad Exchange accounts, Real-Time
|
|
|
|
# Bidding configurations and auction metrics, and Marketplace programmatic deals.
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @example
|
|
|
|
# require 'google/apis/adexchangebuyer2_v2beta1'
|
|
|
|
#
|
|
|
|
# Adexchangebuyer2 = Google::Apis::Adexchangebuyer2V2beta1 # Alias the module
|
|
|
|
# service = Adexchangebuyer2::AdExchangeBuyerIIService.new
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/
|
2016-10-14 22:48:26 +00:00
|
|
|
class AdExchangeBuyerIIService < Google::Apis::Core::BaseService
|
2017-03-31 19:53:27 +00:00
|
|
|
# @return [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.
|
|
|
|
attr_accessor :key
|
|
|
|
|
2017-04-03 20:18:48 +00:00
|
|
|
# @return [String]
|
|
|
|
# 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.
|
|
|
|
attr_accessor :quota_user
|
|
|
|
|
2016-10-14 22:48:26 +00:00
|
|
|
def initialize
|
|
|
|
super('https://adexchangebuyer.googleapis.com/', '')
|
2017-04-03 20:18:48 +00:00
|
|
|
@batch_path = 'batch'
|
2016-10-14 22:48:26 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Creates a new client buyer.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# Unique numerical account ID for the buyer of which the client buyer
|
|
|
|
# is a customer; the sponsor buyer to create a client for. (required)
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
2016-10-14 22:48:26 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def create_account_client(account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
command.request_object = client_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
2016-10-14 22:48:26 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Gets a client buyer with a given client account ID.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Numerical account ID of the client buyer to retrieve. (required)
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
2016-10-14 22:48:26 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def get_account_client(account_id, client_account_id, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
2016-10-14 22:48:26 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists all the clients for the current sponsor buyer.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# Unique numerical account ID of the sponsor buyer to list the clients for.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer clients than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListClientsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the
|
|
|
|
# accounts.clients.list method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse] parsed result object
|
2016-10-14 22:48:26 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse]
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def list_account_clients(account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientsResponse
|
2016-10-14 22:48:26 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Updates an existing client buyer.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Unique numerical account ID for the buyer of which the client buyer
|
2017-08-25 19:54:22 +00:00
|
|
|
# is a customer; the sponsor buyer to update a client for. (required)
|
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Unique numerical account ID of the client to update. (required)
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Client] client_object
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-10 21:11:09 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Client] parsed result object
|
2017-03-10 21:11:09 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Client]
|
2017-03-10 21:11:09 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def update_account_client(account_id, client_account_id, client_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
command.request_object = client_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Client
|
2017-03-10 21:11:09 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-10 21:11:09 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Creates and sends out an email invitation to access
|
|
|
|
# an Ad Exchange client buyer account.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Numerical account ID of the client buyer that the user
|
|
|
|
# should be associated with. (required)
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] client_user_invitation_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
2016-10-14 22:48:26 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def create_account_client_invitation(account_id, client_account_id, client_user_invitation_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
|
|
command.request_object = client_user_invitation_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
2016-10-14 22:48:26 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Retrieves an existing client user invitation.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Numerical account ID of the client buyer that the user invitation
|
|
|
|
# to be retrieved is associated with. (required)
|
|
|
|
# @param [Fixnum] invitation_id
|
|
|
|
# Numerical identifier of the user invitation to retrieve. (required)
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def get_account_client_invitation(account_id, client_account_id, invitation_id, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
|
|
|
command.params['invitationId'] = invitation_id unless invitation_id.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists all the client users invitations for a client
|
|
|
|
# with a given account ID.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] client_account_id
|
|
|
|
# Numerical account ID of the client buyer to list invitations for.
|
|
|
|
# (required)
|
|
|
|
# You must either specify a string representation of a
|
|
|
|
# numerical account identifier or the `-` character
|
|
|
|
# to list all the invitations for all the clients
|
|
|
|
# of a given sponsor buyer.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. Server may return fewer clients than requested.
|
|
|
|
# If unspecified, server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListClientUserInvitationsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the
|
|
|
|
# clients.invitations.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse] parsed result object
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse]
|
2017-07-12 20:10:42 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def list_account_client_invitations(account_id, client_account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUserInvitationsResponse
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Retrieves an existing client user.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Numerical account ID of the client buyer
|
|
|
|
# that the user to be retrieved is associated with. (required)
|
|
|
|
# @param [Fixnum] user_id
|
|
|
|
# Numerical identifier of the user to retrieve. (required)
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
2017-01-28 03:38:40 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
2017-01-28 03:38:40 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
2017-01-28 03:38:40 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def get_account_client_user(account_id, client_account_id, user_id, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
2017-01-28 03:38:40 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
|
|
|
command.params['userId'] = user_id unless user_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-01-28 03:38:40 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Lists all the known client users for a specified
|
|
|
|
# sponsor buyer account ID.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the sponsor buyer of the client to list users for.
|
|
|
|
# (required)
|
|
|
|
# @param [String] client_account_id
|
|
|
|
# The account ID of the client buyer to list users for. (required)
|
|
|
|
# You must specify either a string representation of a
|
|
|
|
# numerical account identifier or the `-` character
|
|
|
|
# to list all the client users for all the clients
|
|
|
|
# of a given sponsor buyer.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer clients than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-07-12 20:10:42 +00:00
|
|
|
# ListClientUsersResponse.nextPageToken
|
|
|
|
# returned from the previous call to the
|
|
|
|
# accounts.clients.users.list method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-01-28 03:38:40 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
2016-10-14 22:48:26 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse] parsed result object
|
2016-10-14 22:48:26 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse]
|
2016-10-14 22:48:26 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def list_account_client_users(account_id, client_account_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListClientUsersResponse
|
2016-10-14 22:48:26 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-05-04 19:35:56 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Updates an existing client user.
|
|
|
|
# Only the user status can be changed on update.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Numerical account ID of the client's sponsor buyer. (required)
|
|
|
|
# @param [Fixnum] client_account_id
|
|
|
|
# Numerical account ID of the client buyer that the user to be retrieved
|
|
|
|
# is associated with. (required)
|
|
|
|
# @param [Fixnum] user_id
|
|
|
|
# Numerical identifier of the user to retrieve. (required)
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] client_user_object
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-10 21:11:09 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ClientUser] parsed result object
|
2017-03-10 21:11:09 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ClientUser]
|
2017-03-10 21:11:09 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def update_account_client_user(account_id, client_account_id, user_id, client_user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
|
|
|
command.request_object = client_user_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ClientUser
|
2017-03-10 21:11:09 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['clientAccountId'] = client_account_id unless client_account_id.nil?
|
|
|
|
command.params['userId'] = user_id unless user_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-27 22:14:47 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Creates a creative.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# The account that this creative belongs to.
|
|
|
|
# Can be used to filter the response of the
|
|
|
|
# creatives.list
|
|
|
|
# method.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
|
|
|
|
# @param [String] duplicate_id_mode
|
|
|
|
# Indicates if multiple creatives can share an ID or not. Default is
|
|
|
|
# NO_DUPLICATES (one ID per creative).
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-27 22:14:47 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
2017-03-27 22:14:47 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
2017-03-27 22:14:47 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def create_account_creative(account_id, creative_object = nil, duplicate_id_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
command.request_object = creative_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
2017-03-27 22:14:47 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['duplicateIdMode'] = duplicate_id_mode unless duplicate_id_mode.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-05-26 16:44:32 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Gets a creative.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The account the creative belongs to.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] creative_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The ID of the creative to retrieve.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-05-26 16:44:32 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
2017-05-26 16:44:32 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
2017-05-26 16:44:32 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def get_account_creative(account_id, creative_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
2017-05-26 16:44:32 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-10 21:11:09 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists creatives.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The account to list the creatives from.
|
|
|
|
# Specify "-" to list all creatives the current user has access to.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer creatives than requested
|
|
|
|
# (due to timeout constraint) even if more are available via another call.
|
|
|
|
# If unspecified, server will pick an appropriate default.
|
|
|
|
# Acceptable values are 1 to 1000, inclusive.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListCreativesResponse.next_page_token
|
|
|
|
# returned from the previous call to 'ListCreatives' method.
|
|
|
|
# @param [String] query
|
|
|
|
# An optional query string to filter creatives. If no filter is specified,
|
|
|
|
# all active creatives will be returned.
|
|
|
|
# Supported queries are:
|
|
|
|
# <ul>
|
|
|
|
# <li>accountId=<i>account_id_string</i>
|
|
|
|
# <li>creativeId=<i>creative_id_string</i>
|
|
|
|
# <li>dealsStatus: `approved, conditionally_approved, disapproved,
|
|
|
|
# not_checked`
|
|
|
|
# <li>openAuctionStatus: `approved, conditionally_approved, disapproved,
|
|
|
|
# not_checked`
|
|
|
|
# <li>attribute: `a numeric attribute from the list of attributes`
|
2017-08-29 00:35:13 +00:00
|
|
|
# <li>disapprovalReason: `a reason from
|
|
|
|
# DisapprovalReason
|
2017-08-25 19:54:22 +00:00
|
|
|
# </ul>
|
2017-08-29 00:35:13 +00:00
|
|
|
# Example: 'accountId=12345 AND (dealsStatus:disapproved AND
|
|
|
|
# disapprovalReason:unacceptable_content) OR attribute:47'
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-10 21:11:09 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse] parsed result object
|
2017-03-10 21:11:09 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse]
|
2017-03-10 21:11:09 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def list_account_creatives(account_id, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativesResponse
|
2017-03-10 21:11:09 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
|
|
command.query['query'] = query unless query.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-10 21:11:09 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Stops watching a creative. Will stop push notifications being sent to the
|
|
|
|
# topics when the creative changes status.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The account of the creative to stop notifications for.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] creative_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The creative ID of the creative to stop notifications for.
|
|
|
|
# Specify "-" to specify stopping account level notifications.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest] stop_watching_creative_request_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-10 21:11:09 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
2017-03-10 21:11:09 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
2017-03-10 21:11:09 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def stop_watching_creative(account_id, creative_id, stop_watching_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::StopWatchingCreativeRequest::Representation
|
|
|
|
command.request_object = stop_watching_creative_request_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
2017-03-10 21:11:09 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-10 21:11:09 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Updates a creative.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The account that this creative belongs to.
|
|
|
|
# Can be used to filter the response of the
|
|
|
|
# creatives.list
|
2017-06-14 17:02:03 +00:00
|
|
|
# method.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] creative_id
|
|
|
|
# The buyer-defined creative ID of this creative.
|
|
|
|
# Can be used to filter the response of the
|
|
|
|
# creatives.list
|
|
|
|
# method.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::Creative] creative_object
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
2017-03-10 21:11:09 +00:00
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Creative] parsed result object
|
2017-03-10 21:11:09 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Creative]
|
2017-03-10 21:11:09 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def update_account_creative(account_id, creative_id, creative_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:put, 'v2beta1/accounts/{accountId}/creatives/{creativeId}', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
command.request_object = creative_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Creative
|
2017-03-10 21:11:09 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-27 22:14:47 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Watches a creative. Will result in push notifications being sent to the
|
|
|
|
# topic when the creative changes status.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] account_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The account of the creative to watch.
|
|
|
|
# @param [String] creative_id
|
|
|
|
# The creative ID to watch for status changes.
|
|
|
|
# Specify "-" to watch all creatives under the above account.
|
|
|
|
# If both creative-level and account-level notifications are
|
|
|
|
# sent, only a single notification will be sent to the
|
|
|
|
# creative-level notification topic.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest] watch_creative_request_object
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def watch_creative(account_id, creative_id, watch_creative_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}:watch', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::WatchCreativeRequest::Representation
|
|
|
|
command.request_object = watch_creative_request_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.params['creativeId'] = creative_id unless creative_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
|
|
|
|
|
|
|
|
# Associate an existing deal with a creative.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The account the creative belongs to.
|
|
|
|
# @param [String] creative_id
|
|
|
|
# The ID of the creative associated with the deal.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest] add_deal_association_request_object
|
2017-05-26 16:44:32 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def add_deal_association(account_id, creative_id, add_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::AddDealAssociationRequest::Representation
|
|
|
|
command.request_object = add_deal_association_request_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
2017-06-14 17:02:03 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all creative-deal associations.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The account to list the associations from.
|
|
|
|
# Specify "-" to list all creatives the current user has access to.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] creative_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# The creative ID to list the associations from.
|
|
|
|
# Specify "-" to list all creatives under the above account.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. Server may return fewer associations than requested.
|
|
|
|
# If unspecified, server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-07-12 20:10:42 +00:00
|
|
|
# ListDealAssociationsResponse.next_page_token
|
|
|
|
# returned from the previous call to 'ListDealAssociations' method.
|
|
|
|
# @param [String] query
|
|
|
|
# An optional query string to filter deal associations. If no filter is
|
|
|
|
# specified, all associations will be returned.
|
|
|
|
# Supported queries are:
|
|
|
|
# <ul>
|
|
|
|
# <li>accountId=<i>account_id_string</i>
|
|
|
|
# <li>creativeId=<i>creative_id_string</i>
|
|
|
|
# <li>dealsId=<i>deals_id_string</i>
|
|
|
|
# <li>dealsStatus:`approved, conditionally_approved, disapproved,
|
|
|
|
# not_checked`
|
|
|
|
# <li>openAuctionStatus:`approved, conditionally_approved, disapproved,
|
|
|
|
# not_checked`
|
|
|
|
# </ul>
|
|
|
|
# Example: 'dealsId=12345 AND dealsStatus:disapproved'
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-03-27 22:14:47 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse] parsed result object
|
2017-03-27 22:14:47 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse]
|
2017-03-27 22:14:47 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def list_account_creative_deal_associations(account_id, creative_id, page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:get, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListDealAssociationsResponse
|
2017-03-27 22:14:47 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-04-03 20:18:48 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['query'] = query unless query.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-03-10 21:11:09 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# Remove the association between a deal and a creative.
|
|
|
|
# @param [String] account_id
|
|
|
|
# The account the creative belongs to.
|
|
|
|
# @param [String] creative_id
|
|
|
|
# The ID of the creative associated with the deal.
|
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest] remove_deal_association_request_object
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-02 06:11:31 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
2017-06-02 06:11:31 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
2017-06-02 06:11:31 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-08-25 19:54:22 +00:00
|
|
|
def remove_deal_association(account_id, creative_id, remove_deal_association_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
command = make_simple_command(:post, 'v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove', options)
|
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::RemoveDealAssociationRequest::Representation
|
|
|
|
command.request_object = remove_deal_association_request_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
2017-06-02 06:11:31 +00:00
|
|
|
command.params['accountId'] = account_id unless account_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeId'] = creative_id unless creative_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-05-26 16:44:32 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-01-28 03:38:40 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
2017-07-12 20:10:42 +00:00
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Creates the specified filter set for the account with the given account ID.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] owner_name
|
|
|
|
# Name of the owner (bidder or account) of the filter set to be created.
|
|
|
|
# For example:
|
2017-10-24 00:36:03 +00:00
|
|
|
# - For a bidder-level filter set for bidder 123: `bidders/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] filter_set_object
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Boolean] is_transient
|
|
|
|
# Whether the filter set is transient, or should be persisted indefinitely.
|
|
|
|
# By default, filter sets are not transient.
|
|
|
|
# If transient, it will be available for at least 1 hour after creation.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def create_bidder_account_filter_set(owner_name, filter_set_object = nil, account_id: nil, is_transient: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:post, 'v2beta1/{+ownerName}/filterSets', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.request_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
|
|
|
|
command.request_object = filter_set_object
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['ownerName'] = owner_name unless owner_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['isTransient'] = is_transient unless is_transient.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Deletes the requested filter set from the account with the given account
|
2017-07-12 20:10:42 +00:00
|
|
|
# ID.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] name
|
|
|
|
# Full name of the resource to delete.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
2017-08-25 19:54:22 +00:00
|
|
|
# The ID of the filter set to delete.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-02-13 23:28:52 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
2017-02-13 23:28:52 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
2017-02-13 23:28:52 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2017-08-25 19:54:22 +00:00
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def delete_bidder_account_filter_set(name, account_id: nil, filter_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['name'] = name unless name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Retrieves the requested filter set for the account with the given account
|
|
|
|
# ID.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] name
|
|
|
|
# Full name of the resource being requested.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to get.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def get_bidder_account_filter_set(name, account_id: nil, filter_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['name'] = name unless name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists all filter sets for the account with the given account ID.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] owner_name
|
|
|
|
# Name of the owner (bidder or account) of the filter sets to be listed.
|
|
|
|
# For example:
|
2017-10-24 00:36:03 +00:00
|
|
|
# - For a bidder-level filter set for bidder 123: `bidders/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-08-25 19:54:22 +00:00
|
|
|
# ListFilterSetsResponse.nextPageToken
|
2017-06-14 17:02:03 +00:00
|
|
|
# returned from the previous call to the
|
2017-08-25 19:54:22 +00:00
|
|
|
# accounts.filterSets.list
|
2017-06-14 17:02:03 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_sets(owner_name, account_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+ownerName}/filterSets', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['ownerName'] = owner_name unless owner_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists all metrics that are measured in terms of number of bids.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-08-25 19:54:22 +00:00
|
|
|
# ListBidMetricsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the bidMetrics.list
|
2017-06-14 17:02:03 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_bid_metrics(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidMetrics', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all errors that occurred in bid responses, with the number of bid
|
|
|
|
# responses affected for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-07-12 20:10:42 +00:00
|
|
|
# ListBidResponseErrorsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the bidResponseErrors.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_bid_response_errors(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidResponseErrors', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all reasons for which bid responses were considered to have no
|
|
|
|
# applicable bids, with the number of bid responses affected for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListBidResponsesWithoutBidsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the bidResponsesWithoutBids.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_bid_responses_without_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidResponsesWithoutBids', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all reasons that caused a bid request not to be sent for an
|
|
|
|
# impression, with the number of bid requests not sent for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListFilteredBidRequestsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the filteredBidRequests.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_filtered_bid_requests(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBidRequests', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all reasons for which bids were filtered, with the number of bids
|
|
|
|
# filtered for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-07-12 20:10:42 +00:00
|
|
|
# ListFilteredBidsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the filteredBids.list
|
2017-06-14 17:02:03 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_filtered_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all creatives associated with a specific reason for which bids were
|
|
|
|
# filtered, with the number of bids filtered for each creative.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] creative_status_id
|
|
|
|
# The ID of the creative status for which to retrieve a breakdown by
|
|
|
|
# creative.
|
|
|
|
# See
|
|
|
|
# [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
|
|
|
|
# downloads/creative-status-codes).
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListCreativeStatusBreakdownByCreativeResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the filteredBids.creatives.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_filtered_bid_creatives(filter_set_name, creative_status_id, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
|
2017-10-18 00:35:03 +00:00
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all details associated with a specific reason for which bids were
|
|
|
|
# filtered, with the number of bids filtered for each detail.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [Fixnum] creative_status_id
|
|
|
|
# The ID of the creative status for which to retrieve a breakdown by detail.
|
|
|
|
# See
|
|
|
|
# [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
|
|
|
|
# downloads/creative-status-codes).
|
2017-08-25 19:54:22 +00:00
|
|
|
# Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-07-12 20:10:42 +00:00
|
|
|
# ListCreativeStatusBreakdownByDetailResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the filteredBids.details.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_filtered_bid_details(filter_set_name, creative_status_id, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
|
2017-10-18 00:35:03 +00:00
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-08-25 19:54:22 +00:00
|
|
|
# Lists all metrics that are measured in terms of number of impressions.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
2017-07-12 20:10:42 +00:00
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
2017-08-25 19:54:22 +00:00
|
|
|
# ListImpressionMetricsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the impressionMetrics.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-08-25 19:54:22 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-08-25 19:54:22 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_impression_metrics(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/impressionMetrics', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
2017-07-12 20:10:42 +00:00
|
|
|
# List all reasons for which bids lost in the auction, with the number of
|
|
|
|
# bids that lost for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
2017-07-12 20:10:42 +00:00
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListLosingBidsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the losingBids.list
|
2017-07-12 20:10:42 +00:00
|
|
|
# method.
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
2017-06-14 17:02:03 +00:00
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
2017-07-12 20:10:42 +00:00
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse] parsed result object
|
2017-06-14 17:02:03 +00:00
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
2017-07-12 20:10:42 +00:00
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse]
|
2017-06-14 17:02:03 +00:00
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_losing_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/losingBids', options)
|
2017-07-12 20:10:42 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-07-12 20:10:42 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# List all reasons for which winning bids were not billable, with the number
|
|
|
|
# of bids not billed for each reason.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-08-25 19:54:22 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListNonBillableWinningBidsResponse.nextPageToken
|
2017-10-18 00:35:03 +00:00
|
|
|
# returned from the previous call to the nonBillableWinningBids.list
|
2017-08-25 19:54:22 +00:00
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-18 00:35:03 +00:00
|
|
|
def list_bidder_account_filter_set_non_billable_winning_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/nonBillableWinningBids', options)
|
2017-08-25 19:54:22 +00:00
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse
|
2017-10-18 00:35:03 +00:00
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# Creates the specified filter set for the account with the given account ID.
|
|
|
|
# @param [String] owner_name
|
|
|
|
# Name of the owner (bidder or account) of the filter set to be created.
|
|
|
|
# For example:
|
2017-10-24 00:36:03 +00:00
|
|
|
# - For a bidder-level filter set for bidder 123: `bidders/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_end_date_day
|
|
|
|
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
|
|
# if specifying a year/month where the day is not significant.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_end_date_month
|
|
|
|
# Month of year. Must be from 1 to 12.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_end_date_year
|
|
|
|
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
|
|
# a year.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_start_date_day
|
|
|
|
# Day of month. Must be from 1 to 31 and valid for the year and month, or 0
|
|
|
|
# if specifying a year/month where the day is not significant.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_start_date_month
|
|
|
|
# Month of year. Must be from 1 to 12.
|
|
|
|
# @param [Fixnum] filter_set_absolute_date_range_start_date_year
|
|
|
|
# Year of date. Must be from 1 to 9999, or 0 if specifying a date without
|
|
|
|
# a year.
|
|
|
|
# @param [String] filter_set_creative_id
|
2017-10-25 00:36:02 +00:00
|
|
|
# The ID of the creative on which to filter; optional. This field may be set
|
|
|
|
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
|
|
|
|
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] filter_set_deal_id
|
2017-10-25 00:36:02 +00:00
|
|
|
# The ID of the deal on which to filter; optional. This field may be set
|
|
|
|
# only for a filter set that accesses buyer-level troubleshooting data, i.e.
|
|
|
|
# one whose name matches the `bidders/*/accounts/*/filterSets/*` pattern.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [String] filter_set_environment
|
|
|
|
# The environment on which to filter; optional.
|
|
|
|
# @param [Fixnum] filter_set_filter_set_id
|
|
|
|
# The ID of the filter set; unique within the account of the filter set
|
|
|
|
# owner.
|
|
|
|
# The value of this field is ignored in create operations.
|
|
|
|
# @param [String] filter_set_format
|
|
|
|
# The format on which to filter; optional.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# A user-defined name of the filter set. Filter set names must be unique
|
|
|
|
# globally and match one of the patterns:
|
|
|
|
# - `bidders/*/filterSets/*` (for accessing bidder-level troubleshooting
|
|
|
|
# data)
|
|
|
|
# - `bidders/*/accounts/*/filterSets/*` (for accessing buyer-level
|
|
|
|
# troubleshooting data)
|
2017-10-24 00:36:03 +00:00
|
|
|
# This field is required in create operations.
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Array<String>, String] filter_set_platforms
|
|
|
|
# The list of platforms on which to filter; may be empty. The filters
|
|
|
|
# represented by multiple platforms are ORed together (i.e. if non-empty,
|
|
|
|
# results must match any one of the platforms).
|
|
|
|
# @param [String] filter_set_realtime_time_range_start_timestamp
|
|
|
|
# The start timestamp of the real-time RTB metrics aggregation.
|
|
|
|
# @param [Fixnum] filter_set_relative_date_range_duration_days
|
|
|
|
# The number of days in the requested date range. E.g. for a range spanning
|
|
|
|
# today, 1. For a range spanning the last 7 days, 7.
|
|
|
|
# @param [Fixnum] filter_set_relative_date_range_offset_days
|
|
|
|
# The end date of the filter set, specified as the number of days before
|
|
|
|
# today. E.g. for a range where the last date is today, 0.
|
|
|
|
# @param [Array<Fixnum>, Fixnum] filter_set_seller_network_ids
|
|
|
|
# The list of IDs of the seller (publisher) networks on which to filter;
|
|
|
|
# may be empty. The filters represented by multiple seller network IDs are
|
|
|
|
# ORed together (i.e. if non-empty, results must match any one of the
|
|
|
|
# publisher networks).
|
|
|
|
# See [seller-network-ids](https://developers.google.com/ad-exchange/rtb/
|
|
|
|
# downloads/seller-network-ids)
|
|
|
|
# file for the set of existing seller network IDs.
|
|
|
|
# @param [String] filter_set_time_series_granularity
|
|
|
|
# The granularity of time intervals if a time series breakdown is desired;
|
|
|
|
# optional.
|
|
|
|
# @param [Boolean] is_transient
|
|
|
|
# Whether the filter set is transient, or should be persisted indefinitely.
|
|
|
|
# By default, filter sets are not transient.
|
|
|
|
# If transient, it will be available for at least 1 hour after creation.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2017-10-28 00:35:05 +00:00
|
|
|
def create_bidder_filter_set(owner_name, account_id: nil, filter_set_absolute_date_range_end_date_day: nil, filter_set_absolute_date_range_end_date_month: nil, filter_set_absolute_date_range_end_date_year: nil, filter_set_absolute_date_range_start_date_day: nil, filter_set_absolute_date_range_start_date_month: nil, filter_set_absolute_date_range_start_date_year: nil, filter_set_creative_id: nil, filter_set_deal_id: nil, filter_set_environment: nil, filter_set_filter_set_id: nil, filter_set_format: nil, filter_set_name: nil, filter_set_platforms: nil, filter_set_realtime_time_range_start_timestamp: nil, filter_set_relative_date_range_duration_days: nil, filter_set_relative_date_range_offset_days: nil, filter_set_seller_network_ids: nil, filter_set_time_series_granularity: nil, is_transient: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2017-10-18 00:35:03 +00:00
|
|
|
command = make_simple_command(:post, 'v2beta1/{+ownerName}/filterSets', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
|
|
|
|
command.params['ownerName'] = owner_name unless owner_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.endDate.day'] = filter_set_absolute_date_range_end_date_day unless filter_set_absolute_date_range_end_date_day.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.endDate.month'] = filter_set_absolute_date_range_end_date_month unless filter_set_absolute_date_range_end_date_month.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.endDate.year'] = filter_set_absolute_date_range_end_date_year unless filter_set_absolute_date_range_end_date_year.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.startDate.day'] = filter_set_absolute_date_range_start_date_day unless filter_set_absolute_date_range_start_date_day.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.startDate.month'] = filter_set_absolute_date_range_start_date_month unless filter_set_absolute_date_range_start_date_month.nil?
|
|
|
|
command.query['filterSet.absoluteDateRange.startDate.year'] = filter_set_absolute_date_range_start_date_year unless filter_set_absolute_date_range_start_date_year.nil?
|
|
|
|
command.query['filterSet.creativeId'] = filter_set_creative_id unless filter_set_creative_id.nil?
|
|
|
|
command.query['filterSet.dealId'] = filter_set_deal_id unless filter_set_deal_id.nil?
|
|
|
|
command.query['filterSet.environment'] = filter_set_environment unless filter_set_environment.nil?
|
|
|
|
command.query['filterSet.filterSetId'] = filter_set_filter_set_id unless filter_set_filter_set_id.nil?
|
|
|
|
command.query['filterSet.format'] = filter_set_format unless filter_set_format.nil?
|
|
|
|
command.query['filterSet.name'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['filterSet.platforms'] = filter_set_platforms unless filter_set_platforms.nil?
|
|
|
|
command.query['filterSet.realtimeTimeRange.startTimestamp'] = filter_set_realtime_time_range_start_timestamp unless filter_set_realtime_time_range_start_timestamp.nil?
|
|
|
|
command.query['filterSet.relativeDateRange.durationDays'] = filter_set_relative_date_range_duration_days unless filter_set_relative_date_range_duration_days.nil?
|
|
|
|
command.query['filterSet.relativeDateRange.offsetDays'] = filter_set_relative_date_range_offset_days unless filter_set_relative_date_range_offset_days.nil?
|
|
|
|
command.query['filterSet.sellerNetworkIds'] = filter_set_seller_network_ids unless filter_set_seller_network_ids.nil?
|
|
|
|
command.query['filterSet.timeSeriesGranularity'] = filter_set_time_series_granularity unless filter_set_time_series_granularity.nil?
|
|
|
|
command.query['isTransient'] = is_transient unless is_transient.nil?
|
|
|
|
command.query['fields'] = fields unless fields.nil?
|
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Deletes the requested filter set from the account with the given account
|
|
|
|
# ID.
|
|
|
|
# @param [String] name
|
|
|
|
# Full name of the resource to delete.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to delete.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::Empty] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::Empty]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def delete_bidder_filter_set(name, account_id: nil, filter_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::Empty::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::Empty
|
|
|
|
command.params['name'] = name unless name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# Retrieves the requested filter set for the account with the given account
|
|
|
|
# ID.
|
|
|
|
# @param [String] name
|
|
|
|
# Full name of the resource being requested.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to get.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::FilterSet] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::FilterSet]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def get_bidder_filter_set(name, account_id: nil, filter_set_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::FilterSet::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::FilterSet
|
|
|
|
command.params['name'] = name unless name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# Lists all filter sets for the account with the given account ID.
|
|
|
|
# @param [String] owner_name
|
|
|
|
# Name of the owner (bidder or account) of the filter sets to be listed.
|
|
|
|
# For example:
|
2017-10-24 00:36:03 +00:00
|
|
|
# - For a bidder-level filter set for bidder 123: `bidders/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListFilterSetsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the
|
|
|
|
# accounts.filterSets.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_sets(owner_name, account_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+ownerName}/filterSets', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilterSetsResponse
|
|
|
|
command.params['ownerName'] = owner_name unless owner_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_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
|
|
|
|
|
|
|
|
# Lists all metrics that are measured in terms of number of bids.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListBidMetricsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the bidMetrics.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_bid_metrics(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidMetrics', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidMetricsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all errors that occurred in bid responses, with the number of bid
|
|
|
|
# responses affected for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListBidResponseErrorsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the bidResponseErrors.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_bid_response_errors(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidResponseErrors', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponseErrorsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all reasons for which bid responses were considered to have no
|
|
|
|
# applicable bids, with the number of bid responses affected for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListBidResponsesWithoutBidsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the bidResponsesWithoutBids.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_bid_responses_without_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/bidResponsesWithoutBids', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListBidResponsesWithoutBidsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all reasons that caused a bid request not to be sent for an
|
|
|
|
# impression, with the number of bid requests not sent for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListFilteredBidRequestsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the filteredBidRequests.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_filtered_bid_requests(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBidRequests', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidRequestsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all reasons for which bids were filtered, with the number of bids
|
|
|
|
# filtered for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListFilteredBidsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the filteredBids.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_filtered_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListFilteredBidsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all creatives associated with a specific reason for which bids were
|
|
|
|
# filtered, with the number of bids filtered for each creative.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] creative_status_id
|
|
|
|
# The ID of the creative status for which to retrieve a breakdown by
|
|
|
|
# creative.
|
|
|
|
# See
|
|
|
|
# [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
|
|
|
|
# downloads/creative-status-codes).
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListCreativeStatusBreakdownByCreativeResponse.nextPageToken
|
|
|
|
# returned from the previous call to the filteredBids.creatives.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_filtered_bid_creatives(filter_set_name, creative_status_id, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByCreativeResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all details associated with a specific reason for which bids were
|
|
|
|
# filtered, with the number of bids filtered for each detail.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] creative_status_id
|
|
|
|
# The ID of the creative status for which to retrieve a breakdown by detail.
|
|
|
|
# See
|
|
|
|
# [creative-status-codes](https://developers.google.com/ad-exchange/rtb/
|
|
|
|
# downloads/creative-status-codes).
|
|
|
|
# Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
|
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListCreativeStatusBreakdownByDetailResponse.nextPageToken
|
|
|
|
# returned from the previous call to the filteredBids.details.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_filtered_bid_details(filter_set_name, creative_status_id, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListCreativeStatusBreakdownByDetailResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.params['creativeStatusId'] = creative_status_id unless creative_status_id.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# Lists all metrics that are measured in terms of number of impressions.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListImpressionMetricsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the impressionMetrics.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_impression_metrics(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/impressionMetrics', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListImpressionMetricsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all reasons for which bids lost in the auction, with the number of
|
|
|
|
# bids that lost for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListLosingBidsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the losingBids.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_losing_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/losingBids', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListLosingBidsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_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
|
|
|
|
|
|
|
|
# List all reasons for which winning bids were not billable, with the number
|
|
|
|
# of bids not billed for each reason.
|
|
|
|
# @param [String] filter_set_name
|
|
|
|
# Name of the filter set that should be applied to the requested metrics.
|
|
|
|
# For example:
|
|
|
|
# - For a bidder-level filter set for bidder 123:
|
2017-10-24 00:36:03 +00:00
|
|
|
# `bidders/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the buyer account representing bidder
|
2017-10-24 00:36:03 +00:00
|
|
|
# 123: `bidders/123/accounts/123/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# - For an account-level filter set for the child seat buyer account 456
|
2017-10-24 00:36:03 +00:00
|
|
|
# whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
|
2017-10-18 00:35:03 +00:00
|
|
|
# @param [Fixnum] account_id
|
|
|
|
# Account ID of the buyer.
|
|
|
|
# @param [Fixnum] filter_set_id
|
|
|
|
# The ID of the filter set to apply.
|
|
|
|
# @param [Fixnum] page_size
|
|
|
|
# Requested page size. The server may return fewer results than requested.
|
|
|
|
# If unspecified, the server will pick an appropriate default.
|
|
|
|
# @param [String] page_token
|
|
|
|
# A token identifying a page of results the server should return.
|
|
|
|
# Typically, this is the value of
|
|
|
|
# ListNonBillableWinningBidsResponse.nextPageToken
|
|
|
|
# returned from the previous call to the nonBillableWinningBids.list
|
|
|
|
# method.
|
|
|
|
# @param [String] fields
|
|
|
|
# Selector specifying which fields to include in a partial response.
|
|
|
|
# @param [String] quota_user
|
|
|
|
# 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.
|
|
|
|
# @param [Google::Apis::RequestOptions] options
|
|
|
|
# Request-specific options
|
|
|
|
#
|
|
|
|
# @yield [result, err] Result & error if block supplied
|
|
|
|
# @yieldparam result [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse] parsed result object
|
|
|
|
# @yieldparam err [StandardError] error object if request failed
|
|
|
|
#
|
|
|
|
# @return [Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse]
|
|
|
|
#
|
|
|
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
|
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
|
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
|
|
def list_bidder_filter_set_non_billable_winning_bids(filter_set_name, account_id: nil, filter_set_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
|
|
command = make_simple_command(:get, 'v2beta1/{+filterSetName}/nonBillableWinningBids', options)
|
|
|
|
command.response_representation = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse::Representation
|
|
|
|
command.response_class = Google::Apis::Adexchangebuyer2V2beta1::ListNonBillableWinningBidsResponse
|
|
|
|
command.params['filterSetName'] = filter_set_name unless filter_set_name.nil?
|
|
|
|
command.query['accountId'] = account_id unless account_id.nil?
|
|
|
|
command.query['filterSetId'] = filter_set_id unless filter_set_id.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
|
|
command.query['pageToken'] = page_token unless page_token.nil?
|
2017-06-14 17:02:03 +00:00
|
|
|
command.query['fields'] = fields unless fields.nil?
|
2017-08-25 19:54:22 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
execute_or_queue_command(command, &block)
|
|
|
|
end
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def apply_command_defaults(command)
|
2017-03-31 19:53:27 +00:00
|
|
|
command.query['key'] = key unless key.nil?
|
2017-04-03 20:18:48 +00:00
|
|
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2016-10-14 22:48:26 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|