google-api-client 0.49.0 → 0.50.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 +81 -0
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1/service.rb +12 -9
- data/generated/google/apis/admob_v1.rb +4 -1
- data/generated/google/apis/admob_v1/service.rb +4 -0
- data/generated/google/apis/admob_v1beta.rb +38 -0
- data/generated/google/apis/admob_v1beta/classes.rb +1035 -0
- data/generated/google/apis/admob_v1beta/representations.rb +472 -0
- data/generated/google/apis/admob_v1beta/service.rb +279 -0
- data/generated/google/apis/analyticsdata_v1alpha.rb +1 -1
- data/generated/google/apis/analyticsdata_v1alpha/classes.rb +8 -32
- data/generated/google/apis/analyticsdata_v1alpha/representations.rb +0 -16
- data/generated/google/apis/analyticsdata_v1alpha/service.rb +3 -32
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +6 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +114 -11
- data/generated/google/apis/apigee_v1/representations.rb +39 -1
- data/generated/google/apis/apigee_v1/service.rb +370 -2
- data/generated/google/apis/area120tables_v1alpha1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
- data/generated/google/apis/artifactregistry_v1beta1/classes.rb +0 -6
- data/generated/google/apis/artifactregistry_v1beta1/representations.rb +0 -1
- data/generated/google/apis/assuredworkloads_v1beta1.rb +1 -1
- data/generated/google/apis/assuredworkloads_v1beta1/classes.rb +22 -10
- data/generated/google/apis/assuredworkloads_v1beta1/representations.rb +2 -0
- data/generated/google/apis/assuredworkloads_v1beta1/service.rb +1 -5
- data/generated/google/apis/billingbudgets_v1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1/classes.rb +6 -6
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +6 -6
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +425 -6
- data/generated/google/apis/cloudasset_v1/representations.rb +170 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -6
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1p1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +0 -6
- data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +0 -6
- data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +0 -6
- data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +0 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +0 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -1
- data/generated/google/apis/cloudidentity_v1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1/service.rb +7 -3
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/service.rb +7 -3
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +323 -6
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +248 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +323 -6
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +248 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +323 -6
- data/generated/google/apis/cloudresourcemanager_v2/representations.rb +248 -1
- data/generated/google/apis/cloudresourcemanager_v2/service.rb +5 -5
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +323 -6
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +248 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +5 -5
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +35 -13
- data/generated/google/apis/compute_v1/representations.rb +2 -0
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +446 -4
- data/generated/google/apis/content_v2_1/representations.rb +136 -0
- data/generated/google/apis/content_v2_1/service.rb +36 -1
- data/generated/google/apis/deploymentmanager_v2.rb +2 -2
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta.rb +2 -2
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +0 -31
- data/generated/google/apis/dialogflow_v2/representations.rb +0 -15
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -31
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -15
- data/generated/google/apis/dialogflow_v2beta1/service.rb +12 -6
- data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v3beta1/classes.rb +0 -31
- data/generated/google/apis/dialogflow_v3beta1/representations.rb +0 -15
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +5 -5
- data/generated/google/apis/displayvideo_v1/service.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +6 -0
- data/generated/google/apis/dlp_v2/representations.rb +1 -0
- data/generated/google/apis/domains_v1alpha2.rb +1 -1
- data/generated/google/apis/domains_v1alpha2/classes.rb +0 -6
- data/generated/google/apis/domains_v1alpha2/representations.rb +0 -1
- data/generated/google/apis/domains_v1beta1.rb +1 -1
- data/generated/google/apis/domains_v1beta1/classes.rb +0 -6
- data/generated/google/apis/domains_v1beta1/representations.rb +0 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +2 -2
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +6 -0
- data/generated/google/apis/healthcare_v1/representations.rb +1 -0
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +12 -54
- data/generated/google/apis/healthcare_v1beta1/representations.rb +3 -29
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +4 -2
- data/generated/google/apis/logging_v2/service.rb +20 -20
- data/generated/google/apis/managedidentities_v1.rb +1 -1
- data/generated/google/apis/managedidentities_v1/classes.rb +345 -4
- data/generated/google/apis/managedidentities_v1/representations.rb +149 -0
- data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +345 -4
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +149 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +345 -4
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +149 -0
- data/generated/google/apis/memcache_v1beta2.rb +1 -1
- data/generated/google/apis/memcache_v1beta2/classes.rb +345 -4
- data/generated/google/apis/memcache_v1beta2/representations.rb +149 -0
- data/generated/google/apis/notebooks_v1.rb +34 -0
- data/generated/google/apis/notebooks_v1/classes.rb +1461 -0
- data/generated/google/apis/notebooks_v1/representations.rb +581 -0
- data/generated/google/apis/notebooks_v1/service.rb +1042 -0
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +9 -6
- data/generated/google/apis/policytroubleshooter_v1.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1/classes.rb +0 -6
- data/generated/google/apis/policytroubleshooter_v1/representations.rb +0 -1
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +0 -6
- data/generated/google/apis/policytroubleshooter_v1beta/representations.rb +0 -1
- data/generated/google/apis/privateca_v1beta1.rb +1 -1
- data/generated/google/apis/privateca_v1beta1/classes.rb +0 -6
- data/generated/google/apis/privateca_v1beta1/representations.rb +0 -1
- data/generated/google/apis/privateca_v1beta1/service.rb +0 -52
- data/generated/google/apis/realtimebidding_v1.rb +1 -1
- data/generated/google/apis/realtimebidding_v1/classes.rb +545 -0
- data/generated/google/apis/realtimebidding_v1/representations.rb +232 -0
- data/generated/google/apis/realtimebidding_v1/service.rb +450 -0
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +58 -0
- data/generated/google/apis/redis_v1/representations.rb +20 -0
- data/generated/google/apis/redis_v1beta1.rb +1 -1
- data/generated/google/apis/redis_v1beta1/classes.rb +58 -0
- data/generated/google/apis/redis_v1beta1/representations.rb +20 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +0 -6
- data/generated/google/apis/run_v1/representations.rb +0 -1
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +0 -6
- data/generated/google/apis/run_v1alpha1/representations.rb +0 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +0 -6
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +0 -1
- data/generated/google/apis/secretmanager_v1.rb +1 -1
- data/generated/google/apis/secretmanager_v1/classes.rb +0 -6
- data/generated/google/apis/secretmanager_v1/representations.rb +0 -1
- data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1beta1/classes.rb +0 -6
- data/generated/google/apis/secretmanager_v1beta1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +0 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +0 -6
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
- data/generated/google/apis/servicedirectory_v1beta1/classes.rb +26 -6
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +1 -7
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/service.rb +38 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +31 -16
- data/generated/google/apis/storagetransfer_v1/representations.rb +3 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +3 -3
- data/generated/google/apis/transcoder_v1beta1.rb +34 -0
- data/generated/google/apis/transcoder_v1beta1/classes.rb +1684 -0
- data/generated/google/apis/transcoder_v1beta1/representations.rb +756 -0
- data/generated/google/apis/transcoder_v1beta1/service.rb +329 -0
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/service.rb +6 -6
- data/lib/google/apis/version.rb +1 -1
- metadata +15 -3
@@ -0,0 +1,279 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module AdmobV1beta
|
23
|
+
# AdMob API
|
24
|
+
#
|
25
|
+
# The AdMob API allows publishers to programmatically get information about
|
26
|
+
# their AdMob account.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/admob_v1beta'
|
30
|
+
#
|
31
|
+
# Admob = Google::Apis::AdmobV1beta # Alias the module
|
32
|
+
# service = Admob::AdMobService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/admob/api/
|
35
|
+
class AdMobService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://admob.googleapis.com/', '')
|
48
|
+
@batch_path = 'batch'
|
49
|
+
end
|
50
|
+
|
51
|
+
# Gets information about the specified AdMob publisher account.
|
52
|
+
# @param [String] name
|
53
|
+
# Resource name of the publisher account to retrieve. Example: accounts/pub-
|
54
|
+
# 9876543210987654
|
55
|
+
# @param [String] fields
|
56
|
+
# Selector specifying which fields to include in a partial response.
|
57
|
+
# @param [String] quota_user
|
58
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
59
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60
|
+
# @param [Google::Apis::RequestOptions] options
|
61
|
+
# Request-specific options
|
62
|
+
#
|
63
|
+
# @yield [result, err] Result & error if block supplied
|
64
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::PublisherAccount] parsed result object
|
65
|
+
# @yieldparam err [StandardError] error object if request failed
|
66
|
+
#
|
67
|
+
# @return [Google::Apis::AdmobV1beta::PublisherAccount]
|
68
|
+
#
|
69
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
70
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
71
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
72
|
+
def get_account(name, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:get, 'v1beta/{+name}', options)
|
74
|
+
command.response_representation = Google::Apis::AdmobV1beta::PublisherAccount::Representation
|
75
|
+
command.response_class = Google::Apis::AdmobV1beta::PublisherAccount
|
76
|
+
command.params['name'] = name unless name.nil?
|
77
|
+
command.query['fields'] = fields unless fields.nil?
|
78
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
79
|
+
execute_or_queue_command(command, &block)
|
80
|
+
end
|
81
|
+
|
82
|
+
# Lists the AdMob publisher account accessible with the client credential.
|
83
|
+
# Currently, all credentials have access to at most one AdMob account.
|
84
|
+
# @param [Fixnum] page_size
|
85
|
+
# Maximum number of accounts to return.
|
86
|
+
# @param [String] page_token
|
87
|
+
# The value returned by the last `ListPublisherAccountsResponse`; indicates that
|
88
|
+
# this is a continuation of a prior `ListPublisherAccounts` call, and that the
|
89
|
+
# system should return the next page of data.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
92
|
+
# @param [String] quota_user
|
93
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
94
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
95
|
+
# @param [Google::Apis::RequestOptions] options
|
96
|
+
# Request-specific options
|
97
|
+
#
|
98
|
+
# @yield [result, err] Result & error if block supplied
|
99
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::ListPublisherAccountsResponse] parsed result object
|
100
|
+
# @yieldparam err [StandardError] error object if request failed
|
101
|
+
#
|
102
|
+
# @return [Google::Apis::AdmobV1beta::ListPublisherAccountsResponse]
|
103
|
+
#
|
104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
107
|
+
def list_accounts(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:get, 'v1beta/accounts', options)
|
109
|
+
command.response_representation = Google::Apis::AdmobV1beta::ListPublisherAccountsResponse::Representation
|
110
|
+
command.response_class = Google::Apis::AdmobV1beta::ListPublisherAccountsResponse
|
111
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
112
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
113
|
+
command.query['fields'] = fields unless fields.nil?
|
114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
115
|
+
execute_or_queue_command(command, &block)
|
116
|
+
end
|
117
|
+
|
118
|
+
# List the ad units under the specified AdMob account.
|
119
|
+
# @param [String] parent
|
120
|
+
# Required. Resource name of the account to list ad units for. Example: accounts/
|
121
|
+
# pub-9876543210987654
|
122
|
+
# @param [Fixnum] page_size
|
123
|
+
# The maximum number of ad units to return.
|
124
|
+
# @param [String] page_token
|
125
|
+
# The value returned by the last `ListAdUnitsResponse`; indicates that this is a
|
126
|
+
# continuation of a prior `ListAdUnits` call, and that the system should return
|
127
|
+
# the next page of data.
|
128
|
+
# @param [String] fields
|
129
|
+
# Selector specifying which fields to include in a partial response.
|
130
|
+
# @param [String] quota_user
|
131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
133
|
+
# @param [Google::Apis::RequestOptions] options
|
134
|
+
# Request-specific options
|
135
|
+
#
|
136
|
+
# @yield [result, err] Result & error if block supplied
|
137
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::ListAdUnitsResponse] parsed result object
|
138
|
+
# @yieldparam err [StandardError] error object if request failed
|
139
|
+
#
|
140
|
+
# @return [Google::Apis::AdmobV1beta::ListAdUnitsResponse]
|
141
|
+
#
|
142
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
143
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
144
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
145
|
+
def list_account_ad_units(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
146
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/adUnits', options)
|
147
|
+
command.response_representation = Google::Apis::AdmobV1beta::ListAdUnitsResponse::Representation
|
148
|
+
command.response_class = Google::Apis::AdmobV1beta::ListAdUnitsResponse
|
149
|
+
command.params['parent'] = parent unless parent.nil?
|
150
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
151
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
152
|
+
command.query['fields'] = fields unless fields.nil?
|
153
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
154
|
+
execute_or_queue_command(command, &block)
|
155
|
+
end
|
156
|
+
|
157
|
+
# List the apps under the specified AdMob account.
|
158
|
+
# @param [String] parent
|
159
|
+
# Required. Resource name of the account to list apps for. Example: accounts/pub-
|
160
|
+
# 9876543210987654
|
161
|
+
# @param [Fixnum] page_size
|
162
|
+
# The maximum number of apps to return. If unspecified or 0, at most 1000 apps
|
163
|
+
# will be returned. The maximum value is 10,000; values above 10,000 will be
|
164
|
+
# coerced to 10,000.
|
165
|
+
# @param [String] page_token
|
166
|
+
# The value returned by the last `ListAppsResponse`; indicates that this is a
|
167
|
+
# continuation of a prior `ListApps` call, and that the system should return the
|
168
|
+
# next page of data.
|
169
|
+
# @param [String] fields
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
171
|
+
# @param [String] quota_user
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
174
|
+
# @param [Google::Apis::RequestOptions] options
|
175
|
+
# Request-specific options
|
176
|
+
#
|
177
|
+
# @yield [result, err] Result & error if block supplied
|
178
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::ListAppsResponse] parsed result object
|
179
|
+
# @yieldparam err [StandardError] error object if request failed
|
180
|
+
#
|
181
|
+
# @return [Google::Apis::AdmobV1beta::ListAppsResponse]
|
182
|
+
#
|
183
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
184
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
185
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
186
|
+
def list_account_apps(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
187
|
+
command = make_simple_command(:get, 'v1beta/{+parent}/apps', options)
|
188
|
+
command.response_representation = Google::Apis::AdmobV1beta::ListAppsResponse::Representation
|
189
|
+
command.response_class = Google::Apis::AdmobV1beta::ListAppsResponse
|
190
|
+
command.params['parent'] = parent unless parent.nil?
|
191
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
192
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
193
|
+
command.query['fields'] = fields unless fields.nil?
|
194
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
195
|
+
execute_or_queue_command(command, &block)
|
196
|
+
end
|
197
|
+
|
198
|
+
# Generates an AdMob Mediation report based on the provided report specification.
|
199
|
+
# Returns result of a server-side streaming RPC. The result is returned in a
|
200
|
+
# sequence of responses.
|
201
|
+
# @param [String] parent
|
202
|
+
# Resource name of the account to generate the report for. Example: accounts/pub-
|
203
|
+
# 9876543210987654
|
204
|
+
# @param [Google::Apis::AdmobV1beta::GenerateMediationReportRequest] generate_mediation_report_request_object
|
205
|
+
# @param [String] fields
|
206
|
+
# Selector specifying which fields to include in a partial response.
|
207
|
+
# @param [String] quota_user
|
208
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
209
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
210
|
+
# @param [Google::Apis::RequestOptions] options
|
211
|
+
# Request-specific options
|
212
|
+
#
|
213
|
+
# @yield [result, err] Result & error if block supplied
|
214
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::GenerateMediationReportResponse] parsed result object
|
215
|
+
# @yieldparam err [StandardError] error object if request failed
|
216
|
+
#
|
217
|
+
# @return [Google::Apis::AdmobV1beta::GenerateMediationReportResponse]
|
218
|
+
#
|
219
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
+
def generate_mediation_report(parent, generate_mediation_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
223
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/mediationReport:generate', options)
|
224
|
+
command.request_representation = Google::Apis::AdmobV1beta::GenerateMediationReportRequest::Representation
|
225
|
+
command.request_object = generate_mediation_report_request_object
|
226
|
+
command.response_representation = Google::Apis::AdmobV1beta::GenerateMediationReportResponse::Representation
|
227
|
+
command.response_class = Google::Apis::AdmobV1beta::GenerateMediationReportResponse
|
228
|
+
command.params['parent'] = parent unless parent.nil?
|
229
|
+
command.query['fields'] = fields unless fields.nil?
|
230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
|
+
execute_or_queue_command(command, &block)
|
232
|
+
end
|
233
|
+
|
234
|
+
# Generates an AdMob Network report based on the provided report specification.
|
235
|
+
# Returns result of a server-side streaming RPC. The result is returned in a
|
236
|
+
# sequence of responses.
|
237
|
+
# @param [String] parent
|
238
|
+
# Resource name of the account to generate the report for. Example: accounts/pub-
|
239
|
+
# 9876543210987654
|
240
|
+
# @param [Google::Apis::AdmobV1beta::GenerateNetworkReportRequest] generate_network_report_request_object
|
241
|
+
# @param [String] fields
|
242
|
+
# Selector specifying which fields to include in a partial response.
|
243
|
+
# @param [String] quota_user
|
244
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
245
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
246
|
+
# @param [Google::Apis::RequestOptions] options
|
247
|
+
# Request-specific options
|
248
|
+
#
|
249
|
+
# @yield [result, err] Result & error if block supplied
|
250
|
+
# @yieldparam result [Google::Apis::AdmobV1beta::GenerateNetworkReportResponse] parsed result object
|
251
|
+
# @yieldparam err [StandardError] error object if request failed
|
252
|
+
#
|
253
|
+
# @return [Google::Apis::AdmobV1beta::GenerateNetworkReportResponse]
|
254
|
+
#
|
255
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
256
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
257
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
258
|
+
def generate_network_report(parent, generate_network_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
259
|
+
command = make_simple_command(:post, 'v1beta/{+parent}/networkReport:generate', options)
|
260
|
+
command.request_representation = Google::Apis::AdmobV1beta::GenerateNetworkReportRequest::Representation
|
261
|
+
command.request_object = generate_network_report_request_object
|
262
|
+
command.response_representation = Google::Apis::AdmobV1beta::GenerateNetworkReportResponse::Representation
|
263
|
+
command.response_class = Google::Apis::AdmobV1beta::GenerateNetworkReportResponse
|
264
|
+
command.params['parent'] = parent unless parent.nil?
|
265
|
+
command.query['fields'] = fields unless fields.nil?
|
266
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
267
|
+
execute_or_queue_command(command, &block)
|
268
|
+
end
|
269
|
+
|
270
|
+
protected
|
271
|
+
|
272
|
+
def apply_command_defaults(command)
|
273
|
+
command.query['key'] = key unless key.nil?
|
274
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
end
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/analytics/trusted-testing/analytics-data/
|
26
26
|
module AnalyticsdataV1alpha
|
27
27
|
VERSION = 'V1alpha'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201110'
|
29
29
|
|
30
30
|
# View and manage your Google Analytics data
|
31
31
|
AUTH_ANALYTICS = 'https://www.googleapis.com/auth/analytics'
|
@@ -164,8 +164,7 @@ module Google
|
|
164
164
|
include Google::Apis::Core::Hashable
|
165
165
|
|
166
166
|
# A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are
|
167
|
-
# allowed up to 4 date ranges
|
168
|
-
# year.
|
167
|
+
# allowed up to 4 date ranges.
|
169
168
|
# Corresponds to the JSON property `dateRange`
|
170
169
|
# @return [Google::Apis::AnalyticsdataV1alpha::DateRange]
|
171
170
|
attr_accessor :date_range
|
@@ -312,8 +311,7 @@ module Google
|
|
312
311
|
end
|
313
312
|
|
314
313
|
# A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests are
|
315
|
-
# allowed up to 4 date ranges
|
316
|
-
# year.
|
314
|
+
# allowed up to 4 date ranges.
|
317
315
|
class DateRange
|
318
316
|
include Google::Apis::Core::Hashable
|
319
317
|
|
@@ -1597,7 +1595,8 @@ module Google
|
|
1597
1595
|
alias_method :keep_empty_rows?, :keep_empty_rows
|
1598
1596
|
|
1599
1597
|
# The number of rows to return. If unspecified, 10 rows are returned. If -1, all
|
1600
|
-
# rows are returned.
|
1598
|
+
# rows are returned. To learn more about this pagination parameter, see [
|
1599
|
+
# Pagination](basics#pagination).
|
1601
1600
|
# Corresponds to the JSON property `limit`
|
1602
1601
|
# @return [Fixnum]
|
1603
1602
|
attr_accessor :limit
|
@@ -1619,7 +1618,8 @@ module Google
|
|
1619
1618
|
# @return [Array<Google::Apis::AnalyticsdataV1alpha::Metric>]
|
1620
1619
|
attr_accessor :metrics
|
1621
1620
|
|
1622
|
-
# The row count of the start row. The first row is counted as row 0.
|
1621
|
+
# The row count of the start row. The first row is counted as row 0. To learn
|
1622
|
+
# more about this pagination parameter, see [Pagination](basics#pagination).
|
1623
1623
|
# Corresponds to the JSON property `offset`
|
1624
1624
|
# @return [Fixnum]
|
1625
1625
|
attr_accessor :offset
|
@@ -1700,7 +1700,8 @@ module Google
|
|
1700
1700
|
# The total number of rows in the query result, regardless of the number of rows
|
1701
1701
|
# returned in the response. For example if a query returns 175 rows and includes
|
1702
1702
|
# limit = 50 in the API request, the response will contain row_count = 175 but
|
1703
|
-
# only 50 rows.
|
1703
|
+
# only 50 rows. To learn more about this pagination parameter, see [Pagination](
|
1704
|
+
# basics#pagination).
|
1704
1705
|
# Corresponds to the JSON property `rowCount`
|
1705
1706
|
# @return [Fixnum]
|
1706
1707
|
attr_accessor :row_count
|
@@ -1764,31 +1765,6 @@ module Google
|
|
1764
1765
|
@value = args[:value] if args.key?(:value)
|
1765
1766
|
end
|
1766
1767
|
end
|
1767
|
-
|
1768
|
-
# The dimensions and metrics currently accepted in reporting methods.
|
1769
|
-
class UniversalMetadata
|
1770
|
-
include Google::Apis::Core::Hashable
|
1771
|
-
|
1772
|
-
# The dimensions descriptions.
|
1773
|
-
# Corresponds to the JSON property `dimensions`
|
1774
|
-
# @return [Array<Google::Apis::AnalyticsdataV1alpha::DimensionMetadata>]
|
1775
|
-
attr_accessor :dimensions
|
1776
|
-
|
1777
|
-
# The metric descriptions.
|
1778
|
-
# Corresponds to the JSON property `metrics`
|
1779
|
-
# @return [Array<Google::Apis::AnalyticsdataV1alpha::MetricMetadata>]
|
1780
|
-
attr_accessor :metrics
|
1781
|
-
|
1782
|
-
def initialize(**args)
|
1783
|
-
update!(**args)
|
1784
|
-
end
|
1785
|
-
|
1786
|
-
# Update properties of this object
|
1787
|
-
def update!(**args)
|
1788
|
-
@dimensions = args[:dimensions] if args.key?(:dimensions)
|
1789
|
-
@metrics = args[:metrics] if args.key?(:metrics)
|
1790
|
-
end
|
1791
|
-
end
|
1792
1768
|
end
|
1793
1769
|
end
|
1794
1770
|
end
|
@@ -310,12 +310,6 @@ module Google
|
|
310
310
|
include Google::Apis::Core::JsonObjectSupport
|
311
311
|
end
|
312
312
|
|
313
|
-
class UniversalMetadata
|
314
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
-
|
316
|
-
include Google::Apis::Core::JsonObjectSupport
|
317
|
-
end
|
318
|
-
|
319
313
|
class BatchRunPivotReportsRequest
|
320
314
|
# @private
|
321
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -843,16 +837,6 @@ module Google
|
|
843
837
|
property :value, as: 'value'
|
844
838
|
end
|
845
839
|
end
|
846
|
-
|
847
|
-
class UniversalMetadata
|
848
|
-
# @private
|
849
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
850
|
-
collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsdataV1alpha::DimensionMetadata, decorator: Google::Apis::AnalyticsdataV1alpha::DimensionMetadata::Representation
|
851
|
-
|
852
|
-
collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsdataV1alpha::MetricMetadata, decorator: Google::Apis::AnalyticsdataV1alpha::MetricMetadata::Representation
|
853
|
-
|
854
|
-
end
|
855
|
-
end
|
856
840
|
end
|
857
841
|
end
|
858
842
|
end
|
@@ -60,7 +60,9 @@ module Google
|
|
60
60
|
# specified in the URL path and not URL parameters. Property is a numeric Google
|
61
61
|
# Analytics GA4 Property identifier. To learn more, see [where to find your
|
62
62
|
# Property ID](https://developers.google.com/analytics/trusted-testing/analytics-
|
63
|
-
# data/property-id). Example: properties/1234/metadata
|
63
|
+
# data/property-id). Example: properties/1234/metadata Set the Property ID to 0
|
64
|
+
# for dimensions and metrics common to all properties. In this special mode,
|
65
|
+
# this method will not return custom dimensions and metrics.
|
64
66
|
# @param [String] fields
|
65
67
|
# Selector specifying which fields to include in a partial response.
|
66
68
|
# @param [String] quota_user
|
@@ -187,37 +189,6 @@ module Google
|
|
187
189
|
execute_or_queue_command(command, &block)
|
188
190
|
end
|
189
191
|
|
190
|
-
# Returns metadata for dimensions and metrics available in reporting methods.
|
191
|
-
# Used to explore the dimensions and metrics. Dimensions and metrics will be
|
192
|
-
# mostly added over time, but renames and deletions may occur. This method
|
193
|
-
# returns Universal Metadata. Universal Metadata are dimensions and metrics
|
194
|
-
# applicable to any property such as `country` and `totalUsers`.
|
195
|
-
# @param [String] fields
|
196
|
-
# Selector specifying which fields to include in a partial response.
|
197
|
-
# @param [String] quota_user
|
198
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
199
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
200
|
-
# @param [Google::Apis::RequestOptions] options
|
201
|
-
# Request-specific options
|
202
|
-
#
|
203
|
-
# @yield [result, err] Result & error if block supplied
|
204
|
-
# @yieldparam result [Google::Apis::AnalyticsdataV1alpha::UniversalMetadata] parsed result object
|
205
|
-
# @yieldparam err [StandardError] error object if request failed
|
206
|
-
#
|
207
|
-
# @return [Google::Apis::AnalyticsdataV1alpha::UniversalMetadata]
|
208
|
-
#
|
209
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
210
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
211
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
212
|
-
def get_universal_metadata(fields: nil, quota_user: nil, options: nil, &block)
|
213
|
-
command = make_simple_command(:get, 'v1alpha/universalMetadata', options)
|
214
|
-
command.response_representation = Google::Apis::AnalyticsdataV1alpha::UniversalMetadata::Representation
|
215
|
-
command.response_class = Google::Apis::AnalyticsdataV1alpha::UniversalMetadata
|
216
|
-
command.query['fields'] = fields unless fields.nil?
|
217
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
218
|
-
execute_or_queue_command(command, &block)
|
219
|
-
end
|
220
|
-
|
221
192
|
# Returns a customized pivot report of your Google Analytics event data. Pivot
|
222
193
|
# reports are more advanced and expressive formats than regular reports. In a
|
223
194
|
# pivot report, dimensions are only visible if they are included in a pivot.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://developers.google.com/android/work/play/emm-api
|
26
26
|
module AndroidenterpriseV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20201104'
|
29
29
|
|
30
30
|
# Manage corporate Android devices
|
31
31
|
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
|