google-ads-marketing_platform-admin-v1alpha 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +154 -0
  6. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/client.rb +877 -0
  7. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/credentials.rb +50 -0
  8. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/paths.rb +94 -0
  9. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest/client.rb +816 -0
  10. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest/service_stub.rb +390 -0
  11. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service/rest.rb +54 -0
  12. data/lib/google/ads/marketing_platform/admin/v1alpha/marketingplatform_admin_service.rb +57 -0
  13. data/lib/google/ads/marketing_platform/admin/v1alpha/rest.rb +39 -0
  14. data/lib/google/ads/marketing_platform/admin/v1alpha/version.rb +30 -0
  15. data/lib/google/ads/marketing_platform/admin/v1alpha.rb +47 -0
  16. data/lib/google/marketingplatform/admin/v1alpha/marketingplatform_admin_pb.rb +59 -0
  17. data/lib/google/marketingplatform/admin/v1alpha/marketingplatform_admin_services_pb.rb +65 -0
  18. data/lib/google/marketingplatform/admin/v1alpha/resources_pb.rb +49 -0
  19. data/lib/google-ads-marketing_platform-admin-v1alpha.rb +21 -0
  20. data/proto_docs/README.md +4 -0
  21. data/proto_docs/google/api/client.rb +473 -0
  22. data/proto_docs/google/api/field_behavior.rb +85 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +227 -0
  25. data/proto_docs/google/marketingplatform/admin/v1alpha/marketingplatform_admin.rb +138 -0
  26. data/proto_docs/google/marketingplatform/admin/v1alpha/resources.rb +84 -0
  27. data/proto_docs/google/protobuf/duration.rb +98 -0
  28. data/proto_docs/google/protobuf/empty.rb +34 -0
  29. metadata +103 -0
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/marketingplatform/admin/v1alpha/resources_pb'
12
+ require 'google/protobuf/empty_pb'
13
+
14
+
15
+ descriptor_data = "\nDgoogle/marketingplatform/admin/v1alpha/marketingplatform_admin.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x36google/marketingplatform/admin/v1alpha/resources.proto\x1a\x1bgoogle/protobuf/empty.proto\"b\n\x16GetOrganizationRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2marketingplatformadmin.googleapis.com/Organization\"\xa7\x01\n ListAnalyticsAccountLinksRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x9b\x01\n!ListAnalyticsAccountLinksResponse\x12]\n\x17\x61nalytics_account_links\x18\x01 \x03(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLink\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xda\x01\n!CreateAnalyticsAccountLinkRequest\x12R\n\x06parent\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\x12:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12\x61\n\x16\x61nalytics_account_link\x18\x02 \x01(\x0b\x32<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLinkB\x03\xe0\x41\x02\"u\n!DeleteAnalyticsAccountLinkRequest\x12P\n\x04name\x18\x01 \x01(\tBB\xe0\x41\x02\xfa\x41<\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\"\xec\x01\n\x1eSetPropertyServiceLevelRequest\x12#\n\x16\x61nalytics_account_link\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12J\n\x12\x61nalytics_property\x18\x02 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&analyticsadmin.googleapis.com/Property\x12Y\n\rservice_level\x18\x03 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevelB\x03\xe0\x41\x02\"!\n\x1fSetPropertyServiceLevelResponse*\x87\x01\n\x15\x41nalyticsServiceLevel\x12\'\n#ANALYTICS_SERVICE_LEVEL_UNSPECIFIED\x10\x00\x12$\n ANALYTICS_SERVICE_LEVEL_STANDARD\x10\x01\x12\x1f\n\x1b\x41NALYTICS_SERVICE_LEVEL_360\x10\x02\x32\xb2\x0b\n\x1dMarketingplatformAdminService\x12\xb7\x01\n\x0fGetOrganization\x12>.google.marketingplatform.admin.v1alpha.GetOrganizationRequest\x1a\x34.google.marketingplatform.admin.v1alpha.Organization\".\xda\x41\x04name\x82\xd3\xe4\x93\x02!\x12\x1f/v1alpha/{name=organizations/*}\x12\xfa\x01\n\x19ListAnalyticsAccountLinks\x12H.google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest\x1aI.google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse\"H\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x39\x12\x37/v1alpha/{parent=organizations/*}/analyticsAccountLinks\x12\x9e\x02\n\x1a\x43reateAnalyticsAccountLink\x12I.google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest\x1a<.google.marketingplatform.admin.v1alpha.AnalyticsAccountLink\"w\xda\x41\x1dparent,analytics_account_link\x82\xd3\xe4\x93\x02Q\"7/v1alpha/{parent=organizations/*}/analyticsAccountLinks:\x16\x61nalytics_account_link\x12\xc7\x01\n\x1a\x44\x65leteAnalyticsAccountLink\x12I.google.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest\x1a\x16.google.protobuf.Empty\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39*7/v1alpha/{name=organizations/*/analyticsAccountLinks/*}\x12\xb2\x02\n\x17SetPropertyServiceLevel\x12\x46.google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest\x1aG.google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse\"\x85\x01\xda\x41\x16\x61nalytics_account_link\x82\xd3\xe4\x93\x02\x66\"a/v1alpha/{analytics_account_link=organizations/*/analyticsAccountLinks/*}:setPropertyServiceLevel:\x01*\x1a\xb9\x01\xca\x41%marketingplatformadmin.googleapis.com\xd2\x41\x8d\x01https://www.googleapis.com/auth/marketingplatformadmin.analytics.read,https://www.googleapis.com/auth/marketingplatformadmin.analytics.updateB\xe9\x02\n.com.google.ads.marketingplatform.admin.v1alphaB\x1bMarketingplatformAdminProtoP\x01ZKgoogle.golang.org/genproto/googleapis/marketingplatform/admin/v1alpha;admin\xaa\x02*Google.Ads.MarketingPlatform.Admin.V1Alpha\xca\x02*Google\\Ads\\MarketingPlatform\\Admin\\V1alpha\xea\x02.Google::Ads::MarketingPlatform::Admin::V1alpha\xea\x41?\n&analyticsadmin.googleapis.com/Property\x12\x15properties/{property}b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.marketingplatform.admin.v1alpha.AnalyticsAccountLink", "google/marketingplatform/admin/v1alpha/resources.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
36
+ end
37
+ end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
40
+ end
41
+
42
+ module Google
43
+ module Ads
44
+ module MarketingPlatform
45
+ module Admin
46
+ module V1alpha
47
+ GetOrganizationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.GetOrganizationRequest").msgclass
48
+ ListAnalyticsAccountLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest").msgclass
49
+ ListAnalyticsAccountLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse").msgclass
50
+ CreateAnalyticsAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest").msgclass
51
+ DeleteAnalyticsAccountLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest").msgclass
52
+ SetPropertyServiceLevelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest").msgclass
53
+ SetPropertyServiceLevelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse").msgclass
54
+ AnalyticsServiceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel").enummodule
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,65 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto for package 'Google.Ads.MarketingPlatform.Admin.V1alpha'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/marketingplatform/admin/v1alpha/marketingplatform_admin_pb'
21
+
22
+ module Google
23
+ module Ads
24
+ module MarketingPlatform
25
+ module Admin
26
+ module V1alpha
27
+ module MarketingplatformAdminService
28
+ # Service Interface for the Google Marketing Platform Admin API.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.marketingplatform.admin.v1alpha.MarketingplatformAdminService'
36
+
37
+ # Lookup for a single organization.
38
+ rpc :GetOrganization, ::Google::Ads::MarketingPlatform::Admin::V1alpha::GetOrganizationRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::Organization
39
+ # Lists the Google Analytics accounts link to the specified Google Marketing
40
+ # Platform organization.
41
+ rpc :ListAnalyticsAccountLinks, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::ListAnalyticsAccountLinksResponse
42
+ # Creates the link between the Analytics account and the Google Marketing
43
+ # Platform organization.
44
+ #
45
+ # User needs to be an org user, and admin on the Analytics account to create
46
+ # the link. If the account is already linked to an organization, user needs
47
+ # to unlink the account from the current organization, then try link again.
48
+ rpc :CreateAnalyticsAccountLink, ::Google::Ads::MarketingPlatform::Admin::V1alpha::CreateAnalyticsAccountLinkRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::AnalyticsAccountLink
49
+ # Deletes the AnalyticsAccountLink, which detaches the Analytics account from
50
+ # the Google Marketing Platform organization.
51
+ #
52
+ # User needs to be an org user, and admin on the Analytics account in order
53
+ # to delete the link.
54
+ rpc :DeleteAnalyticsAccountLink, ::Google::Ads::MarketingPlatform::Admin::V1alpha::DeleteAnalyticsAccountLinkRequest, ::Google::Protobuf::Empty
55
+ # Updates the service level for an Analytics property.
56
+ rpc :SetPropertyServiceLevel, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelRequest, ::Google::Ads::MarketingPlatform::Admin::V1alpha::SetPropertyServiceLevelResponse
57
+ end
58
+
59
+ Stub = Service.rpc_stub_class
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/marketingplatform/admin/v1alpha/resources.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/field_behavior_pb'
8
+ require 'google/api/resource_pb'
9
+
10
+
11
+ descriptor_data = "\n6google/marketingplatform/admin/v1alpha/resources.proto\x12&google.marketingplatform.admin.v1alpha\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xab\x01\n\x0cOrganization\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t:r\xea\x41o\n2marketingplatformadmin.googleapis.com/Organization\x12\x1corganizations/{organization}*\rorganizations2\x0corganization\"\xb3\x03\n\x14\x41nalyticsAccountLink\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12K\n\x11\x61nalytics_account\x18\x02 \x01(\tB0\xe0\x41\x02\xe0\x41\x05\xfa\x41\'\n%analyticsadmin.googleapis.com/Account\x12\x19\n\x0c\x64isplay_name\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x63\n\x17link_verification_state\x18\x04 \x01(\x0e\x32=.google.marketingplatform.admin.v1alpha.LinkVerificationStateB\x03\xe0\x41\x03:\xba\x01\xea\x41\xb6\x01\n:marketingplatformadmin.googleapis.com/AnalyticsAccountLink\x12Korganizations/{organization}/analyticsAccountLinks/{analytics_account_link}*\x15\x61nalyticsAccountLinks2\x14\x61nalyticsAccountLink*\x90\x01\n\x15LinkVerificationState\x12\'\n#LINK_VERIFICATION_STATE_UNSPECIFIED\x10\x00\x12$\n LINK_VERIFICATION_STATE_VERIFIED\x10\x01\x12(\n$LINK_VERIFICATION_STATE_NOT_VERIFIED\x10\x02\x42\xd8\x02\n.com.google.ads.marketingplatform.admin.v1alphaB\x0eResourcesProtoP\x01ZKgoogle.golang.org/genproto/googleapis/marketingplatform/admin/v1alpha;admin\xaa\x02*Google.Ads.MarketingPlatform.Admin.V1Alpha\xca\x02*Google\\Ads\\MarketingPlatform\\Admin\\V1alpha\xea\x02.Google::Ads::MarketingPlatform::Admin::V1alpha\xea\x41;\n%analyticsadmin.googleapis.com/Account\x12\x12\x61\x63\x63ounts/{account}b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
36
+
37
+ module Google
38
+ module Ads
39
+ module MarketingPlatform
40
+ module Admin
41
+ module V1alpha
42
+ Organization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.Organization").msgclass
43
+ AnalyticsAccountLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.AnalyticsAccountLink").msgclass
44
+ LinkVerificationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.marketingplatform.admin.v1alpha.LinkVerificationState").enummodule
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/ads/marketing_platform/admin/v1alpha"
@@ -0,0 +1,4 @@
1
+ # Google Marketing Platform Admin V1ALPHA Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.