google-apis-analyticsadmin_v1alpha 0.54.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83401bbb92fb685982f3dc532baa373c026227534d5f339284d691c8975c5543
4
- data.tar.gz: 3519f72453119cccd0e15b2dbef1be609e7fd1b7e3e2872a74630e444705c248
3
+ metadata.gz: 1c00fd121919e566a4c6cef717593ce7fdb46a5ec8268b9e644571b2c385ce4f
4
+ data.tar.gz: 101508f798e38c2aa5fccb5e0f336339b9eac217814d590966f7b897a59d313b
5
5
  SHA512:
6
- metadata.gz: '039d647998a486550a27796cdce50ce4b756e491f9bd89c76a2213b6739923bd03f800c6de98ea60fdc2c3a46a2f59e1a90ca3ca8a2ad88472fee17b5f10d57a'
7
- data.tar.gz: 5d6e350222c8e6ea95f6dfa125f28c9d9ff4b8bbead05d58cadb1a36d9a8f7a40253203e02988224f2b9c2f45f77e06f8f2158db43355174ef306a6c25f59b1b
6
+ metadata.gz: 35bad698ecb1f8533de12f542413359eab8b51112d2ec3415680c784c3fdfd94ec2b89d883f0222514ce06a7942c204993d93b6b309facf3681eaec841e98b6d
7
+ data.tar.gz: 1950ef122139db5e2b92634ce00d24fbd9c63c5b8a5b014f2ae682a40898e0cb9cf1e363c24f8a69c33e473be8489c9cdef9b5d4e26e47f3a53adbb50036f7b1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-analyticsadmin_v1alpha
2
2
 
3
+ ### v0.55.0 (2023-05-14)
4
+
5
+ * Regenerated from discovery document revision 20230511
6
+
3
7
  ### v0.54.0 (2023-05-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20230504
@@ -735,6 +735,34 @@ module Google
735
735
  end
736
736
  end
737
737
 
738
+ # A link between a GA4 Property and an AdSense for Content ad client.
739
+ class GoogleAnalyticsAdminV1alphaAdSenseLink
740
+ include Google::Apis::Core::Hashable
741
+
742
+ # Immutable. The AdSense ad client code that the GA4 property is linked to.
743
+ # Example format: "ca-pub-1234567890"
744
+ # Corresponds to the JSON property `adClientCode`
745
+ # @return [String]
746
+ attr_accessor :ad_client_code
747
+
748
+ # Output only. The resource name for this AdSense Link resource. Format:
749
+ # properties/`propertyId`/adSenseLinks/`linkId` Example: properties/1234/
750
+ # adSenseLinks/6789
751
+ # Corresponds to the JSON property `name`
752
+ # @return [String]
753
+ attr_accessor :name
754
+
755
+ def initialize(**args)
756
+ update!(**args)
757
+ end
758
+
759
+ # Update properties of this object
760
+ def update!(**args)
761
+ @ad_client_code = args[:ad_client_code] if args.key?(:ad_client_code)
762
+ @name = args[:name] if args.key?(:name)
763
+ end
764
+ end
765
+
738
766
  # Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
739
767
  class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest
740
768
  include Google::Apis::Core::Hashable
@@ -1866,6 +1894,11 @@ module Google
1866
1894
  # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
1867
1895
  attr_accessor :account
1868
1896
 
1897
+ # A link between a GA4 Property and an AdSense for Content ad client.
1898
+ # Corresponds to the JSON property `adsenseLink`
1899
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink]
1900
+ attr_accessor :adsense_link
1901
+
1869
1902
  # The attribution settings used for a given property. This is a singleton
1870
1903
  # resource.
1871
1904
  # Corresponds to the JSON property `attributionSettings`
@@ -1983,6 +2016,7 @@ module Google
1983
2016
  # Update properties of this object
1984
2017
  def update!(**args)
1985
2018
  @account = args[:account] if args.key?(:account)
2019
+ @adsense_link = args[:adsense_link] if args.key?(:adsense_link)
1986
2020
  @attribution_settings = args[:attribution_settings] if args.key?(:attribution_settings)
1987
2021
  @audience = args[:audience] if args.key?(:audience)
1988
2022
  @bigquery_link = args[:bigquery_link] if args.key?(:bigquery_link)
@@ -3129,7 +3163,8 @@ module Google
3129
3163
  attr_accessor :event_conditions
3130
3164
 
3131
3165
  # Output only. Resource name for this EventCreateRule resource. Format:
3132
- # properties/`property`/dataStreams/`data_stream`/eventCreateRules
3166
+ # properties/`property`/dataStreams/`data_stream`/eventCreateRules/`
3167
+ # event_create_rule`
3133
3168
  # Corresponds to the JSON property `name`
3134
3169
  # @return [String]
3135
3170
  attr_accessor :name
@@ -3721,6 +3756,32 @@ module Google
3721
3756
  end
3722
3757
  end
3723
3758
 
3759
+ # Response message for ListAdSenseLinks method.
3760
+ class GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse
3761
+ include Google::Apis::Core::Hashable
3762
+
3763
+ # List of AdSenseLinks.
3764
+ # Corresponds to the JSON property `adsenseLinks`
3765
+ # @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink>]
3766
+ attr_accessor :adsense_links
3767
+
3768
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
3769
+ # field is omitted, there are no subsequent pages.
3770
+ # Corresponds to the JSON property `nextPageToken`
3771
+ # @return [String]
3772
+ attr_accessor :next_page_token
3773
+
3774
+ def initialize(**args)
3775
+ update!(**args)
3776
+ end
3777
+
3778
+ # Update properties of this object
3779
+ def update!(**args)
3780
+ @adsense_links = args[:adsense_links] if args.key?(:adsense_links)
3781
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3782
+ end
3783
+ end
3784
+
3724
3785
  # Response message for ListAudiences RPC.
3725
3786
  class GoogleAnalyticsAdminV1alphaListAudiencesResponse
3726
3787
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AnalyticsadminV1alpha
18
18
  # Version of the google-apis-analyticsadmin_v1alpha gem
19
- GEM_VERSION = "0.54.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230504"
25
+ REVISION = "20230511"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,12 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class GoogleAnalyticsAdminV1alphaAdSenseLink
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
175
181
  class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest
176
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
183
 
@@ -688,6 +694,12 @@ module Google
688
694
  include Google::Apis::Core::JsonObjectSupport
689
695
  end
690
696
 
697
+ class GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
691
703
  class GoogleAnalyticsAdminV1alphaListAudiencesResponse
692
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
693
705
 
@@ -1144,6 +1156,14 @@ module Google
1144
1156
  end
1145
1157
  end
1146
1158
 
1159
+ class GoogleAnalyticsAdminV1alphaAdSenseLink
1160
+ # @private
1161
+ class Representation < Google::Apis::Core::JsonRepresentation
1162
+ property :ad_client_code, as: 'adClientCode'
1163
+ property :name, as: 'name'
1164
+ end
1165
+ end
1166
+
1147
1167
  class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest
1148
1168
  # @private
1149
1169
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1507,6 +1527,8 @@ module Google
1507
1527
  class Representation < Google::Apis::Core::JsonRepresentation
1508
1528
  property :account, as: 'account', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
1509
1529
 
1530
+ property :adsense_link, as: 'adsenseLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink::Representation
1531
+
1510
1532
  property :attribution_settings, as: 'attributionSettings', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAttributionSettings::Representation
1511
1533
 
1512
1534
  property :audience, as: 'audience', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAudience::Representation
@@ -2010,6 +2032,15 @@ module Google
2010
2032
  end
2011
2033
  end
2012
2034
 
2035
+ class GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse
2036
+ # @private
2037
+ class Representation < Google::Apis::Core::JsonRepresentation
2038
+ collection :adsense_links, as: 'adsenseLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink::Representation
2039
+
2040
+ property :next_page_token, as: 'nextPageToken'
2041
+ end
2042
+ end
2043
+
2013
2044
  class GoogleAnalyticsAdminV1alphaListAudiencesResponse
2014
2045
  # @private
2015
2046
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2053,6 +2053,144 @@ module Google
2053
2053
  execute_or_queue_command(command, &block)
2054
2054
  end
2055
2055
 
2056
+ # Creates an AdSenseLink.
2057
+ # @param [String] parent
2058
+ # Required. The property for which to create an AdSense Link. Format: properties/
2059
+ # `propertyId` Example: properties/1234
2060
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink] google_analytics_admin_v1alpha_ad_sense_link_object
2061
+ # @param [String] fields
2062
+ # Selector specifying which fields to include in a partial response.
2063
+ # @param [String] quota_user
2064
+ # Available to use for quota purposes for server-side applications. Can be any
2065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2066
+ # @param [Google::Apis::RequestOptions] options
2067
+ # Request-specific options
2068
+ #
2069
+ # @yield [result, err] Result & error if block supplied
2070
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink] parsed result object
2071
+ # @yieldparam err [StandardError] error object if request failed
2072
+ #
2073
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink]
2074
+ #
2075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2078
+ def create_property_ad_sense_link(parent, google_analytics_admin_v1alpha_ad_sense_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2079
+ command = make_simple_command(:post, 'v1alpha/{+parent}/adSenseLinks', options)
2080
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink::Representation
2081
+ command.request_object = google_analytics_admin_v1alpha_ad_sense_link_object
2082
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink::Representation
2083
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink
2084
+ command.params['parent'] = parent unless parent.nil?
2085
+ command.query['fields'] = fields unless fields.nil?
2086
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2087
+ execute_or_queue_command(command, &block)
2088
+ end
2089
+
2090
+ # Deletes an AdSenseLink.
2091
+ # @param [String] name
2092
+ # Required. Unique identifier for the AdSense Link to be deleted. Format:
2093
+ # properties/`propertyId`/adSenseLinks/`linkId` Example: properties/1234/
2094
+ # adSenseLinks/5678
2095
+ # @param [String] fields
2096
+ # Selector specifying which fields to include in a partial response.
2097
+ # @param [String] quota_user
2098
+ # Available to use for quota purposes for server-side applications. Can be any
2099
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2100
+ # @param [Google::Apis::RequestOptions] options
2101
+ # Request-specific options
2102
+ #
2103
+ # @yield [result, err] Result & error if block supplied
2104
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
2105
+ # @yieldparam err [StandardError] error object if request failed
2106
+ #
2107
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
2108
+ #
2109
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2110
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2111
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2112
+ def delete_property_ad_sense_link(name, fields: nil, quota_user: nil, options: nil, &block)
2113
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
2114
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
2115
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
2116
+ command.params['name'] = name unless name.nil?
2117
+ command.query['fields'] = fields unless fields.nil?
2118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2119
+ execute_or_queue_command(command, &block)
2120
+ end
2121
+
2122
+ # Looks up a single AdSenseLink.
2123
+ # @param [String] name
2124
+ # Required. Unique identifier for the AdSense Link requested. Format: properties/
2125
+ # `propertyId`/adSenseLinks/`linkId` Example: properties/1234/adSenseLinks/5678
2126
+ # @param [String] fields
2127
+ # Selector specifying which fields to include in a partial response.
2128
+ # @param [String] quota_user
2129
+ # Available to use for quota purposes for server-side applications. Can be any
2130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2131
+ # @param [Google::Apis::RequestOptions] options
2132
+ # Request-specific options
2133
+ #
2134
+ # @yield [result, err] Result & error if block supplied
2135
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink] parsed result object
2136
+ # @yieldparam err [StandardError] error object if request failed
2137
+ #
2138
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink]
2139
+ #
2140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2143
+ def get_property_ad_sense_link(name, fields: nil, quota_user: nil, options: nil, &block)
2144
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
2145
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink::Representation
2146
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAdSenseLink
2147
+ command.params['name'] = name unless name.nil?
2148
+ command.query['fields'] = fields unless fields.nil?
2149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2150
+ execute_or_queue_command(command, &block)
2151
+ end
2152
+
2153
+ # Lists AdSenseLinks on a property.
2154
+ # @param [String] parent
2155
+ # Required. Resource name of the parent property. Format: properties/`propertyId`
2156
+ # Example: properties/1234
2157
+ # @param [Fixnum] page_size
2158
+ # The maximum number of resources to return. If unspecified, at most 50
2159
+ # resources will be returned. The maximum value is 200 (higher values will be
2160
+ # coerced to the maximum).
2161
+ # @param [String] page_token
2162
+ # A page token received from a previous `ListAdSenseLinks` call. Provide this to
2163
+ # retrieve the subsequent page. When paginating, all other parameters provided
2164
+ # to `ListAdSenseLinks` must match the call that provided the page token.
2165
+ # @param [String] fields
2166
+ # Selector specifying which fields to include in a partial response.
2167
+ # @param [String] quota_user
2168
+ # Available to use for quota purposes for server-side applications. Can be any
2169
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2170
+ # @param [Google::Apis::RequestOptions] options
2171
+ # Request-specific options
2172
+ #
2173
+ # @yield [result, err] Result & error if block supplied
2174
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse] parsed result object
2175
+ # @yieldparam err [StandardError] error object if request failed
2176
+ #
2177
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse]
2178
+ #
2179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2182
+ def list_property_ad_sense_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2183
+ command = make_simple_command(:get, 'v1alpha/{+parent}/adSenseLinks', options)
2184
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse::Representation
2185
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse
2186
+ command.params['parent'] = parent unless parent.nil?
2187
+ command.query['pageSize'] = page_size unless page_size.nil?
2188
+ command.query['pageToken'] = page_token unless page_token.nil?
2189
+ command.query['fields'] = fields unless fields.nil?
2190
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2191
+ execute_or_queue_command(command, &block)
2192
+ end
2193
+
2056
2194
  # Archives an Audience on a property.
2057
2195
  # @param [String] name
2058
2196
  # Required. Example format: properties/1234/audiences/5678
@@ -3400,7 +3538,8 @@ module Google
3400
3538
  # Updates an EventCreateRule.
3401
3539
  # @param [String] name
3402
3540
  # Output only. Resource name for this EventCreateRule resource. Format:
3403
- # properties/`property`/dataStreams/`data_stream`/eventCreateRules
3541
+ # properties/`property`/dataStreams/`data_stream`/eventCreateRules/`
3542
+ # event_create_rule`
3404
3543
  # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEventCreateRule] google_analytics_admin_v1alpha_event_create_rule_object
3405
3544
  # @param [String] update_mask
3406
3545
  # Required. The list of fields to be updated. Field names must be in snake case (
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-analyticsadmin_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.54.0
4
+ version: 0.55.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: 2023-05-07 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.54.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v0.55.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-analyticsadmin_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []