account_link.proto 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. // Copyright 2021 Google LLC
  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. syntax = "proto3";
  15. package google.ads.googleads.v8.resources;
  16. import "google/ads/googleads/v8/enums/account_link_status.proto";
  17. import "google/ads/googleads/v8/enums/linked_account_type.proto";
  18. import "google/ads/googleads/v8/enums/mobile_app_vendor.proto";
  19. import "google/api/field_behavior.proto";
  20. import "google/api/resource.proto";
  21. import "google/api/annotations.proto";
  22. option csharp_namespace = "Google.Ads.GoogleAds.V8.Resources";
  23. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v8/resources;resources";
  24. option java_multiple_files = true;
  25. option java_outer_classname = "AccountLinkProto";
  26. option java_package = "com.google.ads.googleads.v8.resources";
  27. option objc_class_prefix = "GAA";
  28. option php_namespace = "Google\\Ads\\GoogleAds\\V8\\Resources";
  29. option ruby_package = "Google::Ads::GoogleAds::V8::Resources";
  30. // Represents the data sharing connection between a Google Ads account and
  31. // another account
  32. message AccountLink {
  33. option (google.api.resource) = {
  34. type: "googleads.googleapis.com/AccountLink"
  35. pattern: "customers/{customer_id}/accountLinks/{account_link_id}"
  36. };
  37. // Immutable. Resource name of the account link.
  38. // AccountLink resource names have the form:
  39. // `customers/{customer_id}/accountLinks/{account_link_id}`
  40. string resource_name = 1 [
  41. (google.api.field_behavior) = IMMUTABLE,
  42. (google.api.resource_reference) = {
  43. type: "googleads.googleapis.com/AccountLink"
  44. }
  45. ];
  46. // Output only. The ID of the link.
  47. // This field is read only.
  48. optional int64 account_link_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. // The status of the link.
  50. google.ads.googleads.v8.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
  51. // Output only. The type of the linked account.
  52. google.ads.googleads.v8.enums.LinkedAccountTypeEnum.LinkedAccountType type = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  53. // An account linked to this Google Ads account.
  54. oneof linked_account {
  55. // Immutable. A third party app analytics link.
  56. ThirdPartyAppAnalyticsLinkIdentifier third_party_app_analytics = 5 [(google.api.field_behavior) = IMMUTABLE];
  57. // Output only. Data partner link.
  58. DataPartnerLinkIdentifier data_partner = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
  59. // Output only. Google Ads link.
  60. GoogleAdsLinkIdentifier google_ads = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
  61. }
  62. }
  63. // The identifiers of a Third Party App Analytics Link.
  64. message ThirdPartyAppAnalyticsLinkIdentifier {
  65. // Immutable. The ID of the app analytics provider.
  66. // This field should not be empty when creating a new third
  67. // party app analytics link. It is unable to be modified after the creation of
  68. // the link.
  69. optional int64 app_analytics_provider_id = 4 [(google.api.field_behavior) = IMMUTABLE];
  70. // Immutable. A string that uniquely identifies a mobile application from which the data
  71. // was collected to the Google Ads API. For iOS, the ID string is the 9 digit
  72. // string that appears at the end of an App Store URL (e.g., "422689480" for
  73. // "Gmail" whose App Store link is
  74. // https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
  75. // Android, the ID string is the application's package name (e.g.,
  76. // "com.google.android.gm" for "Gmail" given Google Play link
  77. // https://play.google.com/store/apps/details?id=com.google.android.gm)
  78. // This field should not be empty when creating a new third
  79. // party app analytics link. It is unable to be modified after the creation of
  80. // the link.
  81. optional string app_id = 5 [(google.api.field_behavior) = IMMUTABLE];
  82. // Immutable. The vendor of the app.
  83. // This field should not be empty when creating a new third
  84. // party app analytics link. It is unable to be modified after the creation of
  85. // the link.
  86. google.ads.googleads.v8.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(google.api.field_behavior) = IMMUTABLE];
  87. }
  88. // The identifier for Data Partner account.
  89. message DataPartnerLinkIdentifier {
  90. // Immutable. The customer ID of the Data partner account.
  91. // This field is required and should not be empty when creating a new
  92. // data partner link. It is unable to be modified after the creation of
  93. // the link.
  94. optional int64 data_partner_id = 1 [(google.api.field_behavior) = IMMUTABLE];
  95. }
  96. // The identifier for Google Ads account.
  97. message GoogleAdsLinkIdentifier {
  98. // Immutable. The resource name of the Google Ads account.
  99. // This field is required and should not be empty when creating a new
  100. // Google Ads link. It is unable to be modified after the creation of
  101. // the link.
  102. optional string customer = 3 [
  103. (google.api.field_behavior) = IMMUTABLE,
  104. (google.api.resource_reference) = {
  105. type: "googleads.googleapis.com/Customer"
  106. }
  107. ];
  108. }