account_link.proto 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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.v12.resources;
  16. import "google/ads/googleads/v12/enums/account_link_status.proto";
  17. import "google/ads/googleads/v12/enums/linked_account_type.proto";
  18. import "google/ads/googleads/v12/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.V12.Resources";
  22. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/resources;resources";
  23. option java_multiple_files = true;
  24. option java_outer_classname = "AccountLinkProto";
  25. option java_package = "com.google.ads.googleads.v12.resources";
  26. option objc_class_prefix = "GAA";
  27. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Resources";
  28. option ruby_package = "Google::Ads::GoogleAds::V12::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.v12.enums.AccountLinkStatusEnum.AccountLinkStatus status = 3;
  50. // Output only. The type of the linked account.
  51. google.ads.googleads.v12.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. // Output only. Advertising Partner link
  63. AdvertisingPartnerLinkIdentifier advertising_partner = 10 [(google.api.field_behavior) = OUTPUT_ONLY];
  64. }
  65. }
  66. // The identifiers of a Third Party App Analytics Link.
  67. message ThirdPartyAppAnalyticsLinkIdentifier {
  68. // Immutable. The ID of the app analytics provider.
  69. // This field should not be empty when creating a new third
  70. // party app analytics link. It is unable to be modified after the creation of
  71. // the link.
  72. optional int64 app_analytics_provider_id = 4 [(google.api.field_behavior) = IMMUTABLE];
  73. // Immutable. A string that uniquely identifies a mobile application from which the data
  74. // was collected to the Google Ads API. For iOS, the ID string is the 9 digit
  75. // string that appears at the end of an App Store URL (for example,
  76. // "422689480" for "Gmail" whose App Store link is
  77. // https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
  78. // Android, the ID string is the application's package name (for example,
  79. // "com.google.android.gm" for "Gmail" given Google Play link
  80. // https://play.google.com/store/apps/details?id=com.google.android.gm)
  81. // This field should not be empty when creating a new third
  82. // party app analytics link. It is unable to be modified after the creation of
  83. // the link.
  84. optional string app_id = 5 [(google.api.field_behavior) = IMMUTABLE];
  85. // Immutable. The vendor of the app.
  86. // This field should not be empty when creating a new third
  87. // party app analytics link. It is unable to be modified after the creation of
  88. // the link.
  89. google.ads.googleads.v12.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(google.api.field_behavior) = IMMUTABLE];
  90. }
  91. // The identifier for Data Partner account.
  92. message DataPartnerLinkIdentifier {
  93. // Immutable. The customer ID of the Data partner account.
  94. // This field is required and should not be empty when creating a new
  95. // data partner link. It is unable to be modified after the creation of
  96. // the link.
  97. optional int64 data_partner_id = 1 [(google.api.field_behavior) = IMMUTABLE];
  98. }
  99. // The identifier for Hotel account.
  100. message HotelCenterLinkIdentifier {
  101. // Output only. The hotel center id of the hotel account.
  102. int64 hotel_center_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  103. }
  104. // The identifier for Google Ads account.
  105. message GoogleAdsLinkIdentifier {
  106. // Immutable. The resource name of the Google Ads account.
  107. // This field is required and should not be empty when creating a new
  108. // Google Ads link. It is unable to be modified after the creation of
  109. // the link.
  110. optional string customer = 3 [
  111. (google.api.field_behavior) = IMMUTABLE,
  112. (google.api.resource_reference) = {
  113. type: "googleads.googleapis.com/Customer"
  114. }
  115. ];
  116. }
  117. // The identifier for the Advertising Partner Google Ads account.
  118. message AdvertisingPartnerLinkIdentifier {
  119. // Immutable. The resource name of the advertising partner Google Ads account.
  120. // This field is required and should not be empty when creating a new
  121. // Advertising Partner link. It is unable to be modified after the creation of
  122. // the link.
  123. optional string customer = 1 [
  124. (google.api.field_behavior) = IMMUTABLE,
  125. (google.api.resource_reference) = {
  126. type: "googleads.googleapis.com/Customer"
  127. }
  128. ];
  129. }