@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,230 @@
|
|
|
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/ad_unit_enums.proto";
|
|
20
|
+
import "google/ads/admanager/v1/applied_label.proto";
|
|
21
|
+
import "google/ads/admanager/v1/environment_type_enum.proto";
|
|
22
|
+
import "google/ads/admanager/v1/frequency_cap.proto";
|
|
23
|
+
import "google/ads/admanager/v1/size.proto";
|
|
24
|
+
import "google/api/field_behavior.proto";
|
|
25
|
+
import "google/api/resource.proto";
|
|
26
|
+
import "google/protobuf/duration.proto";
|
|
27
|
+
import "google/protobuf/timestamp.proto";
|
|
28
|
+
|
|
29
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
30
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
31
|
+
option java_multiple_files = true;
|
|
32
|
+
option java_outer_classname = "AdUnitMessagesProto";
|
|
33
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
34
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
35
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
36
|
+
|
|
37
|
+
// The AdUnit resource.
|
|
38
|
+
message AdUnit {
|
|
39
|
+
option (google.api.resource) = {
|
|
40
|
+
type: "admanager.googleapis.com/AdUnit"
|
|
41
|
+
pattern: "networks/{network_code}/adUnits/{ad_unit}"
|
|
42
|
+
plural: "adUnits"
|
|
43
|
+
singular: "adUnit"
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// Identifier. The resource name of the AdUnit.
|
|
47
|
+
// Format: `networks/{network_code}/adUnits/{ad_unit_id}`
|
|
48
|
+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
|
|
49
|
+
|
|
50
|
+
// Output only. AdUnit ID.
|
|
51
|
+
int64 ad_unit_id = 15 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
52
|
+
|
|
53
|
+
// Required. Immutable. The AdUnit's parent. Every ad unit has a parent except
|
|
54
|
+
// for the root ad unit, which is created by Google. Format:
|
|
55
|
+
// "networks/{network_code}/adUnits/{ad_unit_id}"
|
|
56
|
+
string parent_ad_unit = 10 [
|
|
57
|
+
(google.api.field_behavior) = REQUIRED,
|
|
58
|
+
(google.api.field_behavior) = IMMUTABLE,
|
|
59
|
+
(google.api.resource_reference) = {
|
|
60
|
+
type: "admanager.googleapis.com/AdUnit"
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
// Output only. The path to this AdUnit in the ad unit hierarchy represented
|
|
65
|
+
// as a list from the root to this ad unit's parent. For root ad units, this
|
|
66
|
+
// list is empty.
|
|
67
|
+
repeated AdUnitParent parent_path = 11
|
|
68
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
69
|
+
|
|
70
|
+
// Required. The display name of the ad unit. Its maximum length is 255
|
|
71
|
+
// characters.
|
|
72
|
+
string display_name = 9 [(google.api.field_behavior) = REQUIRED];
|
|
73
|
+
|
|
74
|
+
// Immutable. A string used to uniquely identify the ad unit for the purposes
|
|
75
|
+
// of serving the ad. This attribute is optional and can be set during ad unit
|
|
76
|
+
// creation. If it is not provided, it will be assigned by Google based on the
|
|
77
|
+
// ad unit ID.
|
|
78
|
+
string ad_unit_code = 2 [(google.api.field_behavior) = IMMUTABLE];
|
|
79
|
+
|
|
80
|
+
// Output only. The status of this ad unit. It defaults to ACTIVE.
|
|
81
|
+
AdUnitStatusEnum.AdUnitStatus status = 13
|
|
82
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
83
|
+
|
|
84
|
+
// Optional. The target window directly applied to this AdUnit.
|
|
85
|
+
// If this field is not set, this AdUnit uses the target window specified in
|
|
86
|
+
// effectiveTargetWindow.
|
|
87
|
+
TargetWindowEnum.TargetWindow applied_target_window = 44
|
|
88
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
89
|
+
|
|
90
|
+
// Output only. Non-empty default. The target window of this AdUnit. This
|
|
91
|
+
// value is inherited from ancestor AdUnits and defaults to TOP if no AdUnit
|
|
92
|
+
// in the hierarchy specifies it.
|
|
93
|
+
TargetWindowEnum.TargetWindow effective_target_window = 45 [
|
|
94
|
+
(google.api.field_behavior) = NON_EMPTY_DEFAULT,
|
|
95
|
+
(google.api.field_behavior) = OUTPUT_ONLY
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
// Optional. The resource names of Teams directly applied to this AdUnit.
|
|
99
|
+
// Format: "networks/{network_code}/teams/{team_id}"
|
|
100
|
+
repeated string applied_teams = 3 [
|
|
101
|
+
(google.api.field_behavior) = OPTIONAL,
|
|
102
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Team" }
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
// Output only. The resource names of all Teams that this AdUnit is on as well
|
|
106
|
+
// as those inherited from parent AdUnits. Format:
|
|
107
|
+
// "networks/{network_code}/teams/{team_id}"
|
|
108
|
+
repeated string teams = 4 [
|
|
109
|
+
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
110
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Team" }
|
|
111
|
+
];
|
|
112
|
+
|
|
113
|
+
// Optional. A description of the ad unit. The maximum length is 65,535
|
|
114
|
+
// characters.
|
|
115
|
+
string description = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
116
|
+
|
|
117
|
+
// Optional. If this field is set to true, then the AdUnit will not be
|
|
118
|
+
// implicitly targeted when its parent is. Traffickers must explicitly
|
|
119
|
+
// target such an AdUnit or else no line items will serve to it. This
|
|
120
|
+
// feature is only available for Ad Manager 360 accounts.
|
|
121
|
+
bool explicitly_targeted = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
122
|
+
|
|
123
|
+
// Output only. This field is set to true if the ad unit has any children.
|
|
124
|
+
bool has_children = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
125
|
+
|
|
126
|
+
// Output only. The time this AdUnit was last modified.
|
|
127
|
+
google.protobuf.Timestamp update_time = 8
|
|
128
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
129
|
+
|
|
130
|
+
// Optional. The sizes that can be served inside this ad unit.
|
|
131
|
+
repeated AdUnitSize ad_unit_sizes = 14
|
|
132
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
133
|
+
|
|
134
|
+
// Optional. Determines what set top box video on demand channel this ad unit
|
|
135
|
+
// corresponds to in an external set top box ad campaign system.
|
|
136
|
+
string external_set_top_box_channel_id = 17
|
|
137
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
138
|
+
|
|
139
|
+
// Optional. The duration after which an Ad Unit will automatically refresh.
|
|
140
|
+
// This is only valid for ad units in mobile apps. If not set, the ad unit
|
|
141
|
+
// will not refresh.
|
|
142
|
+
google.protobuf.Duration refresh_delay = 19
|
|
143
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
144
|
+
|
|
145
|
+
// Optional. The set of labels applied directly to this ad unit.
|
|
146
|
+
repeated AppliedLabel applied_labels = 21
|
|
147
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
148
|
+
|
|
149
|
+
// Output only. Contains the set of labels applied directly to the ad unit as
|
|
150
|
+
// well as those inherited from the parent ad units. If a label has been
|
|
151
|
+
// negated, only the negated label is returned. This field is readonly and is
|
|
152
|
+
// assigned by Google.
|
|
153
|
+
repeated AppliedLabel effective_applied_labels = 22
|
|
154
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
155
|
+
|
|
156
|
+
// Optional. The set of label frequency caps applied directly to this ad unit.
|
|
157
|
+
// There is a limit of 10 label frequency caps per ad unit.
|
|
158
|
+
repeated LabelFrequencyCap applied_label_frequency_caps = 23
|
|
159
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
160
|
+
|
|
161
|
+
// Output only. The label frequency caps applied directly to the ad unit as
|
|
162
|
+
// well as those inherited from parent ad units.
|
|
163
|
+
repeated LabelFrequencyCap effective_label_frequency_caps = 24
|
|
164
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
165
|
+
|
|
166
|
+
// Optional. The smart size mode for this ad unit. This attribute is optional
|
|
167
|
+
// and defaults to SmartSizeMode.NONE for fixed sizes.
|
|
168
|
+
SmartSizeModeEnum.SmartSizeMode smart_size_mode = 25
|
|
169
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
170
|
+
|
|
171
|
+
// Optional. The value of AdSense enabled directly applied to this ad unit.
|
|
172
|
+
// This attribute is optional and if not specified this ad unit will inherit
|
|
173
|
+
// the value of effectiveAdsenseEnabled from its ancestors.
|
|
174
|
+
optional bool applied_adsense_enabled = 26
|
|
175
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
176
|
+
|
|
177
|
+
// Output only. Specifies whether or not the AdUnit is enabled for serving ads
|
|
178
|
+
// from the AdSense content network. This attribute defaults to the ad unit's
|
|
179
|
+
// parent or ancestor's setting if one has been set. If no ancestor of the ad
|
|
180
|
+
// unit has set appliedAdsenseEnabled, the attribute is defaulted to true.
|
|
181
|
+
bool effective_adsense_enabled = 27
|
|
182
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Represents the size, environment, and companions of an ad in an ad unit.
|
|
186
|
+
message AdUnitSize {
|
|
187
|
+
// Required. The Size of the AdUnit.
|
|
188
|
+
Size size = 1 [(google.api.field_behavior) = REQUIRED];
|
|
189
|
+
|
|
190
|
+
// Required. The EnvironmentType of the AdUnit
|
|
191
|
+
EnvironmentTypeEnum.EnvironmentType environment_type = 2
|
|
192
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
193
|
+
|
|
194
|
+
// The companions for this ad unit size. Companions are only valid if the
|
|
195
|
+
// environment is
|
|
196
|
+
// [VIDEO_PLAYER][google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentType].
|
|
197
|
+
repeated Size companions = 3;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// The summary of a parent AdUnit.
|
|
201
|
+
message AdUnitParent {
|
|
202
|
+
// Output only. The parent of the current AdUnit
|
|
203
|
+
// Format: `networks/{network_code}/adUnits/{ad_unit_id}`
|
|
204
|
+
string parent_ad_unit = 1 [
|
|
205
|
+
(google.api.field_behavior) = OUTPUT_ONLY,
|
|
206
|
+
(google.api.resource_reference) = {
|
|
207
|
+
type: "admanager.googleapis.com/AdUnit"
|
|
208
|
+
}
|
|
209
|
+
];
|
|
210
|
+
|
|
211
|
+
// Output only. The display name of the parent AdUnit.
|
|
212
|
+
string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
213
|
+
|
|
214
|
+
// Output only. A string used to uniquely identify the ad unit for the
|
|
215
|
+
// purposes of serving the ad.
|
|
216
|
+
string ad_unit_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Frequency cap using a label.
|
|
220
|
+
message LabelFrequencyCap {
|
|
221
|
+
// Required. The label to used for frequency capping.
|
|
222
|
+
// Format: "networks/{network_code}/labels/{label_id}"
|
|
223
|
+
string label = 1 [
|
|
224
|
+
(google.api.field_behavior) = REQUIRED,
|
|
225
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Label" }
|
|
226
|
+
];
|
|
227
|
+
|
|
228
|
+
// The frequency cap.
|
|
229
|
+
FrequencyCap frequency_cap = 2;
|
|
230
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
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/ad_unit_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 = "AdUnitServiceProto";
|
|
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 AdUnit objects.
|
|
34
|
+
service AdUnitService {
|
|
35
|
+
option (google.api.default_host) = "admanager.googleapis.com";
|
|
36
|
+
|
|
37
|
+
// API to retrieve an AdUnit object.
|
|
38
|
+
rpc GetAdUnit(GetAdUnitRequest) returns (AdUnit) {
|
|
39
|
+
option (google.api.http) = {
|
|
40
|
+
get: "/v1/{name=networks/*/adUnits/*}"
|
|
41
|
+
};
|
|
42
|
+
option (google.api.method_signature) = "name";
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// API to retrieve a list of AdUnit objects.
|
|
46
|
+
rpc ListAdUnits(ListAdUnitsRequest) returns (ListAdUnitsResponse) {
|
|
47
|
+
option (google.api.http) = {
|
|
48
|
+
get: "/v1/{parent=networks/*}/adUnits"
|
|
49
|
+
};
|
|
50
|
+
option (google.api.method_signature) = "parent";
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// API to retrieve a list of AdUnitSize objects.
|
|
54
|
+
rpc ListAdUnitSizes(ListAdUnitSizesRequest)
|
|
55
|
+
returns (ListAdUnitSizesResponse) {
|
|
56
|
+
option (google.api.http) = {
|
|
57
|
+
get: "/v1/{parent=networks/*}/adUnitSizes"
|
|
58
|
+
};
|
|
59
|
+
option (google.api.method_signature) = "parent";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Request object for GetAdUnit method.
|
|
64
|
+
message GetAdUnitRequest {
|
|
65
|
+
// Required. The resource name of the AdUnit.
|
|
66
|
+
// Format: `networks/{network_code}/adUnits/{ad_unit_id}`
|
|
67
|
+
string name = 1 [
|
|
68
|
+
(google.api.field_behavior) = REQUIRED,
|
|
69
|
+
(google.api.resource_reference) = {
|
|
70
|
+
type: "admanager.googleapis.com/AdUnit"
|
|
71
|
+
}
|
|
72
|
+
];
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Request object for ListAdUnits method.
|
|
76
|
+
message ListAdUnitsRequest {
|
|
77
|
+
// Required. The parent, which owns this collection of AdUnits.
|
|
78
|
+
// Format: `networks/{network_code}`
|
|
79
|
+
string parent = 1 [
|
|
80
|
+
(google.api.field_behavior) = REQUIRED,
|
|
81
|
+
(google.api.resource_reference) = {
|
|
82
|
+
type: "admanager.googleapis.com/Network"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
// Optional. The maximum number of AdUnits to return. The service may return
|
|
87
|
+
// fewer than this value. If unspecified, at most 50 ad units will be
|
|
88
|
+
// returned. The maximum value is 1000; values above 1000 will be coerced to
|
|
89
|
+
// 1000.
|
|
90
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
91
|
+
|
|
92
|
+
// Optional. A page token, received from a previous `ListAdUnits` call.
|
|
93
|
+
// Provide this to retrieve the subsequent page.
|
|
94
|
+
//
|
|
95
|
+
// When paginating, all other parameters provided to `ListAdUnits` must match
|
|
96
|
+
// the call that provided the page token.
|
|
97
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
98
|
+
|
|
99
|
+
// Optional. Expression to filter the response.
|
|
100
|
+
// See syntax details at
|
|
101
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
102
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
103
|
+
|
|
104
|
+
// Optional. Expression to specify sorting order.
|
|
105
|
+
// See syntax details at
|
|
106
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
107
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
108
|
+
|
|
109
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
110
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Response object for ListAdUnitsRequest containing matching AdUnit resources.
|
|
114
|
+
message ListAdUnitsResponse {
|
|
115
|
+
// The AdUnit from the specified network.
|
|
116
|
+
repeated AdUnit ad_units = 1;
|
|
117
|
+
|
|
118
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
119
|
+
// If this field is omitted, there are no subsequent pages.
|
|
120
|
+
string next_page_token = 2;
|
|
121
|
+
|
|
122
|
+
// Total number of AdUnits.
|
|
123
|
+
// If a filter was included in the request, this reflects the total number
|
|
124
|
+
// after the filtering is applied.
|
|
125
|
+
//
|
|
126
|
+
// `total_size` will not be calculated in the response unless it has been
|
|
127
|
+
// included in a response field mask. The response field mask can be provided
|
|
128
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
129
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
130
|
+
//
|
|
131
|
+
// For more information, see
|
|
132
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
133
|
+
int32 total_size = 3;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Request object for ListAdUnitSizes method.
|
|
137
|
+
message ListAdUnitSizesRequest {
|
|
138
|
+
// Required. The parent, which owns this collection of AdUnitSizes.
|
|
139
|
+
// Format: `networks/{network_code}`
|
|
140
|
+
string parent = 1 [
|
|
141
|
+
(google.api.field_behavior) = REQUIRED,
|
|
142
|
+
(google.api.resource_reference) = {
|
|
143
|
+
type: "admanager.googleapis.com/Network"
|
|
144
|
+
}
|
|
145
|
+
];
|
|
146
|
+
|
|
147
|
+
// Optional. The maximum number of AdUnitSizes to return. The service may
|
|
148
|
+
// return fewer than this value. If unspecified, at most 50 ad unit sizes will
|
|
149
|
+
// be returned. The maximum value is 1000; values above 1000 will be coerced
|
|
150
|
+
// to 1000.
|
|
151
|
+
int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
|
|
152
|
+
|
|
153
|
+
// Optional. A page token, received from a previous `ListAdUnitSizes` call.
|
|
154
|
+
// Provide this to retrieve the subsequent page.
|
|
155
|
+
//
|
|
156
|
+
// When paginating, all other parameters provided to `ListAdUnitSizes` must
|
|
157
|
+
// match the call that provided the page token.
|
|
158
|
+
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
|
|
159
|
+
|
|
160
|
+
// Optional. Expression to filter the response.
|
|
161
|
+
// See syntax details at
|
|
162
|
+
// https://developers.google.com/ad-manager/api/beta/filters
|
|
163
|
+
string filter = 4 [(google.api.field_behavior) = OPTIONAL];
|
|
164
|
+
|
|
165
|
+
// Optional. Expression to specify sorting order.
|
|
166
|
+
// See syntax details at
|
|
167
|
+
// https://developers.google.com/ad-manager/api/beta/filters#order
|
|
168
|
+
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
|
|
169
|
+
|
|
170
|
+
// Optional. Number of individual resources to skip while paginating.
|
|
171
|
+
int32 skip = 6 [(google.api.field_behavior) = OPTIONAL];
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Response object for ListAdUnitSizesRequest containing matching AdUnitSizes.
|
|
175
|
+
message ListAdUnitSizesResponse {
|
|
176
|
+
// The AdUnitSizes from the specified network.
|
|
177
|
+
repeated AdUnitSize ad_unit_sizes = 1;
|
|
178
|
+
|
|
179
|
+
// A token, which can be sent as `page_token` to retrieve the next page.
|
|
180
|
+
// If this field is omitted, there are no subsequent pages.
|
|
181
|
+
string next_page_token = 2;
|
|
182
|
+
|
|
183
|
+
// Total number of AdUnitSizes.
|
|
184
|
+
// If a filter was included in the request, this reflects the total number
|
|
185
|
+
// after the filtering is applied.
|
|
186
|
+
//
|
|
187
|
+
// `total_size` will not be calculated in the response unless it has been
|
|
188
|
+
// included in a response field mask. The response field mask can be provided
|
|
189
|
+
// to the method by using the URL parameter `$fields` or `fields`, or by using
|
|
190
|
+
// the HTTP/gRPC header `X-Goog-FieldMask`.
|
|
191
|
+
//
|
|
192
|
+
// For more information, see
|
|
193
|
+
// https://developers.google.com/ad-manager/api/beta/field-masks
|
|
194
|
+
int32 total_size = 3;
|
|
195
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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/protobuf/any.proto";
|
|
20
|
+
|
|
21
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
22
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
23
|
+
option java_multiple_files = true;
|
|
24
|
+
option java_outer_classname = "AdManagerErrorProto";
|
|
25
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
26
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
27
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
28
|
+
|
|
29
|
+
// / AdManagerError contains all the information required for processing a
|
|
30
|
+
// / particular error thrown by the AdManager API.
|
|
31
|
+
// /
|
|
32
|
+
// / At least one AdManagerError should be included in all error messages sent
|
|
33
|
+
// to / the client.
|
|
34
|
+
message AdManagerError {
|
|
35
|
+
// The unique identifying string for this error.
|
|
36
|
+
string error_code = 1;
|
|
37
|
+
|
|
38
|
+
// A publisher appropriate explanation of this error.
|
|
39
|
+
string message = 2;
|
|
40
|
+
|
|
41
|
+
// The field path that triggered this error.
|
|
42
|
+
string field_path = 3;
|
|
43
|
+
|
|
44
|
+
// The value that triggered this error.
|
|
45
|
+
string trigger = 4;
|
|
46
|
+
|
|
47
|
+
// The stack trace that accompanies this error.
|
|
48
|
+
string stack_trace = 5;
|
|
49
|
+
|
|
50
|
+
// A list of messages that carry any additional error details.
|
|
51
|
+
repeated google.protobuf.Any details = 6;
|
|
52
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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/api/field_behavior.proto";
|
|
20
|
+
import "google/api/resource.proto";
|
|
21
|
+
|
|
22
|
+
option csharp_namespace = "Google.Ads.AdManager.V1";
|
|
23
|
+
option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager";
|
|
24
|
+
option java_multiple_files = true;
|
|
25
|
+
option java_outer_classname = "AppliedLabelProto";
|
|
26
|
+
option java_package = "com.google.ads.admanager.v1";
|
|
27
|
+
option php_namespace = "Google\\Ads\\AdManager\\V1";
|
|
28
|
+
option ruby_package = "Google::Ads::AdManager::V1";
|
|
29
|
+
|
|
30
|
+
// Represents a Label that can be applied to an entity.
|
|
31
|
+
message AppliedLabel {
|
|
32
|
+
// Required. The label to be applied.
|
|
33
|
+
// Format: "networks/{network_code}/labels/{label_id}"
|
|
34
|
+
string label = 1 [
|
|
35
|
+
(google.api.field_behavior) = REQUIRED,
|
|
36
|
+
(google.api.resource_reference) = { type: "admanager.googleapis.com/Label" }
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
// Specifies whether or not to negate the effects of the label.
|
|
40
|
+
bool negated = 2;
|
|
41
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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 = "CompanyCreditStatusEnumProto";
|
|
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
|
+
// [CompanyCreditStatus][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus]
|
|
29
|
+
message CompanyCreditStatusEnum {
|
|
30
|
+
// The credit status of a company.
|
|
31
|
+
//
|
|
32
|
+
// Credit statuses specify the credit-worthiness of a company and affect the
|
|
33
|
+
// ad serving of campaigns belonging to the company.
|
|
34
|
+
//
|
|
35
|
+
// In basic settings, only the
|
|
36
|
+
// [ACTIVE][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus.ACTIVE]
|
|
37
|
+
// and
|
|
38
|
+
// [INACTIVE][google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus.INACTIVE]
|
|
39
|
+
// credit statuses are applicable. In advance settings, all credit statuses
|
|
40
|
+
// are applicable.
|
|
41
|
+
enum CompanyCreditStatus {
|
|
42
|
+
// No value specified
|
|
43
|
+
COMPANY_CREDIT_STATUS_UNSPECIFIED = 0;
|
|
44
|
+
|
|
45
|
+
// The company's credit status is active.
|
|
46
|
+
//
|
|
47
|
+
// Line items belonging to the company can serve.
|
|
48
|
+
//
|
|
49
|
+
// This credit status is the default for basic settings and is available in
|
|
50
|
+
// both basic and advance settings.
|
|
51
|
+
ACTIVE = 1;
|
|
52
|
+
|
|
53
|
+
// The company's credit status is inactive.
|
|
54
|
+
//
|
|
55
|
+
// Line items belonging to the company cannot be activated. However, line
|
|
56
|
+
// items that were activated before the credit status changed will remain
|
|
57
|
+
// active. New orders or line items belonging to the company cannot be
|
|
58
|
+
// created.
|
|
59
|
+
//
|
|
60
|
+
// Companies with this credit status will be hidden by default in company
|
|
61
|
+
// search results.
|
|
62
|
+
//
|
|
63
|
+
// This credit status is available in both basic and advance settings.
|
|
64
|
+
INACTIVE = 2;
|
|
65
|
+
|
|
66
|
+
// The company's credit status is on hold.
|
|
67
|
+
//
|
|
68
|
+
// Line items belonging to the company cannot be activated. However, line
|
|
69
|
+
// items that were activated before the credit status changed will remain
|
|
70
|
+
// active. New orders or line items belonging to the company can be
|
|
71
|
+
// created.
|
|
72
|
+
//
|
|
73
|
+
// This credit status is the default in advance settings and is only
|
|
74
|
+
// available in advance settings.
|
|
75
|
+
ON_HOLD = 3;
|
|
76
|
+
|
|
77
|
+
// The company's credit status is stopped.
|
|
78
|
+
//
|
|
79
|
+
// Line items belonging to the company cannot be activated. However, line
|
|
80
|
+
// items that were activated before the credit status changed will remain
|
|
81
|
+
// active. New orders or line items belonging to the company cannot be
|
|
82
|
+
// created.
|
|
83
|
+
//
|
|
84
|
+
// This credit status is only available in advance settings.
|
|
85
|
+
STOP = 4;
|
|
86
|
+
|
|
87
|
+
// The company's credit status is blocked.
|
|
88
|
+
//
|
|
89
|
+
// All active line items belonging to the company will stop serving with
|
|
90
|
+
// immediate effect. Line items belonging to the company cannot be
|
|
91
|
+
// activated, and new orders or line items belonging to the company cannot
|
|
92
|
+
// be created.
|
|
93
|
+
//
|
|
94
|
+
// This credit status is only available in advance settings.
|
|
95
|
+
BLOCKED = 5;
|
|
96
|
+
}
|
|
97
|
+
}
|