line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright 2020, 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
|
|
|
|
|
|
|
# This module provides methods to generate resource names. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use strict; |
19
|
1
|
|
|
1
|
|
880
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
35
|
|
20
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
21
|
|
|
|
|
|
|
use Google::Ads::GoogleAds::Utils::GoogleAdsHelper; |
22
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4615
|
|
23
|
|
|
|
|
|
|
# Returns the accessible_bidding_strategy resource name for the specified components. |
24
|
|
|
|
|
|
|
my ($customer_id, $bidding_strategy_id) = @_; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
0
|
|
my $path_template = |
27
|
|
|
|
|
|
|
'customers/{customer_id}/accessibleBiddingStrategies/{bidding_strategy_id}'; |
28
|
0
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
return expand_path_template($path_template, |
30
|
|
|
|
|
|
|
[$customer_id, $bidding_strategy_id]); |
31
|
0
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
# Returns the account_budget resource name for the specified components. |
34
|
|
|
|
|
|
|
my ($customer_id, $account_budget_id) = @_; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $path_template = |
37
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/accountBudgets/{account_budget_id}'; |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
40
|
|
|
|
|
|
|
[$customer_id, $account_budget_id]); |
41
|
|
|
|
|
|
|
} |
42
|
0
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
# Returns the account_budget_proposal resource name for the specified components. |
44
|
|
|
|
|
|
|
my ($customer_id, $account_budget_proposal_id) = @_; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my $path_template = |
47
|
|
|
|
|
|
|
'customers/{customer_id}/accountBudgetProposals/{account_budget_proposal_id}'; |
48
|
0
|
|
|
0
|
0
|
|
|
49
|
|
|
|
|
|
|
return expand_path_template($path_template, |
50
|
0
|
|
|
|
|
|
[$customer_id, $account_budget_proposal_id]); |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
# Returns the account_link resource name for the specified components. |
54
|
|
|
|
|
|
|
my ($customer_id, $account_link_id) = @_; |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/accountLinks/{account_link_id}'; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $account_link_id]); |
59
|
0
|
|
|
0
|
0
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
0
|
|
|
|
|
|
# Returns the ad resource name for the specified components. |
62
|
|
|
|
|
|
|
my ($customer_id, $ad_id) = @_; |
63
|
0
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/ads/{ad_id}'; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $ad_id]); |
67
|
|
|
|
|
|
|
} |
68
|
0
|
|
|
0
|
0
|
|
|
69
|
|
|
|
|
|
|
# Returns the ad_group resource name for the specified components. |
70
|
0
|
|
|
|
|
|
my ($customer_id, $ad_group_id) = @_; |
71
|
|
|
|
|
|
|
|
72
|
0
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/adGroups/{ad_group_id}'; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $ad_group_id]); |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
0
|
|
|
0
|
0
|
|
# Returns the ad_group_ad resource name for the specified components. |
78
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $ad_id) = @_; |
79
|
0
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
my $path_template = |
81
|
0
|
|
|
|
|
|
'customers/{customer_id}/adGroupAds/{ad_group_id}~{ad_id}'; |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
return expand_path_template($path_template, |
84
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $ad_id]); |
85
|
|
|
|
|
|
|
} |
86
|
0
|
|
|
0
|
0
|
|
|
87
|
|
|
|
|
|
|
# Returns the ad_group_ad_asset_view resource name for the specified components. |
88
|
0
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $ad_id, $asset_id, $field_type) = @_; |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
my $path_template = |
91
|
0
|
|
|
|
|
|
'customers/{customer_id}/adGroupAdAssets/{ad_group_id}~{ad_id}~{asset_id}~{field_type}'; |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
return expand_path_template($path_template, |
94
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $ad_id, $asset_id, $field_type]); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
|
97
|
0
|
|
|
0
|
0
|
|
# Returns the ad_group_ad_label resource name for the specified components. |
98
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $ad_id, $label_id) = @_; |
99
|
0
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
my $path_template = |
101
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupAdLabels/{ad_group_id}~{ad_id}~{label_id}'; |
102
|
0
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
return expand_path_template($path_template, |
104
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $ad_id, $label_id]); |
105
|
|
|
|
|
|
|
} |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
# Returns the ad_group_asset resource name for the specified components. |
108
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $ad_group_id, $asset_id, $field_type) = @_; |
109
|
|
|
|
|
|
|
|
110
|
0
|
|
|
|
|
|
my $path_template = |
111
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupAssets/{ad_group_id}~{asset_id}~{field_type}'; |
112
|
|
|
|
|
|
|
|
113
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
114
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $asset_id, $field_type]); |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
# Returns the ad_group_audience_view resource name for the specified components. |
118
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
119
|
0
|
|
|
0
|
0
|
|
|
120
|
|
|
|
|
|
|
my $path_template = |
121
|
0
|
|
|
|
|
|
'customers/{customer_id}/adGroupAudienceViews/{ad_group_id}~{criterion_id}'; |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
return expand_path_template($path_template, |
124
|
0
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
125
|
|
|
|
|
|
|
} |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
# Returns the ad_group_bid_modifier resource name for the specified components. |
128
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
129
|
|
|
|
|
|
|
|
130
|
0
|
|
|
0
|
0
|
|
my $path_template = |
131
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupBidModifiers/{ad_group_id}~{criterion_id}'; |
132
|
0
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
return expand_path_template($path_template, |
134
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
135
|
0
|
|
|
|
|
|
} |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
# Returns the ad_group_criterion resource name for the specified components. |
138
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
my $path_template = |
141
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/adGroupCriteria/{ad_group_id}~{criterion_id}'; |
142
|
|
|
|
|
|
|
|
143
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
144
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
145
|
|
|
|
|
|
|
} |
146
|
0
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
# Returns the ad_group_criterion_customizer resource name for the specified components. |
148
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id, $customizer_attribute_id) = @_; |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
my $path_template = |
151
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}'; |
152
|
0
|
|
|
0
|
0
|
|
|
153
|
|
|
|
|
|
|
return expand_path_template($path_template, |
154
|
0
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id, $customizer_attribute_id]); |
155
|
|
|
|
|
|
|
} |
156
|
|
|
|
|
|
|
|
157
|
0
|
|
|
|
|
|
# Returns the ad_group_criterion_label resource name for the specified components. |
158
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id, $label_id) = @_; |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
my $path_template = |
161
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupCriterionLabels/{ad_group_id}~{criterion_id}~{label_id}'; |
162
|
|
|
|
|
|
|
|
163
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
164
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id, $label_id]); |
165
|
0
|
|
|
|
|
|
} |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
# Returns the ad_group_criterion_simulation resource name for the specified components. |
168
|
0
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id, $type, $modification_method, |
169
|
|
|
|
|
|
|
$start_date, $end_date) |
170
|
|
|
|
|
|
|
= @_; |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
my $path_template = |
173
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupCriterionSimulations/{ad_group_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}'; |
174
|
0
|
|
|
0
|
0
|
|
|
175
|
|
|
|
|
|
|
return expand_path_template( |
176
|
0
|
|
|
|
|
|
$path_template, |
177
|
|
|
|
|
|
|
[ |
178
|
|
|
|
|
|
|
$customer_id, $ad_group_id, $criterion_id, $type, |
179
|
0
|
|
|
|
|
|
$modification_method, $start_date, $end_date |
180
|
|
|
|
|
|
|
]); |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
# Returns the ad_group_customizer resource name for the specified components. |
184
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $customizer_attribute_id) = @_; |
185
|
0
|
|
|
0
|
0
|
|
|
186
|
|
|
|
|
|
|
my $path_template = |
187
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupCustomizers/{ad_group_id}~{customizer_attribute_id}'; |
188
|
|
|
|
|
|
|
|
189
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
190
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $customizer_attribute_id]); |
191
|
|
|
|
|
|
|
} |
192
|
0
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
# Returns the ad_group_extension_setting resource name for the specified components. |
194
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $extension_type) = @_; |
195
|
|
|
|
|
|
|
|
196
|
|
|
|
|
|
|
my $path_template = |
197
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupExtensionSettings/{ad_group_id}~{extension_type}'; |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
return expand_path_template($path_template, |
200
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $extension_type]); |
201
|
|
|
|
|
|
|
} |
202
|
0
|
|
|
0
|
0
|
|
|
203
|
|
|
|
|
|
|
# Returns the ad_group_feed resource name for the specified components. |
204
|
0
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $feed_id) = @_; |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
my $path_template = |
207
|
0
|
|
|
|
|
|
'customers/{customer_id}/adGroupFeeds/{ad_group_id}~{feed_id}'; |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
return expand_path_template($path_template, |
210
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $feed_id]); |
211
|
|
|
|
|
|
|
} |
212
|
|
|
|
|
|
|
|
213
|
0
|
|
|
0
|
0
|
|
# Returns the ad_group_label resource name for the specified components. |
214
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $label_id) = @_; |
215
|
0
|
|
|
|
|
|
|
216
|
|
|
|
|
|
|
my $path_template = |
217
|
|
|
|
|
|
|
'customers/{customer_id}/adGroupLabels/{ad_group_id}~{label_id}'; |
218
|
0
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
return expand_path_template($path_template, |
220
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $label_id]); |
221
|
|
|
|
|
|
|
} |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
# Returns the ad_group_simulation resource name for the specified components. |
224
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $ad_group_id, $type, $modification_method, $start_date, |
225
|
|
|
|
|
|
|
$end_date) |
226
|
0
|
|
|
|
|
|
= @_; |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
my $path_template = |
229
|
0
|
|
|
|
|
|
'customers/{customer_id}/adGroupSimulations/{ad_group_id}~{type}~{modification_method}~{start_date}~{end_date}'; |
230
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
return expand_path_template( |
232
|
|
|
|
|
|
|
$path_template, |
233
|
|
|
|
|
|
|
[ |
234
|
|
|
|
|
|
|
$customer_id, $ad_group_id, $type, |
235
|
0
|
|
|
0
|
0
|
|
$modification_method, $start_date, $end_date |
236
|
|
|
|
|
|
|
]); |
237
|
0
|
|
|
|
|
|
} |
238
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
# Returns the ad_parameter resource name for the specified components. |
240
|
0
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id, $parameter_index) = @_; |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
my $path_template = |
243
|
|
|
|
|
|
|
'customers/{customer_id}/adParameters/{ad_group_id}~{criterion_id}~{parameter_index}'; |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
return expand_path_template($path_template, |
246
|
0
|
|
|
0
|
0
|
|
[$customer_id, $ad_group_id, $criterion_id, $parameter_index]); |
247
|
|
|
|
|
|
|
} |
248
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
# Returns the ad_schedule_view resource name for the specified components. |
250
|
0
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id) = @_; |
251
|
|
|
|
|
|
|
|
252
|
|
|
|
|
|
|
my $path_template = |
253
|
0
|
|
|
|
|
|
'customers/{customer_id}/adScheduleViews/{campaign_id}~{criterion_id}'; |
254
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
return expand_path_template($path_template, |
256
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $criterion_id]); |
257
|
|
|
|
|
|
|
} |
258
|
|
|
|
|
|
|
|
259
|
|
|
|
|
|
|
# Returns the age_range_view resource name for the specified components. |
260
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
261
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
my $path_template = |
263
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/ageRangeViews/{ad_group_id}~{criterion_id}'; |
264
|
|
|
|
|
|
|
|
265
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
266
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
267
|
|
|
|
|
|
|
} |
268
|
0
|
|
|
|
|
|
|
269
|
|
|
|
|
|
|
# Returns the asset resource name for the specified components. |
270
|
|
|
|
|
|
|
my ($customer_id, $asset_id) = @_; |
271
|
|
|
|
|
|
|
|
272
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/assets/{asset_id}'; |
273
|
|
|
|
|
|
|
|
274
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, [$customer_id, $asset_id]); |
275
|
|
|
|
|
|
|
} |
276
|
0
|
|
|
|
|
|
|
277
|
|
|
|
|
|
|
# Returns the asset_field_type_view resource name for the specified components. |
278
|
|
|
|
|
|
|
my ($customer_id, $field_type) = @_; |
279
|
0
|
|
|
|
|
|
|
280
|
|
|
|
|
|
|
my $path_template = |
281
|
|
|
|
|
|
|
'customers/{customer_id}/assetFieldTypeViews/{field_type}'; |
282
|
|
|
|
|
|
|
|
283
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $field_type]); |
284
|
|
|
|
|
|
|
} |
285
|
0
|
|
|
0
|
0
|
|
|
286
|
|
|
|
|
|
|
# Returns the asset_group resource name for the specified components. |
287
|
0
|
|
|
|
|
|
my ($customer_id, $asset_group_id) = @_; |
288
|
|
|
|
|
|
|
|
289
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/assetGroups/{asset_group_id}'; |
290
|
0
|
|
|
|
|
|
|
291
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $asset_group_id]); |
292
|
|
|
|
|
|
|
} |
293
|
|
|
|
|
|
|
|
294
|
|
|
|
|
|
|
# Returns the asset_group_asset resource name for the specified components. |
295
|
|
|
|
|
|
|
my ($customer_id, $asset_group_id, $asset_id, $field_type) = @_; |
296
|
0
|
|
|
0
|
0
|
|
|
297
|
|
|
|
|
|
|
my $path_template = |
298
|
0
|
|
|
|
|
|
'customers/{customer_id}/assetGroupAssets/{asset_group_id}~{asset_id}~{field_type}'; |
299
|
|
|
|
|
|
|
|
300
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
301
|
|
|
|
|
|
|
[$customer_id, $asset_group_id, $asset_id, $field_type]); |
302
|
|
|
|
|
|
|
} |
303
|
|
|
|
|
|
|
|
304
|
|
|
|
|
|
|
# Returns the asset_group_listing_group_filter resource name for the specified components. |
305
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $asset_group_id, $listing_group_filter_id) = @_; |
306
|
|
|
|
|
|
|
|
307
|
0
|
|
|
|
|
|
my $path_template = |
308
|
|
|
|
|
|
|
'customers/{customer_id}/assetGroupListingGroupFilters/{asset_group_id}~{listing_group_filter_id}'; |
309
|
|
|
|
|
|
|
|
310
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
311
|
|
|
|
|
|
|
[$customer_id, $asset_group_id, $listing_group_filter_id]); |
312
|
|
|
|
|
|
|
} |
313
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
# Returns the asset_group_product_group_view resource name for the specified components. |
315
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $asset_group_id, $listing_group_filter_id) = @_; |
316
|
|
|
|
|
|
|
|
317
|
0
|
|
|
|
|
|
my $path_template = |
318
|
|
|
|
|
|
|
'customers/{customer_id}/assetGroupProductGroupViews/{asset_group_id}~{listing_group_filter_id}'; |
319
|
0
|
|
|
|
|
|
|
320
|
|
|
|
|
|
|
return expand_path_template($path_template, |
321
|
|
|
|
|
|
|
[$customer_id, $asset_group_id, $listing_group_filter_id]); |
322
|
|
|
|
|
|
|
} |
323
|
|
|
|
|
|
|
|
324
|
0
|
|
|
0
|
0
|
|
# Returns the asset_set resource name for the specified components. |
325
|
|
|
|
|
|
|
my ($customer_id, $asset_set_id) = @_; |
326
|
0
|
|
|
|
|
|
|
327
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/assetSets/{asset_set_id}'; |
328
|
|
|
|
|
|
|
|
329
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $asset_set_id]); |
330
|
|
|
|
|
|
|
} |
331
|
|
|
|
|
|
|
|
332
|
|
|
|
|
|
|
# Returns the asset_set_asset resource name for the specified components. |
333
|
|
|
|
|
|
|
my ($customer_id, $asset_set_id, $asset_id) = @_; |
334
|
|
|
|
|
|
|
|
335
|
0
|
|
|
0
|
0
|
|
my $path_template = |
336
|
|
|
|
|
|
|
'customers/{customer_id}/assetSetAssets/{asset_set_id}~{asset_id}'; |
337
|
0
|
|
|
|
|
|
|
338
|
|
|
|
|
|
|
return expand_path_template($path_template, |
339
|
|
|
|
|
|
|
[$customer_id, $asset_set_id, $asset_id]); |
340
|
0
|
|
|
|
|
|
} |
341
|
|
|
|
|
|
|
|
342
|
|
|
|
|
|
|
# Returns the batch_job resource name for the specified components. |
343
|
|
|
|
|
|
|
my ($customer_id, $batch_job_id) = @_; |
344
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/batchJobs/{batch_job_id}'; |
346
|
0
|
|
|
0
|
0
|
|
|
347
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $batch_job_id]); |
348
|
0
|
|
|
|
|
|
} |
349
|
|
|
|
|
|
|
|
350
|
|
|
|
|
|
|
# Returns the bidding_data_exclusion resource name for the specified components. |
351
|
0
|
|
|
|
|
|
my ($customer_id, $data_exclusion_id) = @_; |
352
|
|
|
|
|
|
|
|
353
|
|
|
|
|
|
|
my $path_template = |
354
|
|
|
|
|
|
|
'customers/{customer_id}/biddingDataExclusions/{data_exclusion_id}'; |
355
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
return expand_path_template($path_template, |
357
|
0
|
|
|
0
|
0
|
|
[$customer_id, $data_exclusion_id]); |
358
|
|
|
|
|
|
|
} |
359
|
0
|
|
|
|
|
|
|
360
|
|
|
|
|
|
|
# Returns the bidding_seasonality_adjustment resource name for the specified components. |
361
|
0
|
|
|
|
|
|
my ($customer_id, $seasonality_adjustment_id) = @_; |
362
|
|
|
|
|
|
|
|
363
|
|
|
|
|
|
|
my $path_template = |
364
|
|
|
|
|
|
|
'customers/{customer_id}/biddingSeasonalityAdjustments/{seasonality_adjustment_id}'; |
365
|
|
|
|
|
|
|
|
366
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
367
|
|
|
|
|
|
|
[$customer_id, $seasonality_adjustment_id]); |
368
|
0
|
|
|
|
|
|
} |
369
|
|
|
|
|
|
|
|
370
|
|
|
|
|
|
|
# Returns the bidding_strategy resource name for the specified components. |
371
|
0
|
|
|
|
|
|
my ($customer_id, $bidding_strategy_id) = @_; |
372
|
|
|
|
|
|
|
|
373
|
|
|
|
|
|
|
my $path_template = |
374
|
|
|
|
|
|
|
'customers/{customer_id}/biddingStrategies/{bidding_strategy_id}'; |
375
|
|
|
|
|
|
|
|
376
|
|
|
|
|
|
|
return expand_path_template($path_template, |
377
|
0
|
|
|
0
|
0
|
|
[$customer_id, $bidding_strategy_id]); |
378
|
|
|
|
|
|
|
} |
379
|
0
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
# Returns the bidding_strategy_simulation resource name for the specified components. |
381
|
0
|
|
|
|
|
|
my ($customer_id, $bidding_strategy_id, $type, $modification_method, |
382
|
|
|
|
|
|
|
$start_date, $end_date) |
383
|
|
|
|
|
|
|
= @_; |
384
|
|
|
|
|
|
|
|
385
|
|
|
|
|
|
|
my $path_template = |
386
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/biddingStrategySimulations/{bidding_strategy_id}~{type}~{modification_method}~{start_date}~{end_date}'; |
387
|
|
|
|
|
|
|
|
388
|
0
|
|
|
|
|
|
return expand_path_template( |
389
|
|
|
|
|
|
|
$path_template, |
390
|
|
|
|
|
|
|
[ |
391
|
0
|
|
|
|
|
|
$customer_id, $bidding_strategy_id, $type, |
392
|
|
|
|
|
|
|
$modification_method, $start_date, $end_date |
393
|
|
|
|
|
|
|
]); |
394
|
|
|
|
|
|
|
} |
395
|
|
|
|
|
|
|
|
396
|
|
|
|
|
|
|
# Returns the billing_setup resource name for the specified components. |
397
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $billing_setup_id) = @_; |
398
|
|
|
|
|
|
|
|
399
|
0
|
|
|
|
|
|
my $path_template = |
400
|
|
|
|
|
|
|
'customers/{customer_id}/billingSetups/{billing_setup_id}'; |
401
|
|
|
|
|
|
|
|
402
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
403
|
|
|
|
|
|
|
[$customer_id, $billing_setup_id]); |
404
|
|
|
|
|
|
|
} |
405
|
|
|
|
|
|
|
|
406
|
|
|
|
|
|
|
# Returns the call_view resource name for the specified components. |
407
|
|
|
|
|
|
|
my ($customer_id, $call_detail_id) = @_; |
408
|
0
|
|
|
0
|
0
|
|
|
409
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/callViews/{call_detail_id}'; |
410
|
0
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $call_detail_id]); |
412
|
|
|
|
|
|
|
} |
413
|
0
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
# Returns the campaign resource name for the specified components. |
415
|
|
|
|
|
|
|
my ($customer_id, $campaign_id) = @_; |
416
|
|
|
|
|
|
|
|
417
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/campaigns/{campaign_id}'; |
418
|
|
|
|
|
|
|
|
419
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, [$customer_id, $campaign_id]); |
420
|
|
|
|
|
|
|
} |
421
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
# Returns the campaign_asset resource name for the specified components. |
423
|
0
|
|
|
|
|
|
my ($customer_id, $campaign_id, $asset_id, $field_type) = @_; |
424
|
|
|
|
|
|
|
|
425
|
|
|
|
|
|
|
my $path_template = |
426
|
0
|
|
|
|
|
|
'customers/{customer_id}/campaignAssets/{campaign_id}~{asset_id}~{field_type}'; |
427
|
|
|
|
|
|
|
|
428
|
|
|
|
|
|
|
return expand_path_template($path_template, |
429
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $asset_id, $field_type]); |
430
|
|
|
|
|
|
|
} |
431
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
# Returns the campaign_asset_set resource name for the specified components. |
433
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $asset_set_id) = @_; |
434
|
|
|
|
|
|
|
|
435
|
|
|
|
|
|
|
my $path_template = |
436
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/campaignAssetSets/{campaign_id}~{asset_set_id}'; |
437
|
|
|
|
|
|
|
|
438
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
439
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $asset_set_id]); |
440
|
|
|
|
|
|
|
} |
441
|
0
|
|
|
|
|
|
|
442
|
|
|
|
|
|
|
# Returns the campaign_audience_view resource name for the specified components. |
443
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id) = @_; |
444
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
my $path_template = |
446
|
|
|
|
|
|
|
'customers/{customer_id}/campaignAudienceViews/{campaign_id}~{criterion_id}'; |
447
|
0
|
|
|
0
|
0
|
|
|
448
|
|
|
|
|
|
|
return expand_path_template($path_template, |
449
|
0
|
|
|
|
|
|
[$customer_id, $campaign_id, $criterion_id]); |
450
|
|
|
|
|
|
|
} |
451
|
0
|
|
|
|
|
|
|
452
|
|
|
|
|
|
|
# Returns the campaign_bid_modifier resource name for the specified components. |
453
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id) = @_; |
454
|
|
|
|
|
|
|
|
455
|
|
|
|
|
|
|
my $path_template = |
456
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/campaignBidModifiers/{campaign_id}~{criterion_id}'; |
457
|
|
|
|
|
|
|
|
458
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
459
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $criterion_id]); |
460
|
0
|
|
|
|
|
|
} |
461
|
|
|
|
|
|
|
|
462
|
|
|
|
|
|
|
# Returns the campaign_budget resource name for the specified components. |
463
|
|
|
|
|
|
|
my ($customer_id, $campaign_budget_id) = @_; |
464
|
|
|
|
|
|
|
|
465
|
0
|
|
|
0
|
0
|
|
my $path_template = |
466
|
|
|
|
|
|
|
'customers/{customer_id}/campaignBudgets/{campaign_budget_id}'; |
467
|
0
|
|
|
|
|
|
|
468
|
|
|
|
|
|
|
return expand_path_template($path_template, |
469
|
|
|
|
|
|
|
[$customer_id, $campaign_budget_id]); |
470
|
0
|
|
|
|
|
|
} |
471
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
# Returns the campaign_conversion_goal resource name for the specified components. |
473
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $category, $origin) = @_; |
474
|
|
|
|
|
|
|
|
475
|
|
|
|
|
|
|
my $path_template = |
476
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/campaignConversionGoals/{campaign_id}~{category}~{origin}'; |
477
|
|
|
|
|
|
|
|
478
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
479
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $category, $origin]); |
480
|
|
|
|
|
|
|
} |
481
|
0
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
# Returns the campaign_criterion resource name for the specified components. |
483
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id) = @_; |
484
|
|
|
|
|
|
|
|
485
|
|
|
|
|
|
|
my $path_template = |
486
|
|
|
|
|
|
|
'customers/{customer_id}/campaignCriteria/{campaign_id}~{criterion_id}'; |
487
|
0
|
|
|
0
|
0
|
|
|
488
|
|
|
|
|
|
|
return expand_path_template($path_template, |
489
|
0
|
|
|
|
|
|
[$customer_id, $campaign_id, $criterion_id]); |
490
|
|
|
|
|
|
|
} |
491
|
|
|
|
|
|
|
|
492
|
0
|
|
|
|
|
|
# Returns the campaign_criterion_simulation resource name for the specified components. |
493
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id, $type, $modification_method, |
494
|
|
|
|
|
|
|
$start_date, $end_date) |
495
|
|
|
|
|
|
|
= @_; |
496
|
|
|
|
|
|
|
|
497
|
|
|
|
|
|
|
my $path_template = |
498
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/campaignCriterionSimulations/{campaign_id}~{criterion_id}~{type}~{modification_method}~{start_date}~{end_date}'; |
499
|
|
|
|
|
|
|
|
500
|
0
|
|
|
|
|
|
return expand_path_template( |
501
|
|
|
|
|
|
|
$path_template, |
502
|
|
|
|
|
|
|
[ |
503
|
0
|
|
|
|
|
|
$customer_id, $campaign_id, $criterion_id, $type, |
504
|
|
|
|
|
|
|
$modification_method, $start_date, $end_date |
505
|
|
|
|
|
|
|
]); |
506
|
|
|
|
|
|
|
} |
507
|
|
|
|
|
|
|
|
508
|
|
|
|
|
|
|
# Returns the campaign_customizer resource name for the specified components. |
509
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $campaign_id, $customizer_attribute_id) = @_; |
510
|
|
|
|
|
|
|
|
511
|
0
|
|
|
|
|
|
my $path_template = |
512
|
|
|
|
|
|
|
'customers/{customer_id}/campaignCustomizers/{campaign_id}~{customizer_attribute_id}'; |
513
|
|
|
|
|
|
|
|
514
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
515
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $customizer_attribute_id]); |
516
|
|
|
|
|
|
|
} |
517
|
|
|
|
|
|
|
|
518
|
|
|
|
|
|
|
# Returns the campaign_draft resource name for the specified components. |
519
|
|
|
|
|
|
|
my ($customer_id, $base_campaign_id, $draft_id) = @_; |
520
|
0
|
|
|
0
|
0
|
|
|
521
|
|
|
|
|
|
|
my $path_template = |
522
|
0
|
|
|
|
|
|
'customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}'; |
523
|
|
|
|
|
|
|
|
524
|
|
|
|
|
|
|
return expand_path_template($path_template, |
525
|
0
|
|
|
|
|
|
[$customer_id, $base_campaign_id, $draft_id]); |
526
|
|
|
|
|
|
|
} |
527
|
|
|
|
|
|
|
|
528
|
|
|
|
|
|
|
# Returns the campaign_experiment resource name for the specified components. |
529
|
|
|
|
|
|
|
my ($customer_id, $campaign_experiment_id) = @_; |
530
|
|
|
|
|
|
|
|
531
|
0
|
|
|
0
|
0
|
|
my $path_template = |
532
|
|
|
|
|
|
|
'customers/{customer_id}/campaignExperiments/{campaign_experiment_id}'; |
533
|
0
|
|
|
|
|
|
|
534
|
|
|
|
|
|
|
return expand_path_template($path_template, |
535
|
|
|
|
|
|
|
[$customer_id, $campaign_experiment_id]); |
536
|
0
|
|
|
|
|
|
} |
537
|
|
|
|
|
|
|
|
538
|
|
|
|
|
|
|
# Returns the campaign_extension_setting resource name for the specified components. |
539
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $extension_type) = @_; |
540
|
|
|
|
|
|
|
|
541
|
|
|
|
|
|
|
my $path_template = |
542
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/campaignExtensionSettings/{campaign_id}~{extension_type}'; |
543
|
|
|
|
|
|
|
|
544
|
|
|
|
|
|
|
return expand_path_template($path_template, |
545
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $extension_type]); |
546
|
0
|
|
|
|
|
|
} |
547
|
|
|
|
|
|
|
|
548
|
|
|
|
|
|
|
# Returns the campaign_feed resource name for the specified components. |
549
|
0
|
|
|
|
|
|
my ($customer_id, $campaign_id, $feed_id) = @_; |
550
|
|
|
|
|
|
|
|
551
|
|
|
|
|
|
|
my $path_template = |
552
|
|
|
|
|
|
|
'customers/{customer_id}/campaignFeeds/{campaign_id}~{feed_id}'; |
553
|
|
|
|
|
|
|
|
554
|
|
|
|
|
|
|
return expand_path_template($path_template, |
555
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $feed_id]); |
556
|
|
|
|
|
|
|
} |
557
|
|
|
|
|
|
|
|
558
|
|
|
|
|
|
|
# Returns the campaign_label resource name for the specified components. |
559
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $campaign_id, $label_id) = @_; |
560
|
|
|
|
|
|
|
|
561
|
0
|
|
|
|
|
|
my $path_template = |
562
|
|
|
|
|
|
|
'customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}'; |
563
|
|
|
|
|
|
|
|
564
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
565
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $label_id]); |
566
|
|
|
|
|
|
|
} |
567
|
|
|
|
|
|
|
|
568
|
|
|
|
|
|
|
# Returns the campaign_shared_set resource name for the specified components. |
569
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $shared_set_id) = @_; |
570
|
0
|
|
|
0
|
0
|
|
|
571
|
|
|
|
|
|
|
my $path_template = |
572
|
0
|
|
|
|
|
|
'customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}'; |
573
|
|
|
|
|
|
|
|
574
|
|
|
|
|
|
|
return expand_path_template($path_template, |
575
|
0
|
|
|
|
|
|
[$customer_id, $campaign_id, $shared_set_id]); |
576
|
|
|
|
|
|
|
} |
577
|
|
|
|
|
|
|
|
578
|
|
|
|
|
|
|
# Returns the campaign_simulation resource name for the specified components. |
579
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $type, $modification_method, $start_date, |
580
|
|
|
|
|
|
|
$end_date) |
581
|
0
|
|
|
0
|
0
|
|
= @_; |
582
|
|
|
|
|
|
|
|
583
|
0
|
|
|
|
|
|
my $path_template = |
584
|
|
|
|
|
|
|
'customers/{customer_id}/campaignSimulations/{campaign_id}~{type}~{modification_method}~{start_date}~{end_date}'; |
585
|
|
|
|
|
|
|
|
586
|
0
|
|
|
|
|
|
return expand_path_template( |
587
|
|
|
|
|
|
|
$path_template, |
588
|
|
|
|
|
|
|
[ |
589
|
|
|
|
|
|
|
$customer_id, $campaign_id, $type, |
590
|
|
|
|
|
|
|
$modification_method, $start_date, $end_date |
591
|
|
|
|
|
|
|
]); |
592
|
0
|
|
|
0
|
0
|
|
} |
593
|
|
|
|
|
|
|
|
594
|
0
|
|
|
|
|
|
# Returns the carrier_constant resource name for the specified components. |
595
|
|
|
|
|
|
|
my ($criterion_id) = @_; |
596
|
|
|
|
|
|
|
|
597
|
0
|
|
|
|
|
|
my $path_template = 'carrierConstants/{criterion_id}'; |
598
|
|
|
|
|
|
|
|
599
|
|
|
|
|
|
|
return expand_path_template($path_template, [$criterion_id]); |
600
|
|
|
|
|
|
|
} |
601
|
|
|
|
|
|
|
|
602
|
|
|
|
|
|
|
# Returns the change_event resource name for the specified components. |
603
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $timestamp_micros, $command_index, $mutate_index) = @_; |
604
|
|
|
|
|
|
|
|
605
|
0
|
|
|
|
|
|
my $path_template = |
606
|
|
|
|
|
|
|
'customers/{customer_id}/changeEvents/{timestamp_micros}~{command_index}~{mutate_index}'; |
607
|
|
|
|
|
|
|
|
608
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
609
|
|
|
|
|
|
|
[$customer_id, $timestamp_micros, $command_index, $mutate_index]); |
610
|
|
|
|
|
|
|
} |
611
|
|
|
|
|
|
|
|
612
|
|
|
|
|
|
|
# Returns the change_status resource name for the specified components. |
613
|
|
|
|
|
|
|
my ($customer_id, $change_status_id) = @_; |
614
|
0
|
|
|
0
|
0
|
|
|
615
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/changeStatus/{change_status_id}'; |
616
|
0
|
|
|
|
|
|
|
617
|
|
|
|
|
|
|
return expand_path_template($path_template, |
618
|
|
|
|
|
|
|
[$customer_id, $change_status_id]); |
619
|
0
|
|
|
|
|
|
} |
620
|
|
|
|
|
|
|
|
621
|
|
|
|
|
|
|
# Returns the click_view resource name for the specified components. |
622
|
|
|
|
|
|
|
my ($customer_id, $date_yyyy_MM_dd, $gclid) = @_; |
623
|
|
|
|
|
|
|
|
624
|
|
|
|
|
|
|
my $path_template = |
625
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/clickViews/{date_yyyy_MM_dd}~{gclid}'; |
626
|
|
|
|
|
|
|
|
627
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
628
|
|
|
|
|
|
|
[$customer_id, $date_yyyy_MM_dd, $gclid]); |
629
|
|
|
|
|
|
|
} |
630
|
0
|
|
|
|
|
|
|
631
|
|
|
|
|
|
|
# Returns the combined_audience resource name for the specified components. |
632
|
|
|
|
|
|
|
my ($customer_id, $combined_audience_id) = @_; |
633
|
|
|
|
|
|
|
|
634
|
|
|
|
|
|
|
my $path_template = |
635
|
|
|
|
|
|
|
'customers/{customer_id}/combinedAudience/{combined_audience_id}'; |
636
|
0
|
|
|
0
|
0
|
|
|
637
|
|
|
|
|
|
|
return expand_path_template($path_template, |
638
|
|
|
|
|
|
|
[$customer_id, $combined_audience_id]); |
639
|
|
|
|
|
|
|
} |
640
|
0
|
|
|
|
|
|
|
641
|
|
|
|
|
|
|
# Returns the conversion_action resource name for the specified components. |
642
|
|
|
|
|
|
|
my ($customer_id, $conversion_action_id) = @_; |
643
|
0
|
|
|
|
|
|
|
644
|
|
|
|
|
|
|
my $path_template = |
645
|
|
|
|
|
|
|
'customers/{customer_id}/conversionActions/{conversion_action_id}'; |
646
|
|
|
|
|
|
|
|
647
|
|
|
|
|
|
|
return expand_path_template($path_template, |
648
|
|
|
|
|
|
|
[$customer_id, $conversion_action_id]); |
649
|
|
|
|
|
|
|
} |
650
|
|
|
|
|
|
|
|
651
|
|
|
|
|
|
|
# Returns the conversion_custom_variable resource name for the specified components. |
652
|
|
|
|
|
|
|
my ($customer_id, $conversion_custom_variable_id) = @_; |
653
|
0
|
|
|
0
|
0
|
|
|
654
|
|
|
|
|
|
|
my $path_template = |
655
|
0
|
|
|
|
|
|
'customers/{customer_id}/conversionCustomVariables/{conversion_custom_variable_id}'; |
656
|
|
|
|
|
|
|
|
657
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
658
|
|
|
|
|
|
|
[$customer_id, $conversion_custom_variable_id]); |
659
|
|
|
|
|
|
|
} |
660
|
|
|
|
|
|
|
|
661
|
|
|
|
|
|
|
# Returns the conversion_goal_campaign_config resource name for the specified components. |
662
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $campaign_id) = @_; |
663
|
|
|
|
|
|
|
|
664
|
0
|
|
|
|
|
|
my $path_template = |
665
|
|
|
|
|
|
|
'customers/{customer_id}/conversionGoalCampaignConfigs/{campaign_id}'; |
666
|
|
|
|
|
|
|
|
667
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $campaign_id]); |
668
|
|
|
|
|
|
|
} |
669
|
|
|
|
|
|
|
|
670
|
|
|
|
|
|
|
# Returns the conversion_value_rule resource name for the specified components. |
671
|
|
|
|
|
|
|
my ($customer_id, $conversion_value_rule_id) = @_; |
672
|
|
|
|
|
|
|
|
673
|
0
|
|
|
0
|
0
|
|
my $path_template = |
674
|
|
|
|
|
|
|
'customers/{customer_id}/conversionValueRules/{conversion_value_rule_id}'; |
675
|
0
|
|
|
|
|
|
|
676
|
|
|
|
|
|
|
return expand_path_template($path_template, |
677
|
0
|
|
|
|
|
|
[$customer_id, $conversion_value_rule_id]); |
678
|
|
|
|
|
|
|
} |
679
|
|
|
|
|
|
|
|
680
|
|
|
|
|
|
|
# Returns the conversion_value_rule_set resource name for the specified components. |
681
|
|
|
|
|
|
|
my ($customer_id, $conversion_value_rule_set_id) = @_; |
682
|
|
|
|
|
|
|
|
683
|
0
|
|
|
0
|
0
|
|
my $path_template = |
684
|
|
|
|
|
|
|
'customers/{customer_id}/conversionValueRuleSets/{conversion_value_rule_set_id}'; |
685
|
0
|
|
|
|
|
|
|
686
|
|
|
|
|
|
|
return expand_path_template($path_template, |
687
|
|
|
|
|
|
|
[$customer_id, $conversion_value_rule_set_id]); |
688
|
0
|
|
|
|
|
|
} |
689
|
|
|
|
|
|
|
|
690
|
|
|
|
|
|
|
# Returns the currency_constant resource name for the specified components. |
691
|
|
|
|
|
|
|
my ($code) = @_; |
692
|
|
|
|
|
|
|
|
693
|
|
|
|
|
|
|
my $path_template = 'currencyConstants/{code}'; |
694
|
0
|
|
|
0
|
0
|
|
|
695
|
|
|
|
|
|
|
return expand_path_template($path_template, [$code]); |
696
|
0
|
|
|
|
|
|
} |
697
|
|
|
|
|
|
|
|
698
|
|
|
|
|
|
|
# Returns the custom_audience resource name for the specified components. |
699
|
0
|
|
|
|
|
|
my ($customer_id, $custom_audience_id) = @_; |
700
|
|
|
|
|
|
|
|
701
|
|
|
|
|
|
|
my $path_template = |
702
|
|
|
|
|
|
|
'customers/{customer_id}/customAudiences/{custom_audience_id}'; |
703
|
|
|
|
|
|
|
|
704
|
|
|
|
|
|
|
return expand_path_template($path_template, |
705
|
0
|
|
|
0
|
0
|
|
[$customer_id, $custom_audience_id]); |
706
|
|
|
|
|
|
|
} |
707
|
0
|
|
|
|
|
|
|
708
|
|
|
|
|
|
|
# Returns the custom_conversion_goal resource name for the specified components. |
709
|
|
|
|
|
|
|
my ($customer_id, $goal_id) = @_; |
710
|
0
|
|
|
|
|
|
|
711
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/customConversionGoals/{goal_id}'; |
712
|
|
|
|
|
|
|
|
713
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $goal_id]); |
714
|
|
|
|
|
|
|
} |
715
|
|
|
|
|
|
|
|
716
|
0
|
|
|
0
|
0
|
|
# Returns the custom_interest resource name for the specified components. |
717
|
|
|
|
|
|
|
my ($customer_id, $custom_interest_id) = @_; |
718
|
0
|
|
|
|
|
|
|
719
|
|
|
|
|
|
|
my $path_template = |
720
|
|
|
|
|
|
|
'customers/{customer_id}/customInterests/{custom_interest_id}'; |
721
|
0
|
|
|
|
|
|
|
722
|
|
|
|
|
|
|
return expand_path_template($path_template, |
723
|
|
|
|
|
|
|
[$customer_id, $custom_interest_id]); |
724
|
|
|
|
|
|
|
} |
725
|
|
|
|
|
|
|
|
726
|
|
|
|
|
|
|
# Returns the customer resource name for the specified components. |
727
|
0
|
|
|
0
|
0
|
|
my ($customer_id) = @_; |
728
|
|
|
|
|
|
|
|
729
|
0
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}'; |
730
|
|
|
|
|
|
|
|
731
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id]); |
732
|
0
|
|
|
|
|
|
} |
733
|
|
|
|
|
|
|
|
734
|
|
|
|
|
|
|
# Returns the customer_asset resource name for the specified components. |
735
|
|
|
|
|
|
|
my ($customer_id, $asset_id, $field_type) = @_; |
736
|
|
|
|
|
|
|
|
737
|
0
|
|
|
0
|
0
|
|
my $path_template = |
738
|
|
|
|
|
|
|
'customers/{customer_id}/customerAssets/{asset_id}~{field_type}'; |
739
|
0
|
|
|
|
|
|
|
740
|
|
|
|
|
|
|
return expand_path_template($path_template, |
741
|
|
|
|
|
|
|
[$customer_id, $asset_id, $field_type]); |
742
|
0
|
|
|
|
|
|
} |
743
|
|
|
|
|
|
|
|
744
|
|
|
|
|
|
|
# Returns the customer_client resource name for the specified components. |
745
|
|
|
|
|
|
|
my ($customer_id, $client_customer_id) = @_; |
746
|
|
|
|
|
|
|
|
747
|
|
|
|
|
|
|
my $path_template = |
748
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/customerClients/{client_customer_id}'; |
749
|
|
|
|
|
|
|
|
750
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
751
|
|
|
|
|
|
|
[$customer_id, $client_customer_id]); |
752
|
|
|
|
|
|
|
} |
753
|
0
|
|
|
|
|
|
|
754
|
|
|
|
|
|
|
# Returns the customer_client_link resource name for the specified components. |
755
|
|
|
|
|
|
|
my ($customer_id, $client_customer_id, $manager_link_id) = @_; |
756
|
|
|
|
|
|
|
|
757
|
|
|
|
|
|
|
my $path_template = |
758
|
|
|
|
|
|
|
'customers/{customer_id}/customerClientLinks/{client_customer_id}~{manager_link_id}'; |
759
|
0
|
|
|
0
|
0
|
|
|
760
|
|
|
|
|
|
|
return expand_path_template($path_template, |
761
|
0
|
|
|
|
|
|
[$customer_id, $client_customer_id, $manager_link_id]); |
762
|
|
|
|
|
|
|
} |
763
|
0
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
# Returns the customer_conversion_goal resource name for the specified components. |
765
|
|
|
|
|
|
|
my ($customer_id, $category, $origin) = @_; |
766
|
|
|
|
|
|
|
|
767
|
|
|
|
|
|
|
my $path_template = |
768
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/customerConversionGoals/{category}~{origin}'; |
769
|
|
|
|
|
|
|
|
770
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
771
|
|
|
|
|
|
|
[$customer_id, $category, $origin]); |
772
|
|
|
|
|
|
|
} |
773
|
0
|
|
|
|
|
|
|
774
|
|
|
|
|
|
|
# Returns the customer_customizer resource name for the specified components. |
775
|
|
|
|
|
|
|
my ($customer_id, $customizer_attribute_id) = @_; |
776
|
|
|
|
|
|
|
|
777
|
|
|
|
|
|
|
my $path_template = |
778
|
|
|
|
|
|
|
'customers/{customer_id}/customerCustomizers/{customizer_attribute_id}'; |
779
|
0
|
|
|
0
|
0
|
|
|
780
|
|
|
|
|
|
|
return expand_path_template($path_template, |
781
|
0
|
|
|
|
|
|
[$customer_id, $customizer_attribute_id]); |
782
|
|
|
|
|
|
|
} |
783
|
0
|
|
|
|
|
|
|
784
|
|
|
|
|
|
|
# Returns the customer_extension_setting resource name for the specified components. |
785
|
|
|
|
|
|
|
my ($customer_id, $extension_type) = @_; |
786
|
|
|
|
|
|
|
|
787
|
|
|
|
|
|
|
my $path_template = |
788
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/customerExtensionSettings/{extension_type}'; |
789
|
|
|
|
|
|
|
|
790
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $extension_type]); |
791
|
|
|
|
|
|
|
} |
792
|
|
|
|
|
|
|
|
793
|
0
|
|
|
|
|
|
# Returns the customer_feed resource name for the specified components. |
794
|
|
|
|
|
|
|
my ($customer_id, $feed_id) = @_; |
795
|
|
|
|
|
|
|
|
796
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/customerFeeds/{feed_id}'; |
797
|
|
|
|
|
|
|
|
798
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $feed_id]); |
799
|
0
|
|
|
0
|
0
|
|
} |
800
|
|
|
|
|
|
|
|
801
|
0
|
|
|
|
|
|
# Returns the customer_label resource name for the specified components. |
802
|
|
|
|
|
|
|
my ($customer_id, $label_id) = @_; |
803
|
0
|
|
|
|
|
|
|
804
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/customerLabels/{label_id}'; |
805
|
|
|
|
|
|
|
|
806
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $label_id]); |
807
|
|
|
|
|
|
|
} |
808
|
0
|
|
|
0
|
0
|
|
|
809
|
|
|
|
|
|
|
# Returns the customer_manager_link resource name for the specified components. |
810
|
0
|
|
|
|
|
|
my ($customer_id, $manager_customer_id, $manager_link_id) = @_; |
811
|
|
|
|
|
|
|
|
812
|
|
|
|
|
|
|
my $path_template = |
813
|
0
|
|
|
|
|
|
'customers/{customer_id}/customerManagerLinks/{manager_customer_id}~{manager_link_id}'; |
814
|
|
|
|
|
|
|
|
815
|
|
|
|
|
|
|
return expand_path_template($path_template, |
816
|
|
|
|
|
|
|
[$customer_id, $manager_customer_id, $manager_link_id]); |
817
|
|
|
|
|
|
|
} |
818
|
|
|
|
|
|
|
|
819
|
0
|
|
|
0
|
0
|
|
# Returns the customer_negative_criterion resource name for the specified components. |
820
|
|
|
|
|
|
|
my ($customer_id, $criterion_id) = @_; |
821
|
0
|
|
|
|
|
|
|
822
|
|
|
|
|
|
|
my $path_template = |
823
|
|
|
|
|
|
|
'customers/{customer_id}/customerNegativeCriteria/{criterion_id}'; |
824
|
0
|
|
|
|
|
|
|
825
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $criterion_id]); |
826
|
|
|
|
|
|
|
} |
827
|
|
|
|
|
|
|
|
828
|
|
|
|
|
|
|
# Returns the customer_user_access resource name for the specified components. |
829
|
|
|
|
|
|
|
my ($customer_id, $user_id) = @_; |
830
|
0
|
|
|
0
|
0
|
|
|
831
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/customerUserAccesses/{user_id}'; |
832
|
0
|
|
|
|
|
|
|
833
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $user_id]); |
834
|
|
|
|
|
|
|
} |
835
|
0
|
|
|
|
|
|
|
836
|
|
|
|
|
|
|
# Returns the customer_user_access_invitation resource name for the specified components. |
837
|
|
|
|
|
|
|
my ($customer_id, $invitation_id) = @_; |
838
|
|
|
|
|
|
|
|
839
|
|
|
|
|
|
|
my $path_template = |
840
|
|
|
|
|
|
|
'customers/{customer_id}/customerUserAccessInvitations/{invitation_id}'; |
841
|
0
|
|
|
0
|
0
|
|
|
842
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $invitation_id]); |
843
|
0
|
|
|
|
|
|
} |
844
|
|
|
|
|
|
|
|
845
|
|
|
|
|
|
|
# Returns the customizer_attribute resource name for the specified components. |
846
|
0
|
|
|
|
|
|
my ($customer_id, $customizer_attribute_id) = @_; |
847
|
|
|
|
|
|
|
|
848
|
|
|
|
|
|
|
my $path_template = |
849
|
|
|
|
|
|
|
'customers/{customer_id}/customizerAttributes/{customizer_attribute_id}'; |
850
|
|
|
|
|
|
|
|
851
|
|
|
|
|
|
|
return expand_path_template($path_template, |
852
|
0
|
|
|
0
|
0
|
|
[$customer_id, $customizer_attribute_id]); |
853
|
|
|
|
|
|
|
} |
854
|
0
|
|
|
|
|
|
|
855
|
|
|
|
|
|
|
# Returns the detail_placement_view resource name for the specified components. |
856
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $base64_placement) = @_; |
857
|
0
|
|
|
|
|
|
|
858
|
|
|
|
|
|
|
my $path_template = |
859
|
|
|
|
|
|
|
'customers/{customer_id}/detailPlacementViews/{ad_group_id}~{base64_placement}'; |
860
|
|
|
|
|
|
|
|
861
|
|
|
|
|
|
|
return expand_path_template($path_template, |
862
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $base64_placement]); |
863
|
0
|
|
|
0
|
0
|
|
} |
864
|
|
|
|
|
|
|
|
865
|
0
|
|
|
|
|
|
# Returns the detailed_demographic resource name for the specified components. |
866
|
|
|
|
|
|
|
my ($customer_id, $detailed_demographic_id) = @_; |
867
|
|
|
|
|
|
|
|
868
|
0
|
|
|
|
|
|
my $path_template = |
869
|
|
|
|
|
|
|
'customers/{customer_id}/detailedDemographics/{detailed_demographic_id}'; |
870
|
|
|
|
|
|
|
|
871
|
|
|
|
|
|
|
return expand_path_template($path_template, |
872
|
|
|
|
|
|
|
[$customer_id, $detailed_demographic_id]); |
873
|
0
|
|
|
0
|
0
|
|
} |
874
|
|
|
|
|
|
|
|
875
|
0
|
|
|
|
|
|
# Returns the display_keyword_view resource name for the specified components. |
876
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
877
|
0
|
|
|
|
|
|
|
878
|
|
|
|
|
|
|
my $path_template = |
879
|
|
|
|
|
|
|
'customers/{customer_id}/displayKeywordViews/{ad_group_id}~{criterion_id}'; |
880
|
|
|
|
|
|
|
|
881
|
|
|
|
|
|
|
return expand_path_template($path_template, |
882
|
0
|
|
|
0
|
0
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
883
|
|
|
|
|
|
|
} |
884
|
0
|
|
|
|
|
|
|
885
|
|
|
|
|
|
|
# Returns the distance_view resource name for the specified components. |
886
|
0
|
|
|
|
|
|
my ($customer_id, $distance_bucket) = @_; |
887
|
|
|
|
|
|
|
|
888
|
|
|
|
|
|
|
my $path_template = |
889
|
|
|
|
|
|
|
'customers/{customer_id}/distanceViews/1~{distance_bucket}'; |
890
|
|
|
|
|
|
|
|
891
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, [$customer_id, $distance_bucket]); |
892
|
|
|
|
|
|
|
} |
893
|
0
|
|
|
|
|
|
|
894
|
|
|
|
|
|
|
# Returns the domain_category resource name for the specified components. |
895
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $category_base64, $language_code) = @_; |
896
|
0
|
|
|
|
|
|
|
897
|
|
|
|
|
|
|
my $path_template = |
898
|
|
|
|
|
|
|
'customers/{customer_id}/domainCategories/{campaign_id}~{category_base64}~{language_code}'; |
899
|
|
|
|
|
|
|
|
900
|
|
|
|
|
|
|
return expand_path_template($path_template, |
901
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $category_base64, $language_code]); |
902
|
0
|
|
|
0
|
0
|
|
} |
903
|
|
|
|
|
|
|
|
904
|
0
|
|
|
|
|
|
# Returns the dynamic_search_ads_search_term_view resource name for the specified components. |
905
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $search_term_fingerprint, |
906
|
|
|
|
|
|
|
$headline_fingerprint, $landing_page_fingerprint, $page_url_fingerprint) |
907
|
0
|
|
|
|
|
|
= @_; |
908
|
|
|
|
|
|
|
|
909
|
|
|
|
|
|
|
my $path_template = |
910
|
|
|
|
|
|
|
'customers/{customer_id}/dynamicSearchAdsSearchTermViews/{ad_group_id}~{search_term_fingerprint}~{headline_fingerprint}~{landing_page_fingerprint}~{page_url_fingerprint}'; |
911
|
|
|
|
|
|
|
|
912
|
0
|
|
|
0
|
0
|
|
return expand_path_template( |
913
|
|
|
|
|
|
|
$path_template, |
914
|
0
|
|
|
|
|
|
[ |
915
|
|
|
|
|
|
|
$customer_id, $ad_group_id, |
916
|
0
|
|
|
|
|
|
$search_term_fingerprint, $headline_fingerprint, |
917
|
|
|
|
|
|
|
$landing_page_fingerprint, $page_url_fingerprint |
918
|
|
|
|
|
|
|
]); |
919
|
|
|
|
|
|
|
} |
920
|
|
|
|
|
|
|
|
921
|
0
|
|
|
0
|
0
|
|
# Returns the expanded_landing_page_view resource name for the specified components. |
922
|
|
|
|
|
|
|
my ($customer_id, $expanded_final_url_fingerprint) = @_; |
923
|
0
|
|
|
|
|
|
|
924
|
|
|
|
|
|
|
my $path_template = |
925
|
|
|
|
|
|
|
'customers/{customer_id}/expandedLandingPageViews/{expanded_final_url_fingerprint}'; |
926
|
0
|
|
|
|
|
|
|
927
|
|
|
|
|
|
|
return expand_path_template($path_template, |
928
|
|
|
|
|
|
|
[$customer_id, $expanded_final_url_fingerprint]); |
929
|
|
|
|
|
|
|
} |
930
|
|
|
|
|
|
|
|
931
|
0
|
|
|
0
|
0
|
|
# Returns the extension_feed_item resource name for the specified components. |
932
|
|
|
|
|
|
|
my ($customer_id, $feed_item_id) = @_; |
933
|
0
|
|
|
|
|
|
|
934
|
|
|
|
|
|
|
my $path_template = |
935
|
|
|
|
|
|
|
'customers/{customer_id}/extensionFeedItems/{feed_item_id}'; |
936
|
0
|
|
|
|
|
|
|
937
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $feed_item_id]); |
938
|
|
|
|
|
|
|
} |
939
|
|
|
|
|
|
|
|
940
|
|
|
|
|
|
|
# Returns the feed resource name for the specified components. |
941
|
|
|
|
|
|
|
my ($customer_id, $feed_id) = @_; |
942
|
0
|
|
|
0
|
0
|
|
|
943
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/feeds/{feed_id}'; |
944
|
0
|
|
|
|
|
|
|
945
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $feed_id]); |
946
|
|
|
|
|
|
|
} |
947
|
0
|
|
|
|
|
|
|
948
|
|
|
|
|
|
|
# Returns the feed_item resource name for the specified components. |
949
|
|
|
|
|
|
|
my ($customer_id, $feed_id, $feed_item_id) = @_; |
950
|
|
|
|
|
|
|
|
951
|
|
|
|
|
|
|
my $path_template = |
952
|
|
|
|
|
|
|
'customers/{customer_id}/feedItems/{feed_id}~{feed_item_id}'; |
953
|
0
|
|
|
0
|
0
|
|
|
954
|
|
|
|
|
|
|
return expand_path_template($path_template, |
955
|
0
|
|
|
|
|
|
[$customer_id, $feed_id, $feed_item_id]); |
956
|
|
|
|
|
|
|
} |
957
|
|
|
|
|
|
|
|
958
|
0
|
|
|
|
|
|
# Returns the feed_item_set resource name for the specified components. |
959
|
|
|
|
|
|
|
my ($customer_id, $feed_id, $feed_item_set_id) = @_; |
960
|
|
|
|
|
|
|
|
961
|
|
|
|
|
|
|
my $path_template = |
962
|
|
|
|
|
|
|
'customers/{customer_id}/feedItemSets/{feed_id}~{feed_item_set_id}'; |
963
|
|
|
|
|
|
|
|
964
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
965
|
|
|
|
|
|
|
[$customer_id, $feed_id, $feed_item_set_id]); |
966
|
0
|
|
|
|
|
|
} |
967
|
|
|
|
|
|
|
|
968
|
|
|
|
|
|
|
# Returns the feed_item_set_link resource name for the specified components. |
969
|
0
|
|
|
|
|
|
my ($customer_id, $feed_id, $feed_item_set_id, $feed_item_id) = @_; |
970
|
|
|
|
|
|
|
|
971
|
|
|
|
|
|
|
my $path_template = |
972
|
|
|
|
|
|
|
'customers/{customer_id}/feedItemSetLinks/{feed_id}~{feed_item_set_id}~{feed_item_id}'; |
973
|
|
|
|
|
|
|
|
974
|
|
|
|
|
|
|
return expand_path_template($path_template, |
975
|
0
|
|
|
0
|
0
|
|
[$customer_id, $feed_id, $feed_item_set_id, $feed_item_id]); |
976
|
|
|
|
|
|
|
} |
977
|
0
|
|
|
|
|
|
|
978
|
|
|
|
|
|
|
# Returns the feed_item_target resource name for the specified components. |
979
|
|
|
|
|
|
|
my ($customer_id, $feed_id, $feed_item_id, $feed_item_target_type, |
980
|
0
|
|
|
|
|
|
$feed_item_target_id) |
981
|
|
|
|
|
|
|
= @_; |
982
|
|
|
|
|
|
|
|
983
|
|
|
|
|
|
|
my $path_template = |
984
|
|
|
|
|
|
|
'customers/{customer_id}/feedItemTargets/{feed_id}~{feed_item_id}~{feed_item_target_type}~{feed_item_target_id}'; |
985
|
0
|
|
|
0
|
0
|
|
|
986
|
|
|
|
|
|
|
return expand_path_template( |
987
|
0
|
|
|
|
|
|
$path_template, |
988
|
|
|
|
|
|
|
[ |
989
|
|
|
|
|
|
|
$customer_id, $feed_id, $feed_item_id, |
990
|
0
|
|
|
|
|
|
$feed_item_target_type, $feed_item_target_id |
991
|
|
|
|
|
|
|
]); |
992
|
|
|
|
|
|
|
} |
993
|
|
|
|
|
|
|
|
994
|
|
|
|
|
|
|
# Returns the feed_mapping resource name for the specified components. |
995
|
|
|
|
|
|
|
my ($customer_id, $feed_id, $feed_mapping_id) = @_; |
996
|
0
|
|
|
0
|
0
|
|
|
997
|
|
|
|
|
|
|
my $path_template = |
998
|
|
|
|
|
|
|
'customers/{customer_id}/feedMappings/{feed_id}~{feed_mapping_id}'; |
999
|
|
|
|
|
|
|
|
1000
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
1001
|
|
|
|
|
|
|
[$customer_id, $feed_id, $feed_mapping_id]); |
1002
|
|
|
|
|
|
|
} |
1003
|
0
|
|
|
|
|
|
|
1004
|
|
|
|
|
|
|
# Returns the feed_placeholder_view resource name for the specified components. |
1005
|
|
|
|
|
|
|
my ($customer_id, $placeholder_type) = @_; |
1006
|
|
|
|
|
|
|
|
1007
|
|
|
|
|
|
|
my $path_template = |
1008
|
|
|
|
|
|
|
'customers/{customer_id}/feedPlaceholderViews/{placeholder_type}'; |
1009
|
|
|
|
|
|
|
|
1010
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1011
|
|
|
|
|
|
|
[$customer_id, $placeholder_type]); |
1012
|
|
|
|
|
|
|
} |
1013
|
|
|
|
|
|
|
|
1014
|
0
|
|
|
0
|
0
|
|
# Returns the gender_view resource name for the specified components. |
1015
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1016
|
0
|
|
|
|
|
|
|
1017
|
|
|
|
|
|
|
my $path_template = |
1018
|
|
|
|
|
|
|
'customers/{customer_id}/genderViews/{ad_group_id}~{criterion_id}'; |
1019
|
0
|
|
|
|
|
|
|
1020
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1021
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1022
|
|
|
|
|
|
|
} |
1023
|
|
|
|
|
|
|
|
1024
|
|
|
|
|
|
|
# Returns the geo_target_constant resource name for the specified components. |
1025
|
0
|
|
|
0
|
0
|
|
my ($geo_target_constant_id) = @_; |
1026
|
|
|
|
|
|
|
|
1027
|
0
|
|
|
|
|
|
my $path_template = 'geoTargetConstants/{geo_target_constant_id}'; |
1028
|
|
|
|
|
|
|
|
1029
|
|
|
|
|
|
|
return expand_path_template($path_template, [$geo_target_constant_id]); |
1030
|
0
|
|
|
|
|
|
} |
1031
|
|
|
|
|
|
|
|
1032
|
|
|
|
|
|
|
# Returns the geographic_view resource name for the specified components. |
1033
|
|
|
|
|
|
|
my ($customer_id, $country_criterion_id, $location_type) = @_; |
1034
|
|
|
|
|
|
|
|
1035
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1036
|
|
|
|
|
|
|
'customers/{customer_id}/geographicViews/{country_criterion_id}~{location_type}'; |
1037
|
0
|
|
|
|
|
|
|
1038
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1039
|
0
|
|
|
|
|
|
[$customer_id, $country_criterion_id, $location_type]); |
1040
|
|
|
|
|
|
|
} |
1041
|
|
|
|
|
|
|
|
1042
|
|
|
|
|
|
|
# Returns the google_ads_field resource name for the specified components. |
1043
|
|
|
|
|
|
|
my ($name) = @_; |
1044
|
0
|
|
|
0
|
0
|
|
|
1045
|
|
|
|
|
|
|
my $path_template = 'googleAdsFields/{name}'; |
1046
|
0
|
|
|
|
|
|
|
1047
|
|
|
|
|
|
|
return expand_path_template($path_template, [$name]); |
1048
|
|
|
|
|
|
|
} |
1049
|
0
|
|
|
|
|
|
|
1050
|
|
|
|
|
|
|
# Returns the group_placement_view resource name for the specified components. |
1051
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $base64_placement) = @_; |
1052
|
|
|
|
|
|
|
|
1053
|
|
|
|
|
|
|
my $path_template = |
1054
|
|
|
|
|
|
|
'customers/{customer_id}/groupPlacementViews/{ad_group_id}~{base64_placement}'; |
1055
|
0
|
|
|
0
|
0
|
|
|
1056
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1057
|
0
|
|
|
|
|
|
[$customer_id, $ad_group_id, $base64_placement]); |
1058
|
|
|
|
|
|
|
} |
1059
|
|
|
|
|
|
|
|
1060
|
0
|
|
|
|
|
|
# Returns the hotel_group_view resource name for the specified components. |
1061
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1062
|
|
|
|
|
|
|
|
1063
|
|
|
|
|
|
|
my $path_template = |
1064
|
|
|
|
|
|
|
'customers/{customer_id}/hotelGroupViews/{ad_group_id}~{criterion_id}'; |
1065
|
|
|
|
|
|
|
|
1066
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
1067
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1068
|
0
|
|
|
|
|
|
} |
1069
|
|
|
|
|
|
|
|
1070
|
|
|
|
|
|
|
# Returns the hotel_performance_view resource name for the specified components. |
1071
|
0
|
|
|
|
|
|
my ($customer_id) = @_; |
1072
|
|
|
|
|
|
|
|
1073
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/hotelPerformanceView'; |
1074
|
|
|
|
|
|
|
|
1075
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id]); |
1076
|
|
|
|
|
|
|
} |
1077
|
0
|
|
|
0
|
0
|
|
|
1078
|
|
|
|
|
|
|
# Returns the hotel_reconciliation resource name for the specified components. |
1079
|
|
|
|
|
|
|
my ($customer_id, $commission_id) = @_; |
1080
|
|
|
|
|
|
|
|
1081
|
0
|
|
|
|
|
|
my $path_template = |
1082
|
|
|
|
|
|
|
'customers/{customer_id}/hotelReconciliations/{commission_id}'; |
1083
|
|
|
|
|
|
|
|
1084
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $commission_id]); |
1085
|
|
|
|
|
|
|
} |
1086
|
|
|
|
|
|
|
|
1087
|
|
|
|
|
|
|
# Returns the income_range_view resource name for the specified components. |
1088
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1089
|
|
|
|
|
|
|
|
1090
|
|
|
|
|
|
|
my $path_template = |
1091
|
|
|
|
|
|
|
'customers/{customer_id}/incomeRangeViews/{ad_group_id}~{criterion_id}'; |
1092
|
|
|
|
|
|
|
|
1093
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1094
|
0
|
|
|
0
|
0
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1095
|
|
|
|
|
|
|
} |
1096
|
0
|
|
|
|
|
|
|
1097
|
|
|
|
|
|
|
# Returns the invoice resource name for the specified components. |
1098
|
|
|
|
|
|
|
my ($customer_id, $invoice_id) = @_; |
1099
|
0
|
|
|
|
|
|
|
1100
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/invoices/{invoice_id}'; |
1101
|
|
|
|
|
|
|
|
1102
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $invoice_id]); |
1103
|
|
|
|
|
|
|
} |
1104
|
|
|
|
|
|
|
|
1105
|
0
|
|
|
0
|
0
|
|
# Returns the keyword_plan resource name for the specified components. |
1106
|
|
|
|
|
|
|
my ($customer_id, $kp_plan_id) = @_; |
1107
|
0
|
|
|
|
|
|
|
1108
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/keywordPlans/{kp_plan_id}'; |
1109
|
|
|
|
|
|
|
|
1110
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $kp_plan_id]); |
1111
|
|
|
|
|
|
|
} |
1112
|
|
|
|
|
|
|
|
1113
|
|
|
|
|
|
|
# Returns the keyword_plan_ad_group resource name for the specified components. |
1114
|
|
|
|
|
|
|
my ($customer_id, $kp_ad_group_id) = @_; |
1115
|
|
|
|
|
|
|
|
1116
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1117
|
|
|
|
|
|
|
'customers/{customer_id}/keywordPlanAdGroups/{kp_ad_group_id}'; |
1118
|
0
|
|
|
|
|
|
|
1119
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $kp_ad_group_id]); |
1120
|
|
|
|
|
|
|
} |
1121
|
0
|
|
|
|
|
|
|
1122
|
|
|
|
|
|
|
# Returns the keyword_plan_ad_group_keyword resource name for the specified components. |
1123
|
|
|
|
|
|
|
my ($customer_id, $kp_ad_group_keyword_id) = @_; |
1124
|
|
|
|
|
|
|
|
1125
|
|
|
|
|
|
|
my $path_template = |
1126
|
|
|
|
|
|
|
'customers/{customer_id}/keywordPlanAdGroupKeywords/{kp_ad_group_keyword_id}'; |
1127
|
0
|
|
|
0
|
0
|
|
|
1128
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1129
|
0
|
|
|
|
|
|
[$customer_id, $kp_ad_group_keyword_id]); |
1130
|
|
|
|
|
|
|
} |
1131
|
0
|
|
|
|
|
|
|
1132
|
|
|
|
|
|
|
# Returns the keyword_plan_campaign resource name for the specified components. |
1133
|
|
|
|
|
|
|
my ($customer_id, $kp_campaign_id) = @_; |
1134
|
|
|
|
|
|
|
|
1135
|
|
|
|
|
|
|
my $path_template = |
1136
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/keywordPlanCampaigns/{kp_campaign_id}'; |
1137
|
|
|
|
|
|
|
|
1138
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $kp_campaign_id]); |
1139
|
|
|
|
|
|
|
} |
1140
|
|
|
|
|
|
|
|
1141
|
0
|
|
|
|
|
|
# Returns the keyword_plan_campaign_keyword resource name for the specified components. |
1142
|
|
|
|
|
|
|
my ($customer_id, $kp_campaign_keyword_id) = @_; |
1143
|
|
|
|
|
|
|
|
1144
|
|
|
|
|
|
|
my $path_template = |
1145
|
|
|
|
|
|
|
'customers/{customer_id}/keywordPlanCampaignKeywords/{kp_campaign_keyword_id}'; |
1146
|
|
|
|
|
|
|
|
1147
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
1148
|
|
|
|
|
|
|
[$customer_id, $kp_campaign_keyword_id]); |
1149
|
0
|
|
|
|
|
|
} |
1150
|
|
|
|
|
|
|
|
1151
|
0
|
|
|
|
|
|
# Returns the keyword_theme_constant resource name for the specified components. |
1152
|
|
|
|
|
|
|
my ($keyword_theme_id, $sub_keyword_theme_id) = @_; |
1153
|
|
|
|
|
|
|
|
1154
|
|
|
|
|
|
|
my $path_template = |
1155
|
|
|
|
|
|
|
'keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}'; |
1156
|
0
|
|
|
0
|
0
|
|
|
1157
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1158
|
0
|
|
|
|
|
|
[$keyword_theme_id, $sub_keyword_theme_id]); |
1159
|
|
|
|
|
|
|
} |
1160
|
|
|
|
|
|
|
|
1161
|
0
|
|
|
|
|
|
# Returns the keyword_view resource name for the specified components. |
1162
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1163
|
|
|
|
|
|
|
|
1164
|
|
|
|
|
|
|
my $path_template = |
1165
|
|
|
|
|
|
|
'customers/{customer_id}/keywordViews/{ad_group_id}~{criterion_id}'; |
1166
|
|
|
|
|
|
|
|
1167
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
1168
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1169
|
0
|
|
|
|
|
|
} |
1170
|
|
|
|
|
|
|
|
1171
|
|
|
|
|
|
|
# Returns the label resource name for the specified components. |
1172
|
0
|
|
|
|
|
|
my ($customer_id, $label_id) = @_; |
1173
|
|
|
|
|
|
|
|
1174
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/labels/{label_id}'; |
1175
|
|
|
|
|
|
|
|
1176
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $label_id]); |
1177
|
|
|
|
|
|
|
} |
1178
|
0
|
|
|
0
|
0
|
|
|
1179
|
|
|
|
|
|
|
# Returns the landing_page_view resource name for the specified components. |
1180
|
0
|
|
|
|
|
|
my ($customer_id, $unexpanded_final_url_fingerprint) = @_; |
1181
|
|
|
|
|
|
|
|
1182
|
0
|
|
|
|
|
|
my $path_template = |
1183
|
|
|
|
|
|
|
'customers/{customer_id}/landingPageViews/{unexpanded_final_url_fingerprint}'; |
1184
|
|
|
|
|
|
|
|
1185
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1186
|
|
|
|
|
|
|
[$customer_id, $unexpanded_final_url_fingerprint]); |
1187
|
0
|
|
|
0
|
0
|
|
} |
1188
|
|
|
|
|
|
|
|
1189
|
0
|
|
|
|
|
|
# Returns the language_constant resource name for the specified components. |
1190
|
|
|
|
|
|
|
my ($criterion_id) = @_; |
1191
|
|
|
|
|
|
|
|
1192
|
0
|
|
|
|
|
|
my $path_template = 'languageConstants/{criterion_id}'; |
1193
|
|
|
|
|
|
|
|
1194
|
|
|
|
|
|
|
return expand_path_template($path_template, [$criterion_id]); |
1195
|
|
|
|
|
|
|
} |
1196
|
|
|
|
|
|
|
|
1197
|
0
|
|
|
0
|
0
|
|
# Returns the life_event resource name for the specified components. |
1198
|
|
|
|
|
|
|
my ($customer_id, $life_event_id) = @_; |
1199
|
0
|
|
|
|
|
|
|
1200
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/lifeEvents/{life_event_id}'; |
1201
|
|
|
|
|
|
|
|
1202
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $life_event_id]); |
1203
|
|
|
|
|
|
|
} |
1204
|
|
|
|
|
|
|
|
1205
|
|
|
|
|
|
|
# Returns the location_view resource name for the specified components. |
1206
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $criterion_id) = @_; |
1207
|
|
|
|
|
|
|
|
1208
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1209
|
|
|
|
|
|
|
'customers/{customer_id}/locationViews/{campaign_id}~{criterion_id}'; |
1210
|
0
|
|
|
|
|
|
|
1211
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1212
|
0
|
|
|
|
|
|
[$customer_id, $campaign_id, $criterion_id]); |
1213
|
|
|
|
|
|
|
} |
1214
|
|
|
|
|
|
|
|
1215
|
|
|
|
|
|
|
# Returns the managed_placement_view resource name for the specified components. |
1216
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1217
|
0
|
|
|
0
|
0
|
|
|
1218
|
|
|
|
|
|
|
my $path_template = |
1219
|
0
|
|
|
|
|
|
'customers/{customer_id}/managedPlacementViews/{ad_group_id}~{criterion_id}'; |
1220
|
|
|
|
|
|
|
|
1221
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
1222
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1223
|
|
|
|
|
|
|
} |
1224
|
|
|
|
|
|
|
|
1225
|
|
|
|
|
|
|
# Returns the media_file resource name for the specified components. |
1226
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $media_file_id) = @_; |
1227
|
|
|
|
|
|
|
|
1228
|
0
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/mediaFiles/{media_file_id}'; |
1229
|
|
|
|
|
|
|
|
1230
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $media_file_id]); |
1231
|
0
|
|
|
|
|
|
} |
1232
|
|
|
|
|
|
|
|
1233
|
|
|
|
|
|
|
# Returns the merchant_center_link resource name for the specified components. |
1234
|
|
|
|
|
|
|
my ($customer_id, $merchant_center_id) = @_; |
1235
|
|
|
|
|
|
|
|
1236
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1237
|
|
|
|
|
|
|
'customers/{customer_id}/merchantCenterLinks/{merchant_center_id}'; |
1238
|
0
|
|
|
|
|
|
|
1239
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1240
|
|
|
|
|
|
|
[$customer_id, $merchant_center_id]); |
1241
|
0
|
|
|
|
|
|
} |
1242
|
|
|
|
|
|
|
|
1243
|
|
|
|
|
|
|
# Returns the mobile_app_category_constant resource name for the specified components. |
1244
|
|
|
|
|
|
|
my ($mobile_app_category_id) = @_; |
1245
|
|
|
|
|
|
|
|
1246
|
|
|
|
|
|
|
my $path_template = 'mobileAppCategoryConstants/{mobile_app_category_id}'; |
1247
|
0
|
|
|
0
|
0
|
|
|
1248
|
|
|
|
|
|
|
return expand_path_template($path_template, [$mobile_app_category_id]); |
1249
|
0
|
|
|
|
|
|
} |
1250
|
|
|
|
|
|
|
|
1251
|
|
|
|
|
|
|
# Returns the mobile_device_constant resource name for the specified components. |
1252
|
0
|
|
|
|
|
|
my ($criterion_id) = @_; |
1253
|
|
|
|
|
|
|
|
1254
|
|
|
|
|
|
|
my $path_template = 'mobileDeviceConstants/{criterion_id}'; |
1255
|
|
|
|
|
|
|
|
1256
|
|
|
|
|
|
|
return expand_path_template($path_template, [$criterion_id]); |
1257
|
0
|
|
|
0
|
0
|
|
} |
1258
|
|
|
|
|
|
|
|
1259
|
0
|
|
|
|
|
|
# Returns the offline_user_data_job resource name for the specified components. |
1260
|
|
|
|
|
|
|
my ($customer_id, $offline_user_data_job_id) = @_; |
1261
|
|
|
|
|
|
|
|
1262
|
0
|
|
|
|
|
|
my $path_template = |
1263
|
|
|
|
|
|
|
'customers/{customer_id}/offlineUserDataJobs/{offline_user_data_job_id}'; |
1264
|
|
|
|
|
|
|
|
1265
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1266
|
|
|
|
|
|
|
[$customer_id, $offline_user_data_job_id]); |
1267
|
|
|
|
|
|
|
} |
1268
|
0
|
|
|
0
|
0
|
|
|
1269
|
|
|
|
|
|
|
# Returns the operating_system_version_constant resource name for the specified components. |
1270
|
0
|
|
|
|
|
|
my ($criterion_id) = @_; |
1271
|
|
|
|
|
|
|
|
1272
|
|
|
|
|
|
|
my $path_template = 'operatingSystemVersionConstants/{criterion_id}'; |
1273
|
0
|
|
|
|
|
|
|
1274
|
|
|
|
|
|
|
return expand_path_template($path_template, [$criterion_id]); |
1275
|
|
|
|
|
|
|
} |
1276
|
|
|
|
|
|
|
|
1277
|
|
|
|
|
|
|
# Returns the paid_organic_search_term_view resource name for the specified components. |
1278
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $ad_group_id, $URL_base64_search_term) = @_; |
1279
|
0
|
|
|
0
|
0
|
|
|
1280
|
|
|
|
|
|
|
my $path_template = |
1281
|
0
|
|
|
|
|
|
'customers/{customer_id}/paidOrganicSearchTermViews/{campaign_id}~{ad_group_id}~{URL_base64_search_term}'; |
1282
|
|
|
|
|
|
|
|
1283
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1284
|
0
|
|
|
|
|
|
[$customer_id, $campaign_id, $ad_group_id, $URL_base64_search_term]); |
1285
|
|
|
|
|
|
|
} |
1286
|
|
|
|
|
|
|
|
1287
|
|
|
|
|
|
|
# Returns the parental_status_view resource name for the specified components. |
1288
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1289
|
|
|
|
|
|
|
|
1290
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1291
|
|
|
|
|
|
|
'customers/{customer_id}/parentalStatusViews/{ad_group_id}~{criterion_id}'; |
1292
|
0
|
|
|
|
|
|
|
1293
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1294
|
0
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1295
|
|
|
|
|
|
|
} |
1296
|
|
|
|
|
|
|
|
1297
|
|
|
|
|
|
|
# Returns the payments_account resource name for the specified components. |
1298
|
|
|
|
|
|
|
my ($customer_id, $payments_account_id) = @_; |
1299
|
0
|
|
|
0
|
0
|
|
|
1300
|
|
|
|
|
|
|
my $path_template = |
1301
|
0
|
|
|
|
|
|
'customers/{customer_id}/paymentsAccounts/{payments_account_id}'; |
1302
|
|
|
|
|
|
|
|
1303
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1304
|
0
|
|
|
|
|
|
[$customer_id, $payments_account_id]); |
1305
|
|
|
|
|
|
|
} |
1306
|
|
|
|
|
|
|
|
1307
|
|
|
|
|
|
|
# Returns the product_bidding_category_constant resource name for the specified components. |
1308
|
|
|
|
|
|
|
my ($country_code, $level, $id) = @_; |
1309
|
|
|
|
|
|
|
|
1310
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1311
|
|
|
|
|
|
|
'productBiddingCategoryConstants/{country_code}~{level}~{id}'; |
1312
|
0
|
|
|
|
|
|
|
1313
|
|
|
|
|
|
|
return expand_path_template($path_template, [$country_code, $level, $id]); |
1314
|
0
|
|
|
|
|
|
} |
1315
|
|
|
|
|
|
|
|
1316
|
|
|
|
|
|
|
# Returns the product_group_view resource name for the specified components. |
1317
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1318
|
|
|
|
|
|
|
|
1319
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1320
|
|
|
|
|
|
|
'customers/{customer_id}/productGroupViews/{ad_group_id}~{criterion_id}'; |
1321
|
0
|
|
|
|
|
|
|
1322
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1323
|
0
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1324
|
|
|
|
|
|
|
} |
1325
|
|
|
|
|
|
|
|
1326
|
|
|
|
|
|
|
# Returns the recommendation resource name for the specified components. |
1327
|
|
|
|
|
|
|
my ($customer_id, $recommendation_id) = @_; |
1328
|
0
|
|
|
0
|
0
|
|
|
1329
|
|
|
|
|
|
|
my $path_template = |
1330
|
0
|
|
|
|
|
|
'customers/{customer_id}/recommendations/{recommendation_id}'; |
1331
|
|
|
|
|
|
|
|
1332
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1333
|
0
|
|
|
|
|
|
[$customer_id, $recommendation_id]); |
1334
|
|
|
|
|
|
|
} |
1335
|
|
|
|
|
|
|
|
1336
|
|
|
|
|
|
|
# Returns the remarketing_action resource name for the specified components. |
1337
|
|
|
|
|
|
|
my ($customer_id, $remarketing_action_id) = @_; |
1338
|
|
|
|
|
|
|
|
1339
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1340
|
|
|
|
|
|
|
'customers/{customer_id}/remarketingActions/{remarketing_action_id}'; |
1341
|
0
|
|
|
|
|
|
|
1342
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1343
|
|
|
|
|
|
|
[$customer_id, $remarketing_action_id]); |
1344
|
0
|
|
|
|
|
|
} |
1345
|
|
|
|
|
|
|
|
1346
|
|
|
|
|
|
|
# Returns the search_term_view resource name for the specified components. |
1347
|
|
|
|
|
|
|
my ($customer_id, $campaign_id, $ad_group_id, $URL_base64_search_term) = @_; |
1348
|
|
|
|
|
|
|
|
1349
|
|
|
|
|
|
|
my $path_template = |
1350
|
0
|
|
|
0
|
0
|
|
'customers/{customer_id}/searchTermViews/{campaign_id}~{ad_group_id}~{URL_base64_search_term}'; |
1351
|
|
|
|
|
|
|
|
1352
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
1353
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $ad_group_id, $URL_base64_search_term]); |
1354
|
0
|
|
|
|
|
|
} |
1355
|
|
|
|
|
|
|
|
1356
|
|
|
|
|
|
|
# Returns the shared_criterion resource name for the specified components. |
1357
|
|
|
|
|
|
|
my ($customer_id, $shared_set_id, $criterion_id) = @_; |
1358
|
|
|
|
|
|
|
|
1359
|
0
|
|
|
0
|
0
|
|
my $path_template = |
1360
|
|
|
|
|
|
|
'customers/{customer_id}/sharedCriteria/{shared_set_id}~{criterion_id}'; |
1361
|
0
|
|
|
|
|
|
|
1362
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1363
|
|
|
|
|
|
|
[$customer_id, $shared_set_id, $criterion_id]); |
1364
|
0
|
|
|
|
|
|
} |
1365
|
|
|
|
|
|
|
|
1366
|
|
|
|
|
|
|
# Returns the shared_set resource name for the specified components. |
1367
|
|
|
|
|
|
|
my ($customer_id, $shared_set_id) = @_; |
1368
|
|
|
|
|
|
|
|
1369
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/sharedSets/{shared_set_id}'; |
1370
|
0
|
|
|
0
|
0
|
|
|
1371
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $shared_set_id]); |
1372
|
0
|
|
|
|
|
|
} |
1373
|
|
|
|
|
|
|
|
1374
|
0
|
|
|
|
|
|
# Returns the shopping_performance_view resource name for the specified components. |
1375
|
|
|
|
|
|
|
my ($customer_id) = @_; |
1376
|
|
|
|
|
|
|
|
1377
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/shoppingPerformanceView'; |
1378
|
|
|
|
|
|
|
|
1379
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, [$customer_id]); |
1380
|
|
|
|
|
|
|
} |
1381
|
0
|
|
|
|
|
|
|
1382
|
|
|
|
|
|
|
# Returns the smart_campaign_search_term_view resource name for the specified components. |
1383
|
0
|
|
|
|
|
|
my ($customer_id, $campaign_id, $URL_base64_search_term) = @_; |
1384
|
|
|
|
|
|
|
|
1385
|
|
|
|
|
|
|
my $path_template = |
1386
|
|
|
|
|
|
|
'customers/{customer_id}/smartCampaignSearchTermViews/{campaign_id}~{URL_base64_search_term}'; |
1387
|
|
|
|
|
|
|
|
1388
|
0
|
|
|
0
|
0
|
|
return expand_path_template($path_template, |
1389
|
|
|
|
|
|
|
[$customer_id, $campaign_id, $URL_base64_search_term]); |
1390
|
0
|
|
|
|
|
|
} |
1391
|
|
|
|
|
|
|
|
1392
|
|
|
|
|
|
|
# Returns the smart_campaign_setting resource name for the specified components. |
1393
|
0
|
|
|
|
|
|
my ($customer_id, $campaign_id) = @_; |
1394
|
|
|
|
|
|
|
|
1395
|
|
|
|
|
|
|
my $path_template = |
1396
|
|
|
|
|
|
|
'customers/{customer_id}/smartCampaignSettings/{campaign_id}'; |
1397
|
|
|
|
|
|
|
|
1398
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $campaign_id]); |
1399
|
0
|
|
|
0
|
0
|
|
} |
1400
|
|
|
|
|
|
|
|
1401
|
0
|
|
|
|
|
|
# Returns the third_party_app_analytics_link resource name for the specified components. |
1402
|
|
|
|
|
|
|
my ($customer_id, $account_link_id) = @_; |
1403
|
0
|
|
|
|
|
|
|
1404
|
|
|
|
|
|
|
my $path_template = |
1405
|
|
|
|
|
|
|
'customers/{customer_id}/thirdPartyAppAnalyticsLinks/{account_link_id}'; |
1406
|
|
|
|
|
|
|
|
1407
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $account_link_id]); |
1408
|
0
|
|
|
0
|
0
|
|
} |
1409
|
|
|
|
|
|
|
|
1410
|
0
|
|
|
|
|
|
# Returns the topic_constant resource name for the specified components. |
1411
|
|
|
|
|
|
|
my ($topic_id) = @_; |
1412
|
|
|
|
|
|
|
|
1413
|
0
|
|
|
|
|
|
my $path_template = 'topicConstants/{topic_id}'; |
1414
|
|
|
|
|
|
|
|
1415
|
|
|
|
|
|
|
return expand_path_template($path_template, [$topic_id]); |
1416
|
|
|
|
|
|
|
} |
1417
|
|
|
|
|
|
|
|
1418
|
|
|
|
|
|
|
# Returns the topic_view resource name for the specified components. |
1419
|
0
|
|
|
0
|
0
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1420
|
|
|
|
|
|
|
|
1421
|
0
|
|
|
|
|
|
my $path_template = |
1422
|
|
|
|
|
|
|
'customers/{customer_id}/topicViews/{ad_group_id}~{criterion_id}'; |
1423
|
|
|
|
|
|
|
|
1424
|
0
|
|
|
|
|
|
return expand_path_template($path_template, |
1425
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1426
|
|
|
|
|
|
|
} |
1427
|
|
|
|
|
|
|
|
1428
|
|
|
|
|
|
|
# Returns the user_interest resource name for the specified components. |
1429
|
|
|
|
|
|
|
my ($customer_id, $user_interest_id) = @_; |
1430
|
0
|
|
|
0
|
0
|
|
|
1431
|
|
|
|
|
|
|
my $path_template = |
1432
|
0
|
|
|
|
|
|
'customers/{customer_id}/userInterests/{user_interest_id}'; |
1433
|
|
|
|
|
|
|
|
1434
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1435
|
0
|
|
|
|
|
|
[$customer_id, $user_interest_id]); |
1436
|
|
|
|
|
|
|
} |
1437
|
|
|
|
|
|
|
|
1438
|
|
|
|
|
|
|
# Returns the user_list resource name for the specified components. |
1439
|
|
|
|
|
|
|
my ($customer_id, $user_list_id) = @_; |
1440
|
|
|
|
|
|
|
|
1441
|
0
|
|
|
0
|
0
|
|
my $path_template = 'customers/{customer_id}/userLists/{user_list_id}'; |
1442
|
|
|
|
|
|
|
|
1443
|
0
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $user_list_id]); |
1444
|
|
|
|
|
|
|
} |
1445
|
|
|
|
|
|
|
|
1446
|
0
|
|
|
|
|
|
# Returns the user_location_view resource name for the specified components. |
1447
|
|
|
|
|
|
|
my ($customer_id, $country_criterion_id, $targeting_location) = @_; |
1448
|
|
|
|
|
|
|
|
1449
|
|
|
|
|
|
|
my $path_template = |
1450
|
|
|
|
|
|
|
'customers/{customer_id}/userLocationViews/{country_criterion_id}~{targeting_location}'; |
1451
|
0
|
|
|
0
|
0
|
|
|
1452
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1453
|
0
|
|
|
|
|
|
[$customer_id, $country_criterion_id, $targeting_location]); |
1454
|
|
|
|
|
|
|
} |
1455
|
|
|
|
|
|
|
|
1456
|
0
|
|
|
|
|
|
# Returns the video resource name for the specified components. |
1457
|
|
|
|
|
|
|
my ($customer_id, $video_id) = @_; |
1458
|
|
|
|
|
|
|
|
1459
|
|
|
|
|
|
|
my $path_template = 'customers/{customer_id}/videos/{video_id}'; |
1460
|
|
|
|
|
|
|
|
1461
|
|
|
|
|
|
|
return expand_path_template($path_template, [$customer_id, $video_id]); |
1462
|
0
|
|
|
0
|
0
|
|
} |
1463
|
|
|
|
|
|
|
|
1464
|
0
|
|
|
|
|
|
# Returns the webpage_view resource name for the specified components. |
1465
|
|
|
|
|
|
|
my ($customer_id, $ad_group_id, $criterion_id) = @_; |
1466
|
|
|
|
|
|
|
|
1467
|
0
|
|
|
|
|
|
my $path_template = |
1468
|
|
|
|
|
|
|
'customers/{customer_id}/webpageViews/{ad_group_id}~{criterion_id}'; |
1469
|
|
|
|
|
|
|
|
1470
|
|
|
|
|
|
|
return expand_path_template($path_template, |
1471
|
|
|
|
|
|
|
[$customer_id, $ad_group_id, $criterion_id]); |
1472
|
|
|
|
|
|
|
} |
1473
|
0
|
|
|
0
|
0
|
|
|
1474
|
|
|
|
|
|
|
1; |