account_link.proto 5.6 KB

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