google-apis-realtimebidding_v1alpha 0.1.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/realtimebidding_v1alpha/classes.rb +39 -11
- data/lib/google/apis/realtimebidding_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/realtimebidding_v1alpha/representations.rb +26 -0
- data/lib/google/apis/realtimebidding_v1alpha/service.rb +71 -0
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0536d250a2acfe9b4ad48ecf9f2ebbb9aedd300a6d55e8704cffeebd35ace690
|
4
|
+
data.tar.gz: 650936341127a0aeff799588fc07ad8772f8a936b9449abb367472d2230d23a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 484d0986b50417d41a566397e9020b862f6811442dc342211744ca962479a989113c61c8b2fb921628de4ef36bb3421379ba905724641f8e9b4e01940323e574
|
7
|
+
data.tar.gz: 6f7cd951edd075009d3c0851b6330c729cad0f7782e65cd02208309d05cb59ea899eb88a0dfee873084fff6cb4431f1724035bdcdc603021e0570a9110d337df
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release history for google-apis-realtimebidding_v1alpha
|
2
2
|
|
3
|
+
### v0.6.0 (2021-06-29)
|
4
|
+
|
5
|
+
* Regenerated using generator version 0.4.0
|
6
|
+
|
7
|
+
### v0.5.0 (2021-06-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210624
|
10
|
+
* Regenerated using generator version 0.3.0
|
11
|
+
|
12
|
+
### v0.4.0 (2021-05-19)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210518
|
15
|
+
|
16
|
+
### v0.3.0 (2021-04-27)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210424
|
19
|
+
* Regenerated using generator version 0.2.0
|
20
|
+
|
21
|
+
### v0.2.0 (2021-03-04)
|
22
|
+
|
23
|
+
* Unspecified changes
|
24
|
+
|
3
25
|
### v0.1.0 (2021-01-26)
|
4
26
|
|
5
27
|
* Regenerated from discovery document revision 20210124
|
@@ -22,22 +22,38 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RealtimebiddingV1alpha
|
24
24
|
|
25
|
+
# The request to activate a bidding function.
|
26
|
+
class ActivateBiddingFunctionRequest
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
def initialize(**args)
|
30
|
+
update!(**args)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Update properties of this object
|
34
|
+
def update!(**args)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
# A request to archive a bidding function.
|
39
|
+
class ArchiveBiddingFunctionRequest
|
40
|
+
include Google::Apis::Core::Hashable
|
41
|
+
|
42
|
+
def initialize(**args)
|
43
|
+
update!(**args)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Update properties of this object
|
47
|
+
def update!(**args)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
25
51
|
# The bidding function to be executed as part of the TURTLEDOVE simulation
|
26
52
|
# experiment bidding flow.
|
27
53
|
class BiddingFunction
|
28
54
|
include Google::Apis::Core::Hashable
|
29
55
|
|
30
|
-
# The raw Javascript source code of the bidding function.
|
31
|
-
# a Javascript object, `inputs`, that contains the following named fields: `
|
32
|
-
# openrtbContextualBidRequest` OR `googleContextualBidRequest`, `
|
33
|
-
# customContextualSignal`, `interestBasedBidData`, `interestGroupData`, `
|
34
|
-
# recentImpressionAges`, and returns the bid price CPM (double). Example: ``` /*
|
35
|
-
# Returns a bid price CPM (double). * * @param `Object` inputs an object with
|
36
|
-
# the * following named fields: * - openrtbContextualBidRequest * OR
|
37
|
-
# googleContextualBidRequest * - customContextualSignal * - interestBasedBidData
|
38
|
-
# * - interestGroupData * - recentImpressionAges */ function biddingFunction(
|
39
|
-
# inputs) ` ... return inputs.interestBasedBidData.cpm * inputs.
|
40
|
-
# customContextualSignals.placementMultiplier; ` ```
|
56
|
+
# The raw Javascript source code of the bidding function.
|
41
57
|
# Corresponds to the JSON property `biddingFunction`
|
42
58
|
# @return [String]
|
43
59
|
attr_accessor :bidding_function
|
@@ -48,6 +64,16 @@ module Google
|
|
48
64
|
# @return [String]
|
49
65
|
attr_accessor :name
|
50
66
|
|
67
|
+
# Output only. The state of the bidding function.
|
68
|
+
# Corresponds to the JSON property `state`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :state
|
71
|
+
|
72
|
+
# The type of the bidding function to be created.
|
73
|
+
# Corresponds to the JSON property `type`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :type
|
76
|
+
|
51
77
|
def initialize(**args)
|
52
78
|
update!(**args)
|
53
79
|
end
|
@@ -56,6 +82,8 @@ module Google
|
|
56
82
|
def update!(**args)
|
57
83
|
@bidding_function = args[:bidding_function] if args.key?(:bidding_function)
|
58
84
|
@name = args[:name] if args.key?(:name)
|
85
|
+
@state = args[:state] if args.key?(:state)
|
86
|
+
@type = args[:type] if args.key?(:type)
|
59
87
|
end
|
60
88
|
end
|
61
89
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RealtimebiddingV1alpha
|
18
18
|
# Version of the google-apis-realtimebidding_v1alpha gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.6.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210624"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -22,6 +22,18 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RealtimebiddingV1alpha
|
24
24
|
|
25
|
+
class ActivateBiddingFunctionRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class ArchiveBiddingFunctionRequest
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
25
37
|
class BiddingFunction
|
26
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
39
|
|
@@ -34,11 +46,25 @@ module Google
|
|
34
46
|
include Google::Apis::Core::JsonObjectSupport
|
35
47
|
end
|
36
48
|
|
49
|
+
class ActivateBiddingFunctionRequest
|
50
|
+
# @private
|
51
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class ArchiveBiddingFunctionRequest
|
56
|
+
# @private
|
57
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
37
61
|
class BiddingFunction
|
38
62
|
# @private
|
39
63
|
class Representation < Google::Apis::Core::JsonRepresentation
|
40
64
|
property :bidding_function, as: 'biddingFunction'
|
41
65
|
property :name, as: 'name'
|
66
|
+
property :state, as: 'state'
|
67
|
+
property :type, as: 'type'
|
42
68
|
end
|
43
69
|
end
|
44
70
|
|
@@ -52,6 +52,77 @@ module Google
|
|
52
52
|
@batch_path = 'batch'
|
53
53
|
end
|
54
54
|
|
55
|
+
# Activates an existing bidding function. An activated function is available for
|
56
|
+
# invocation for the server-side TURTLEDOVE simulations.
|
57
|
+
# @param [String] name
|
58
|
+
# Required. The name of the bidding function to activate. Format: `bidders/`
|
59
|
+
# bidder_account_id`/biddingFunction/`bidding_function_name``
|
60
|
+
# @param [Google::Apis::RealtimebiddingV1alpha::ActivateBiddingFunctionRequest] activate_bidding_function_request_object
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# @param [Google::Apis::RequestOptions] options
|
67
|
+
# Request-specific options
|
68
|
+
#
|
69
|
+
# @yield [result, err] Result & error if block supplied
|
70
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1alpha::BiddingFunction] parsed result object
|
71
|
+
# @yieldparam err [StandardError] error object if request failed
|
72
|
+
#
|
73
|
+
# @return [Google::Apis::RealtimebiddingV1alpha::BiddingFunction]
|
74
|
+
#
|
75
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
76
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
77
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
78
|
+
def activate_bidding_function(name, activate_bidding_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
79
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:activate', options)
|
80
|
+
command.request_representation = Google::Apis::RealtimebiddingV1alpha::ActivateBiddingFunctionRequest::Representation
|
81
|
+
command.request_object = activate_bidding_function_request_object
|
82
|
+
command.response_representation = Google::Apis::RealtimebiddingV1alpha::BiddingFunction::Representation
|
83
|
+
command.response_class = Google::Apis::RealtimebiddingV1alpha::BiddingFunction
|
84
|
+
command.params['name'] = name unless name.nil?
|
85
|
+
command.query['fields'] = fields unless fields.nil?
|
86
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
87
|
+
execute_or_queue_command(command, &block)
|
88
|
+
end
|
89
|
+
|
90
|
+
# Archives an existing bidding function. An archived function will not be
|
91
|
+
# available for function invocation for the server-side TURTLEDOVE simulations
|
92
|
+
# unless it is activated.
|
93
|
+
# @param [String] name
|
94
|
+
# Required. The name of the bidding function to archive. Format: `bidders/`
|
95
|
+
# bidder_account_id`/biddingFunction/`bidding_function_name``
|
96
|
+
# @param [Google::Apis::RealtimebiddingV1alpha::ArchiveBiddingFunctionRequest] archive_bidding_function_request_object
|
97
|
+
# @param [String] fields
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
99
|
+
# @param [String] quota_user
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
102
|
+
# @param [Google::Apis::RequestOptions] options
|
103
|
+
# Request-specific options
|
104
|
+
#
|
105
|
+
# @yield [result, err] Result & error if block supplied
|
106
|
+
# @yieldparam result [Google::Apis::RealtimebiddingV1alpha::BiddingFunction] parsed result object
|
107
|
+
# @yieldparam err [StandardError] error object if request failed
|
108
|
+
#
|
109
|
+
# @return [Google::Apis::RealtimebiddingV1alpha::BiddingFunction]
|
110
|
+
#
|
111
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
112
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
113
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
114
|
+
def archive_bidding_function(name, archive_bidding_function_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
115
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:archive', options)
|
116
|
+
command.request_representation = Google::Apis::RealtimebiddingV1alpha::ArchiveBiddingFunctionRequest::Representation
|
117
|
+
command.request_object = archive_bidding_function_request_object
|
118
|
+
command.response_representation = Google::Apis::RealtimebiddingV1alpha::BiddingFunction::Representation
|
119
|
+
command.response_class = Google::Apis::RealtimebiddingV1alpha::BiddingFunction
|
120
|
+
command.params['name'] = name unless name.nil?
|
121
|
+
command.query['fields'] = fields unless fields.nil?
|
122
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
123
|
+
execute_or_queue_command(command, &block)
|
124
|
+
end
|
125
|
+
|
55
126
|
# Creates a new bidding function.
|
56
127
|
# @param [String] parent
|
57
128
|
# Required. The name of the bidder for which to create the bidding function.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-realtimebidding_v1alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Real-time Bidding API V1alpha. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-realtimebidding_v1alpha/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-realtimebidding_v1alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-realtimebidding_v1alpha/v0.6.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-realtimebidding_v1alpha
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -62,14 +68,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
68
|
requirements:
|
63
69
|
- - ">="
|
64
70
|
- !ruby/object:Gem::Version
|
65
|
-
version: '2.
|
71
|
+
version: '2.5'
|
66
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
73
|
requirements:
|
68
74
|
- - ">="
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Real-time Bidding API V1alpha
|