@google-ads/admanager 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.
- package/CHANGELOG.md +10 -0
- package/LICENSE +202 -0
- package/README.md +236 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_enums.proto +81 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +230 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +195 -0
- package/build/protos/google/ads/admanager/v1/admanager_error.proto +52 -0
- package/build/protos/google/ads/admanager/v1/applied_label.proto +41 -0
- package/build/protos/google/ads/admanager/v1/company_credit_status_enum.proto +97 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +122 -0
- package/build/protos/google/ads/admanager/v1/company_service.proto +126 -0
- package/build/protos/google/ads/admanager/v1/company_type_enum.proto +51 -0
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +49 -0
- package/build/protos/google/ads/admanager/v1/custom_field_enums.proto +110 -0
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +87 -0
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +127 -0
- package/build/protos/google/ads/admanager/v1/custom_field_value.proto +62 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_enums.proto +76 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +69 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_enums.proto +90 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +66 -0
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +132 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_messages.proto +64 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +252 -0
- package/build/protos/google/ads/admanager/v1/environment_type_enum.proto +41 -0
- package/build/protos/google/ads/admanager/v1/frequency_cap.proto +39 -0
- package/build/protos/google/ads/admanager/v1/label_messages.proto +42 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +79 -0
- package/build/protos/google/ads/admanager/v1/network_service.proto +72 -0
- package/build/protos/google/ads/admanager/v1/order_enums.proto +59 -0
- package/build/protos/google/ads/admanager/v1/order_messages.proto +209 -0
- package/build/protos/google/ads/admanager/v1/order_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/placement_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/placement_messages.proto +77 -0
- package/build/protos/google/ads/admanager/v1/placement_service.proto +126 -0
- package/build/protos/google/ads/admanager/v1/report_service.proto +3526 -0
- package/build/protos/google/ads/admanager/v1/role_enums.proto +41 -0
- package/build/protos/google/ads/admanager/v1/role_messages.proto +59 -0
- package/build/protos/google/ads/admanager/v1/role_service.proto +122 -0
- package/build/protos/google/ads/admanager/v1/size.proto +47 -0
- package/build/protos/google/ads/admanager/v1/size_type_enum.proto +62 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_messages.proto +70 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +51 -0
- package/build/protos/google/ads/admanager/v1/team_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/time_unit_enum.proto +59 -0
- package/build/protos/google/ads/admanager/v1/user_messages.proto +78 -0
- package/build/protos/google/ads/admanager/v1/user_service.proto +57 -0
- package/build/protos/protos.d.ts +23491 -0
- package/build/protos/protos.js +69798 -0
- package/build/protos/protos.json +7273 -0
- package/build/src/index.d.ts +47 -0
- package/build/src/index.js +67 -0
- package/build/src/index.js.map +1 -0
- package/build/src/v1/ad_unit_service_client.d.ts +794 -0
- package/build/src/v1/ad_unit_service_client.js +1136 -0
- package/build/src/v1/ad_unit_service_client.js.map +1 -0
- package/build/src/v1/ad_unit_service_client_config.json +38 -0
- package/build/src/v1/company_service_client.d.ts +663 -0
- package/build/src/v1/company_service_client.js +999 -0
- package/build/src/v1/company_service_client.js.map +1 -0
- package/build/src/v1/company_service_client_config.json +34 -0
- package/build/src/v1/custom_field_service_client.d.ts +663 -0
- package/build/src/v1/custom_field_service_client.js +1002 -0
- package/build/src/v1/custom_field_service_client.js.map +1 -0
- package/build/src/v1/custom_field_service_client_config.json +34 -0
- package/build/src/v1/custom_targeting_key_service_client.d.ts +664 -0
- package/build/src/v1/custom_targeting_key_service_client.js +1004 -0
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -0
- package/build/src/v1/custom_targeting_key_service_client_config.json +34 -0
- package/build/src/v1/custom_targeting_value_service_client.d.ts +673 -0
- package/build/src/v1/custom_targeting_value_service_client.js +1010 -0
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -0
- package/build/src/v1/custom_targeting_value_service_client_config.json +34 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +782 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +1096 -0
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -0
- package/build/src/v1/entity_signals_mapping_service_client_config.json +50 -0
- package/build/src/v1/index.d.ts +13 -0
- package/build/src/v1/index.js +47 -0
- package/build/src/v1/index.js.map +1 -0
- package/build/src/v1/network_service_client.d.ts +552 -0
- package/build/src/v1/network_service_client.js +877 -0
- package/build/src/v1/network_service_client.js.map +1 -0
- package/build/src/v1/network_service_client_config.json +34 -0
- package/build/src/v1/order_service_client.d.ts +668 -0
- package/build/src/v1/order_service_client.js +999 -0
- package/build/src/v1/order_service_client.js.map +1 -0
- package/build/src/v1/order_service_client_config.json +48 -0
- package/build/src/v1/placement_service_client.d.ts +663 -0
- package/build/src/v1/placement_service_client.js +999 -0
- package/build/src/v1/placement_service_client.js.map +1 -0
- package/build/src/v1/placement_service_client_config.json +34 -0
- package/build/src/v1/report_service_client.d.ts +975 -0
- package/build/src/v1/report_service_client.js +1352 -0
- package/build/src/v1/report_service_client.js.map +1 -0
- package/build/src/v1/report_service_client_config.json +50 -0
- package/build/src/v1/role_service_client.d.ts +660 -0
- package/build/src/v1/role_service_client.js +997 -0
- package/build/src/v1/role_service_client.js.map +1 -0
- package/build/src/v1/role_service_client_config.json +34 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +663 -0
- package/build/src/v1/taxonomy_category_service_client.js +1003 -0
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -0
- package/build/src/v1/taxonomy_category_service_client_config.json +34 -0
- package/build/src/v1/user_service_client.d.ts +534 -0
- package/build/src/v1/user_service_client.js +861 -0
- package/build/src/v1/user_service_client.js.map +1 -0
- package/build/src/v1/user_service_client_config.json +30 -0
- package/package.json +70 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
// Copyright 2024 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
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/applied_label.proto";
|
|
20
|
+
import "google/ads/admanager/v1/custom_field_value.proto";
|
|
21
|
+
import "google/ads/admanager/v1/order_enums.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
import "google/protobuf/timestamp.proto";
|
|
25
|
+
|
|
26
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
27
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
28
|
+
option java_multiple_files = true;
|
|
29
|
+
option java_outer_classname = "OrderMessagesProto";
|
|
30
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
31
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
32
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
33
|
+
|
|
34
|
+
// The `Order` resource.
|
|
35
|
+
message Order {
|
|
36
|
+
option (google.api.resource) = {
|
|
37
|
+
type: "admanager.googleapis.com/Order"
|
|
38
|
+
pattern: "networks/{network_code}/orders/{order}"
|
|
39
|
+
plural: "orders"
|
|
40
|
+
singular: "order"
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// Identifier. The resource name of the `Order`.
|
|
44
|
+
// Format: `networks/{network_code}/orders/{order_id}`
|
|
45
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
46
|
+
|
|
47
|
+
// Output only. Order ID.
|
|
48
|
+
int64 order_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
49
|
+
|
|
50
|
+
// Required. The display name of the Order. This value has a maximum length
|
|
51
|
+
// of 255 characters.
|
|
52
|
+
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
|
|
53
|
+
|
|
54
|
+
// Optional. Specifies whether or not the Order is a programmatic order.
|
|
55
|
+
bool programmatic = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
56
|
+
|
|
57
|
+
// Required. The resource name of the User responsible for trafficking the
|
|
58
|
+
// Order. Format: "networks/{network_code}/users/{user_id}"
|
|
59
|
+
string trafficker = 23 [
|
|
60
|
+
(google.api.field_behavior) = REQUIRED,
|
|
61
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/User" }
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
// Optional. The resource names of Contacts from the advertiser of this Order.
|
|
65
|
+
// Format: "networks/{network_code}/contacts/{contact_id}"
|
|
66
|
+
repeated string advertiser_contacts = 5 [
|
|
67
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
68
|
+
(google.api.resource_reference) = {
|
|
69
|
+
type: "admanager.googleapis.com/Contact"
|
|
70
|
+
}
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
// Required. The resource name of the Company, which is of type
|
|
74
|
+
// Company.Type.ADVERTISER, to which this order belongs. Format:
|
|
75
|
+
// "networks/{network_code}/companies/{company_id}"
|
|
76
|
+
string advertiser = 6 [
|
|
77
|
+
(google.api.field_behavior) = REQUIRED,
|
|
78
|
+
(google.api.resource_reference) = {
|
|
79
|
+
type: "admanager.googleapis.com/Company"
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
// Optional. The resource names of Contacts from the advertising Agency of
|
|
84
|
+
// this Order. Format: "networks/{network_code}/contacts/{contact_id}"
|
|
85
|
+
repeated string agency_contacts = 7 [
|
|
86
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
87
|
+
(google.api.resource_reference) = {
|
|
88
|
+
type: "admanager.googleapis.com/Contact"
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
|
|
92
|
+
// Optional. The resource name of the Company, which is of type
|
|
93
|
+
// Company.Type.AGENCY, with which this order is associated. Format:
|
|
94
|
+
// "networks/{network_code}/companies/{company_id}"
|
|
95
|
+
string agency = 8 [
|
|
96
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
97
|
+
(google.api.resource_reference) = {
|
|
98
|
+
type: "admanager.googleapis.com/Company"
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
|
|
102
|
+
// Optional. The resource names of Teams directly applied to this Order.
|
|
103
|
+
// Format: "networks/{network_code}/teams/{team_id}"
|
|
104
|
+
repeated string applied_teams = 9 [
|
|
105
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
106
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Team" }
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
// Output only. The resource names of Teams applied to this Order including
|
|
110
|
+
// inherited values. Format: "networks/{network_code}/teams/{team_id}"
|
|
111
|
+
repeated string effective_teams = 28 [
|
|
112
|
+
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
113
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Team" }
|
|
114
|
+
];
|
|
115
|
+
|
|
116
|
+
// Output only. The resource name of the User who created the Order on behalf
|
|
117
|
+
// of the advertiser. This value is assigned by Google. Format:
|
|
118
|
+
// "networks/{network_code}/users/{user_id}"
|
|
119
|
+
string creator = 10 [
|
|
120
|
+
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
121
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/User" }
|
|
122
|
+
];
|
|
123
|
+
|
|
124
|
+
// Output only. The ISO 4217 3-letter currency code for the currency used by
|
|
125
|
+
// the Order. This value is the network's currency code.
|
|
126
|
+
string currency_code = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
127
|
+
|
|
128
|
+
// Output only. The instant at which the Order and its associated line items
|
|
129
|
+
// are eligible to begin serving. This attribute is derived from the line item
|
|
130
|
+
// of the order that has the earliest LineItem.start_time.
|
|
131
|
+
google.protobuf.Timestamp start_time = 19
|
|
132
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
133
|
+
|
|
134
|
+
// Output only. The instant at which the Order and its associated line items
|
|
135
|
+
// stop being served. This attribute is derived from the line item of the
|
|
136
|
+
// order that has the latest LineItem.end_time.
|
|
137
|
+
google.protobuf.Timestamp end_time = 12
|
|
138
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
139
|
+
|
|
140
|
+
// Output only. Indicates whether or not this Order has an end time.
|
|
141
|
+
bool unlimited_end_time = 45 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
142
|
+
|
|
143
|
+
// Optional. An arbitrary ID to associate to the Order, which can be used as a
|
|
144
|
+
// key to an external system.
|
|
145
|
+
int64 external_order_id = 13 [(google.api.field_behavior) = OPTIONAL];
|
|
146
|
+
|
|
147
|
+
// Output only. The archival status of the Order.
|
|
148
|
+
bool archived = 14 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
149
|
+
|
|
150
|
+
// Output only. The application which modified this order. This attribute is
|
|
151
|
+
// assigned by Google.
|
|
152
|
+
string last_modified_by_app = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
153
|
+
|
|
154
|
+
// Output only. The instant this Order was last modified.
|
|
155
|
+
google.protobuf.Timestamp update_time = 16
|
|
156
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
157
|
+
|
|
158
|
+
// Optional. Provides any additional notes that may annotate the Order. This
|
|
159
|
+
// attribute has a maximum length of 65,535 characters.
|
|
160
|
+
string notes = 17 [(google.api.field_behavior) = OPTIONAL];
|
|
161
|
+
|
|
162
|
+
// Optional. The purchase order number for the Order. This value has a maximum
|
|
163
|
+
// length of 63 characters.
|
|
164
|
+
string po_number = 18 [(google.api.field_behavior) = OPTIONAL];
|
|
165
|
+
|
|
166
|
+
// Output only. The status of the Order.
|
|
167
|
+
OrderStatusEnum.OrderStatus status = 20
|
|
168
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
169
|
+
|
|
170
|
+
// Optional. The resource name of the User responsible for the sales of the
|
|
171
|
+
// Order. Format: "networks/{network_code}/users/{user_id}"
|
|
172
|
+
string salesperson = 21 [
|
|
173
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
174
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/User" }
|
|
175
|
+
];
|
|
176
|
+
|
|
177
|
+
// Optional. Unordered list. The resource names of the secondary salespeople
|
|
178
|
+
// associated with the order. Format:
|
|
179
|
+
// "networks/{network_code}/users/{user_id}"
|
|
180
|
+
repeated string secondary_salespeople = 22 [
|
|
181
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
182
|
+
(google.api.field_behavior) = UNORDERED_LIST,
|
|
183
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/User" }
|
|
184
|
+
];
|
|
185
|
+
|
|
186
|
+
// Optional. Unordered list. The resource names of the secondary traffickers
|
|
187
|
+
// associated with the order. Format:
|
|
188
|
+
// "networks/{network_code}/users/{user_id}"
|
|
189
|
+
repeated string secondary_traffickers = 24 [
|
|
190
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
191
|
+
(google.api.field_behavior) = UNORDERED_LIST,
|
|
192
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/User" }
|
|
193
|
+
];
|
|
194
|
+
|
|
195
|
+
// Optional. The set of labels applied directly to this order.
|
|
196
|
+
repeated AppliedLabel applied_labels = 25
|
|
197
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
198
|
+
|
|
199
|
+
// Output only. Contains the set of labels applied directly to the order as
|
|
200
|
+
// well as those inherited from the company that owns the order. If a label
|
|
201
|
+
// has been negated, only the negated label is returned. This field is
|
|
202
|
+
// assigned by Google.
|
|
203
|
+
repeated AppliedLabel effective_applied_labels = 26
|
|
204
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
205
|
+
|
|
206
|
+
// Optional. The set of custom field values to this order.
|
|
207
|
+
repeated CustomFieldValue custom_field_values = 38
|
|
208
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
209
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// Copyright 2024 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
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/order_messages.proto";
|
|
20
|
+
import "google/api/annotations.proto";
|
|
21
|
+
import "google/api/client.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
26
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "OrderServiceProto";
|
|
29
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
30
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
31
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
32
|
+
|
|
33
|
+
// Provides methods for handling `Order` objects.
|
|
34
|
+
service OrderService {
|
|
35
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
36
|
+
|
|
37
|
+
// API to retrieve an Order object.
|
|
38
|
+
rpc GetOrder(GetOrderRequest) returns (Order) {
|
|
39
|
+
option (google.api.http) = {
|
|
40
|
+
get: "/v1/{name=networks/*/orders/*}"
|
|
41
|
+
};
|
|
42
|
+
option (google.api.method_signature) = "name";
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// API to retrieve a list of `Order` objects.
|
|
46
|
+
//
|
|
47
|
+
// Fields used for literal matching in filter string:
|
|
48
|
+
// * `order_id`
|
|
49
|
+
// * `display_name`
|
|
50
|
+
// * `external_order_id`
|
|
51
|
+
rpc ListOrders(ListOrdersRequest) returns (ListOrdersResponse) {
|
|
52
|
+
option (google.api.http) = {
|
|
53
|
+
get: "/v1/{parent=networks/*}/orders"
|
|
54
|
+
};
|
|
55
|
+
option (google.api.method_signature) = "parent";
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Request object for `GetOrder` method.
|
|
60
|
+
message GetOrderRequest {
|
|
61
|
+
// Required. The resource name of the Order.
|
|
62
|
+
// Format: `networks/{network_code}/orders/{order_id}`
|
|
63
|
+
string name = 1 [
|
|
64
|
+
(google.api.field_behavior) = REQUIRED,
|
|
65
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Order" }
|
|
66
|
+
];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Request object for `ListOrders` method.
|
|
70
|
+
message ListOrdersRequest {
|
|
71
|
+
// Required. The parent, which owns this collection of Orders.
|
|
72
|
+
// Format: `networks/{network_code}`
|
|
73
|
+
string parent = 1 [
|
|
74
|
+
(google.api.field_behavior) = REQUIRED,
|
|
75
|
+
(google.api.resource_reference) = {
|
|
76
|
+
type: "admanager.googleapis.com/Network"
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
// Optional. The maximum number of `Orders` to return. The service may return
|
|
81
|
+
// fewer than this value. If unspecified, at most 50 `Orders` will be
|
|
82
|
+
// returned. The maximum value is 1000; values above 1000 will be coerced to
|
|
83
|
+
// 1000.
|
|
84
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
85
|
+
|
|
86
|
+
// Optional. A page token, received from a previous `ListOrders` call.
|
|
87
|
+
// Provide this to retrieve the subsequent page.
|
|
88
|
+
//
|
|
89
|
+
// When paginating, all other parameters provided to `ListOrders` must match
|
|
90
|
+
// the call that provided the page token.
|
|
91
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
92
|
+
|
|
93
|
+
// Optional. Expression to filter the response.
|
|
94
|
+
// See syntax details at
|
|
95
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
96
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
97
|
+
|
|
98
|
+
// Optional. Expression to specify sorting order.
|
|
99
|
+
// See syntax details at
|
|
100
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
101
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
102
|
+
|
|
103
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
104
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Response object for `ListOrdersRequest` containing matching `Order`
|
|
108
|
+
// resources.
|
|
109
|
+
message ListOrdersResponse {
|
|
110
|
+
// The `Order` from the specified network.
|
|
111
|
+
repeated Order orders = 1;
|
|
112
|
+
|
|
113
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
114
|
+
// If this field is omitted, there are no subsequent pages.
|
|
115
|
+
string next_page_token = 2;
|
|
116
|
+
|
|
117
|
+
// Total number of `Orders`.
|
|
118
|
+
// If a filter was included in the request, this reflects the total number
|
|
119
|
+
// after the filtering is applied.
|
|
120
|
+
//
|
|
121
|
+
// `total_size` will not be calculated in the response unless it has been
|
|
122
|
+
// included in a response field mask. The response field mask can be provided
|
|
123
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
124
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
125
|
+
//
|
|
126
|
+
// For more information, see
|
|
127
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
128
|
+
int32 total_size = 3;
|
|
129
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright 2024 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
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
20
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
21
|
+
option java_multiple_files = true;
|
|
22
|
+
option java_outer_classname = "PlacementEnumsProto";
|
|
23
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
24
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
25
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
26
|
+
|
|
27
|
+
// Wrapper message for
|
|
28
|
+
// [PlacementStatus][google.ads.admanager.v1.PlacementStatusEnum.PlacementStatus]
|
|
29
|
+
message PlacementStatusEnum {
|
|
30
|
+
// Status of the placement.
|
|
31
|
+
enum PlacementStatus {
|
|
32
|
+
// Not specified value.
|
|
33
|
+
PLACEMENT_STATUS_UNSPECIFIED = 0;
|
|
34
|
+
|
|
35
|
+
// Stats are collected, user-visible.
|
|
36
|
+
ACTIVE = 1;
|
|
37
|
+
|
|
38
|
+
// No stats collected, not user-visible.
|
|
39
|
+
INACTIVE = 2;
|
|
40
|
+
|
|
41
|
+
// No stats collected, user-visible.
|
|
42
|
+
ARCHIVED = 3;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Copyright 2024 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
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/placement_enums.proto";
|
|
20
|
+
import "google/api/field_behavior.proto";
|
|
21
|
+
import "google/api/resource.proto";
|
|
22
|
+
import "google/protobuf/timestamp.proto";
|
|
23
|
+
|
|
24
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
25
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
26
|
+
option java_multiple_files = true;
|
|
27
|
+
option java_outer_classname = "PlacementMessagesProto";
|
|
28
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
29
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
30
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
31
|
+
|
|
32
|
+
// The `Placement` resource.
|
|
33
|
+
message Placement {
|
|
34
|
+
option (google.api.resource) = {
|
|
35
|
+
type: "admanager.googleapis.com/Placement"
|
|
36
|
+
pattern: "networks/{network_code}/placements/{placement}"
|
|
37
|
+
plural: "placements"
|
|
38
|
+
singular: "placement"
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// Identifier. The resource name of the `Placement`.
|
|
42
|
+
// Format: `networks/{network_code}/placements/{placement_id}`
|
|
43
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
44
|
+
|
|
45
|
+
// Output only. `Placement` ID.
|
|
46
|
+
int64 placement_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
47
|
+
|
|
48
|
+
// Required. The display name of the placement. Its maximum length is 255
|
|
49
|
+
// characters.
|
|
50
|
+
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
51
|
+
|
|
52
|
+
// Optional. A description of the Placement. This value is optional and its
|
|
53
|
+
// maximum length is 65,535 characters.
|
|
54
|
+
string description = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
55
|
+
|
|
56
|
+
// Output only. A string used to uniquely identify the Placement for purposes
|
|
57
|
+
// of serving the ad. This attribute is read-only and is assigned by Google
|
|
58
|
+
// when a placement is created.
|
|
59
|
+
string placement_code = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
60
|
+
|
|
61
|
+
// Output only. The status of the Placement. This attribute is read-only.
|
|
62
|
+
PlacementStatusEnum.PlacementStatus status = 6
|
|
63
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
64
|
+
|
|
65
|
+
// Optional. The resource names of AdUnits that constitute the Placement.
|
|
66
|
+
// Format: "networks/{network_code}/adUnits/{ad_unit_id}"
|
|
67
|
+
repeated string targeted_ad_units = 7 [
|
|
68
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
69
|
+
(google.api.resource_reference) = {
|
|
70
|
+
type: "admanager.googleapis.com/AdUnit"
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
// Output only. The instant this Placement was last modified.
|
|
75
|
+
google.protobuf.Timestamp update_time = 9
|
|
76
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
77
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// Copyright 2024 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
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package google.ads.admanager.v1;
|
|
18
|
+
|
|
19
|
+
import "google/ads/admanager/v1/placement_messages.proto";
|
|
20
|
+
import "google/api/annotations.proto";
|
|
21
|
+
import "google/api/client.proto";
|
|
22
|
+
import "google/api/field_behavior.proto";
|
|
23
|
+
import "google/api/resource.proto";
|
|
24
|
+
|
|
25
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
26
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
27
|
+
option java_multiple_files = true;
|
|
28
|
+
option java_outer_classname = "PlacementServiceProto";
|
|
29
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
30
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
31
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
32
|
+
|
|
33
|
+
// Provides methods for handling `Placement` objects.
|
|
34
|
+
service PlacementService {
|
|
35
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
36
|
+
|
|
37
|
+
// API to retrieve a `Placement` object.
|
|
38
|
+
rpc GetPlacement(GetPlacementRequest) returns (Placement) {
|
|
39
|
+
option (google.api.http) = {
|
|
40
|
+
get: "/v1/{name=networks/*/placements/*}"
|
|
41
|
+
};
|
|
42
|
+
option (google.api.method_signature) = "name";
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// API to retrieve a list of `Placement` objects.
|
|
46
|
+
rpc ListPlacements(ListPlacementsRequest) returns (ListPlacementsResponse) {
|
|
47
|
+
option (google.api.http) = {
|
|
48
|
+
get: "/v1/{parent=networks/*}/placements"
|
|
49
|
+
};
|
|
50
|
+
option (google.api.method_signature) = "parent";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Request object for `GetPlacement` method.
|
|
55
|
+
message GetPlacementRequest {
|
|
56
|
+
// Required. The resource name of the Placement.
|
|
57
|
+
// Format: `networks/{network_code}/placements/{placement_id}`
|
|
58
|
+
string name = 1 [
|
|
59
|
+
(google.api.field_behavior) = REQUIRED,
|
|
60
|
+
(google.api.resource_reference) = {
|
|
61
|
+
type: "admanager.googleapis.com/Placement"
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Request object for `ListPlacements` method.
|
|
67
|
+
message ListPlacementsRequest {
|
|
68
|
+
// Required. The parent, which owns this collection of Placements.
|
|
69
|
+
// Format: `networks/{network_code}`
|
|
70
|
+
string parent = 1 [
|
|
71
|
+
(google.api.field_behavior) = REQUIRED,
|
|
72
|
+
(google.api.resource_reference) = {
|
|
73
|
+
type: "admanager.googleapis.com/Network"
|
|
74
|
+
}
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
// Optional. The maximum number of `Placements` to return. The service may
|
|
78
|
+
// return fewer than this value. If unspecified, at most 50 `Placements` will
|
|
79
|
+
// be returned. The maximum value is 1000; values above 1000 will be coerced
|
|
80
|
+
// to 1000.
|
|
81
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
82
|
+
|
|
83
|
+
// Optional. A page token, received from a previous `ListPlacements` call.
|
|
84
|
+
// Provide this to retrieve the subsequent page.
|
|
85
|
+
//
|
|
86
|
+
// When paginating, all other parameters provided to `ListPlacements` must
|
|
87
|
+
// match the call that provided the page token.
|
|
88
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
89
|
+
|
|
90
|
+
// Optional. Expression to filter the response.
|
|
91
|
+
// See syntax details at
|
|
92
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
93
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
94
|
+
|
|
95
|
+
// Optional. Expression to specify sorting order.
|
|
96
|
+
// See syntax details at
|
|
97
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
98
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
99
|
+
|
|
100
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
101
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Response object for `ListPlacementsRequest` containing matching `Placement`
|
|
105
|
+
// objects.
|
|
106
|
+
message ListPlacementsResponse {
|
|
107
|
+
// The `Placement` objects from the specified network.
|
|
108
|
+
repeated Placement placements = 1;
|
|
109
|
+
|
|
110
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
111
|
+
// If this field is omitted, there are no subsequent pages.
|
|
112
|
+
string next_page_token = 2;
|
|
113
|
+
|
|
114
|
+
// Total number of `Placement` objects.
|
|
115
|
+
// If a filter was included in the request, this reflects the total number
|
|
116
|
+
// after the filtering is applied.
|
|
117
|
+
//
|
|
118
|
+
// `total_size` will not be calculated in the response unless it has been
|
|
119
|
+
// included in a response field mask. The response field mask can be provided
|
|
120
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
121
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
122
|
+
//
|
|
123
|
+
// For more information, see
|
|
124
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
125
|
+
int32 total_size = 3;
|
|
126
|
+
}
|