Debian Codegraph @

docs/dyn/dfareporting_v4.targetingTemplates.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="dfareporting_v4.html">Campaign Manager 360 API</a> . <a href="dfareporting_v4.targetingTemplates.html">targetingTemplates</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#get">get(profileId, id, x__xgafv=None)</a></code></p>
82 <p class="firstline">Gets one targeting template by ID.</p>
83 <p class="toc_element">
84 <code><a href="#insert">insert(profileId, body=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Inserts a new targeting template.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(profileId, advertiserId=None, ids=None, maxResults=None, pageToken=None, searchString=None, sortField=None, sortOrder=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Retrieves a list of targeting templates, optionally filtered. This method supports paging.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(profileId, id, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Updates an existing targeting template. This method supports patch semantics.</p>
95 <p class="toc_element">
96 <code><a href="#update">update(profileId, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates an existing targeting template.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="get">get(profileId, id, x__xgafv=None)</code>
106 <pre>Gets one targeting template by ID.
107
108 Args:
109 profileId: string, User profile ID associated with this request. (required)
110 id: string, Targeting template ID. (required)
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115
116 Returns:
117 An object of the form:
118
119 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
120 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
121 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
122 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
123 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
124 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
125 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
126 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
127 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
128 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
129 },
130 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
131 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
132 { # Contains information about a Contextual Keyword that can be targeted by ads.
133 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
134 },
135 ],
136 },
137 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
138 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
139 &quot;A String&quot;,
140 ],
141 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
142 42,
143 ],
144 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
145 },
146 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
147 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
148 { # Contains information about a city that can be targeted by ads.
149 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
150 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
151 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
152 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
153 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
154 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
155 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
156 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
157 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
158 },
159 ],
160 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
161 { # Contains information about a country that can be targeted by ads.
162 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
163 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
164 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
165 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
166 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
167 },
168 ],
169 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
170 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
171 { # Contains information about a metro region that can be targeted by ads.
172 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
173 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
174 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
175 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
176 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
177 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
178 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
179 },
180 ],
181 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
182 { # Contains information about a postal code that can be targeted by ads.
183 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
184 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
185 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
186 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
187 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
188 },
189 ],
190 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
191 { # Contains information about a region that can be targeted by ads.
192 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
193 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
194 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
195 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
196 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
197 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
198 },
199 ],
200 },
201 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
202 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
203 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
204 },
205 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
206 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
207 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
208 { # Contains information about a language that can be targeted by ads.
209 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
210 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
211 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
212 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
213 },
214 ],
215 },
216 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
217 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
218 },
219 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
220 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
221 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
222 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
223 { # Contains information about a browser that can be targeted by ads.
224 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
225 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
226 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
227 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
228 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
229 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
230 },
231 ],
232 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
233 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
234 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
235 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
236 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
237 },
238 ],
239 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
240 { # Contains information about a mobile carrier that can be targeted by ads.
241 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
242 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
243 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
244 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
245 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
246 },
247 ],
248 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
249 { # Contains information about a particular version of an operating system that can be targeted by ads.
250 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
251 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
252 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
253 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
254 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
255 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
256 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
257 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
258 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
259 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
260 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
261 },
262 },
263 ],
264 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
265 { # Contains information about an operating system that can be targeted by ads.
266 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
267 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
268 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
269 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
270 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
271 },
272 ],
273 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
274 { # Contains information about a platform type that can be targeted by ads.
275 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
276 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
277 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
278 },
279 ],
280 },
281 }</pre>
282 </div>
283
284 <div class="method">
285 <code class="details" id="insert">insert(profileId, body=None, x__xgafv=None)</code>
286 <pre>Inserts a new targeting template.
287
288 Args:
289 profileId: string, User profile ID associated with this request. (required)
290 body: object, The request body.
291 The object takes the form of:
292
293 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
294 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
295 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
296 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
297 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
298 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
299 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
300 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
301 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
302 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
303 },
304 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
305 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
306 { # Contains information about a Contextual Keyword that can be targeted by ads.
307 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
308 },
309 ],
310 },
311 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
312 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
313 &quot;A String&quot;,
314 ],
315 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
316 42,
317 ],
318 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
319 },
320 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
321 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
322 { # Contains information about a city that can be targeted by ads.
323 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
324 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
325 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
326 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
327 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
328 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
329 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
330 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
331 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
332 },
333 ],
334 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
335 { # Contains information about a country that can be targeted by ads.
336 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
337 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
338 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
339 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
340 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
341 },
342 ],
343 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
344 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
345 { # Contains information about a metro region that can be targeted by ads.
346 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
347 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
348 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
349 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
350 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
351 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
352 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
353 },
354 ],
355 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
356 { # Contains information about a postal code that can be targeted by ads.
357 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
358 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
359 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
360 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
361 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
362 },
363 ],
364 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
365 { # Contains information about a region that can be targeted by ads.
366 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
367 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
368 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
369 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
370 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
371 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
372 },
373 ],
374 },
375 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
376 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
377 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
378 },
379 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
380 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
381 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
382 { # Contains information about a language that can be targeted by ads.
383 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
384 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
385 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
386 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
387 },
388 ],
389 },
390 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
391 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
392 },
393 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
394 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
395 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
396 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
397 { # Contains information about a browser that can be targeted by ads.
398 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
399 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
400 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
401 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
402 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
403 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
404 },
405 ],
406 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
407 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
408 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
409 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
410 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
411 },
412 ],
413 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
414 { # Contains information about a mobile carrier that can be targeted by ads.
415 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
416 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
417 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
418 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
419 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
420 },
421 ],
422 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
423 { # Contains information about a particular version of an operating system that can be targeted by ads.
424 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
425 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
426 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
427 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
428 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
429 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
430 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
431 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
432 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
433 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
434 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
435 },
436 },
437 ],
438 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
439 { # Contains information about an operating system that can be targeted by ads.
440 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
441 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
442 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
443 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
444 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
445 },
446 ],
447 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
448 { # Contains information about a platform type that can be targeted by ads.
449 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
450 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
451 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
452 },
453 ],
454 },
455 }
456
457 x__xgafv: string, V1 error format.
458 Allowed values
459 1 - v1 error format
460 2 - v2 error format
461
462 Returns:
463 An object of the form:
464
465 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
466 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
467 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
468 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
469 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
470 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
471 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
472 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
473 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
474 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
475 },
476 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
477 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
478 { # Contains information about a Contextual Keyword that can be targeted by ads.
479 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
480 },
481 ],
482 },
483 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
484 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
485 &quot;A String&quot;,
486 ],
487 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
488 42,
489 ],
490 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
491 },
492 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
493 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
494 { # Contains information about a city that can be targeted by ads.
495 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
496 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
497 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
498 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
499 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
500 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
501 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
502 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
503 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
504 },
505 ],
506 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
507 { # Contains information about a country that can be targeted by ads.
508 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
509 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
510 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
511 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
512 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
513 },
514 ],
515 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
516 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
517 { # Contains information about a metro region that can be targeted by ads.
518 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
519 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
520 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
521 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
522 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
523 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
524 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
525 },
526 ],
527 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
528 { # Contains information about a postal code that can be targeted by ads.
529 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
530 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
531 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
532 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
533 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
534 },
535 ],
536 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
537 { # Contains information about a region that can be targeted by ads.
538 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
539 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
540 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
541 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
542 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
543 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
544 },
545 ],
546 },
547 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
548 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
549 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
550 },
551 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
552 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
553 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
554 { # Contains information about a language that can be targeted by ads.
555 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
556 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
557 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
558 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
559 },
560 ],
561 },
562 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
563 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
564 },
565 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
566 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
567 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
568 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
569 { # Contains information about a browser that can be targeted by ads.
570 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
571 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
572 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
573 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
574 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
575 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
576 },
577 ],
578 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
579 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
580 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
581 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
582 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
583 },
584 ],
585 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
586 { # Contains information about a mobile carrier that can be targeted by ads.
587 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
588 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
589 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
590 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
591 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
592 },
593 ],
594 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
595 { # Contains information about a particular version of an operating system that can be targeted by ads.
596 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
597 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
598 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
599 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
600 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
601 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
602 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
603 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
604 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
605 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
606 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
607 },
608 },
609 ],
610 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
611 { # Contains information about an operating system that can be targeted by ads.
612 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
613 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
614 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
615 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
616 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
617 },
618 ],
619 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
620 { # Contains information about a platform type that can be targeted by ads.
621 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
622 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
623 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
624 },
625 ],
626 },
627 }</pre>
628 </div>
629
630 <div class="method">
631 <code class="details" id="list">list(profileId, advertiserId=None, ids=None, maxResults=None, pageToken=None, searchString=None, sortField=None, sortOrder=None, x__xgafv=None)</code>
632 <pre>Retrieves a list of targeting templates, optionally filtered. This method supports paging.
633
634 Args:
635 profileId: string, User profile ID associated with this request. (required)
636 advertiserId: string, Select only targeting templates with this advertiser ID.
637 ids: string, Select only targeting templates with these IDs. (repeated)
638 maxResults: integer, Maximum number of results to return.
639 pageToken: string, Value of the nextPageToken from the previous result page.
640 searchString: string, Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, &quot;template*2015&quot; will return objects with names like &quot;template June 2015&quot;, &quot;template April 2015&quot;, or simply &quot;template 2015&quot;. Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of &quot;template&quot; will match objects with name &quot;my template&quot;, &quot;template 2015&quot;, or simply &quot;template&quot;.
641 sortField: string, Field by which to sort the list.
642 Allowed values
643 ID -
644 NAME -
645 sortOrder: string, Order of sorted results.
646 Allowed values
647 ASCENDING - Ascending order.
648 DESCENDING - Descending order.
649 x__xgafv: string, V1 error format.
650 Allowed values
651 1 - v1 error format
652 2 - v2 error format
653
654 Returns:
655 An object of the form:
656
657 { # Targeting Template List Response
658 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplatesListResponse&quot;.
659 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to be used for the next list operation.
660 &quot;targetingTemplates&quot;: [ # Targeting template collection.
661 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
662 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
663 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
664 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
665 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
666 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
667 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
668 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
669 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
670 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
671 },
672 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
673 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
674 { # Contains information about a Contextual Keyword that can be targeted by ads.
675 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
676 },
677 ],
678 },
679 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
680 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
681 &quot;A String&quot;,
682 ],
683 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
684 42,
685 ],
686 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
687 },
688 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
689 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
690 { # Contains information about a city that can be targeted by ads.
691 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
692 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
693 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
694 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
695 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
696 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
697 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
698 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
699 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
700 },
701 ],
702 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
703 { # Contains information about a country that can be targeted by ads.
704 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
705 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
706 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
707 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
708 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
709 },
710 ],
711 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
712 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
713 { # Contains information about a metro region that can be targeted by ads.
714 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
715 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
716 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
717 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
718 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
719 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
720 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
721 },
722 ],
723 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
724 { # Contains information about a postal code that can be targeted by ads.
725 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
726 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
727 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
728 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
729 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
730 },
731 ],
732 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
733 { # Contains information about a region that can be targeted by ads.
734 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
735 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
736 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
737 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
738 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
739 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
740 },
741 ],
742 },
743 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
744 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
745 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
746 },
747 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
748 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
749 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
750 { # Contains information about a language that can be targeted by ads.
751 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
752 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
753 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
754 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
755 },
756 ],
757 },
758 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
759 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
760 },
761 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
762 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
763 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
764 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
765 { # Contains information about a browser that can be targeted by ads.
766 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
767 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
768 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
769 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
770 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
771 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
772 },
773 ],
774 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
775 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
776 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
777 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
778 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
779 },
780 ],
781 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
782 { # Contains information about a mobile carrier that can be targeted by ads.
783 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
784 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
785 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
786 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
787 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
788 },
789 ],
790 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
791 { # Contains information about a particular version of an operating system that can be targeted by ads.
792 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
793 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
794 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
795 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
796 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
797 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
798 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
799 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
800 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
801 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
802 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
803 },
804 },
805 ],
806 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
807 { # Contains information about an operating system that can be targeted by ads.
808 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
809 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
810 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
811 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
812 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
813 },
814 ],
815 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
816 { # Contains information about a platform type that can be targeted by ads.
817 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
818 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
819 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
820 },
821 ],
822 },
823 },
824 ],
825 }</pre>
826 </div>
827
828 <div class="method">
829 <code class="details" id="list_next">list_next()</code>
830 <pre>Retrieves the next page of results.
831
832 Args:
833 previous_request: The request for the previous page. (required)
834 previous_response: The response from the request for the previous page. (required)
835
836 Returns:
837 A request object that you can call &#x27;execute()&#x27; on to request the next
838 page. Returns None if there are no more items in the collection.
839 </pre>
840 </div>
841
842 <div class="method">
843 <code class="details" id="patch">patch(profileId, id, body=None, x__xgafv=None)</code>
844 <pre>Updates an existing targeting template. This method supports patch semantics.
845
846 Args:
847 profileId: string, User profile ID associated with this request. (required)
848 id: string, Required. RemarketingList ID. (required)
849 body: object, The request body.
850 The object takes the form of:
851
852 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
853 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
854 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
855 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
856 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
857 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
858 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
859 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
860 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
861 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
862 },
863 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
864 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
865 { # Contains information about a Contextual Keyword that can be targeted by ads.
866 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
867 },
868 ],
869 },
870 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
871 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
872 &quot;A String&quot;,
873 ],
874 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
875 42,
876 ],
877 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
878 },
879 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
880 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
881 { # Contains information about a city that can be targeted by ads.
882 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
883 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
884 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
885 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
886 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
887 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
888 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
889 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
890 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
891 },
892 ],
893 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
894 { # Contains information about a country that can be targeted by ads.
895 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
896 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
897 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
898 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
899 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
900 },
901 ],
902 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
903 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
904 { # Contains information about a metro region that can be targeted by ads.
905 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
906 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
907 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
908 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
909 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
910 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
911 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
912 },
913 ],
914 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
915 { # Contains information about a postal code that can be targeted by ads.
916 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
917 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
918 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
919 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
920 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
921 },
922 ],
923 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
924 { # Contains information about a region that can be targeted by ads.
925 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
926 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
927 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
928 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
929 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
930 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
931 },
932 ],
933 },
934 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
935 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
936 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
937 },
938 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
939 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
940 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
941 { # Contains information about a language that can be targeted by ads.
942 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
943 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
944 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
945 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
946 },
947 ],
948 },
949 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
950 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
951 },
952 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
953 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
954 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
955 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
956 { # Contains information about a browser that can be targeted by ads.
957 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
958 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
959 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
960 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
961 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
962 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
963 },
964 ],
965 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
966 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
967 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
968 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
969 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
970 },
971 ],
972 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
973 { # Contains information about a mobile carrier that can be targeted by ads.
974 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
975 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
976 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
977 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
978 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
979 },
980 ],
981 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
982 { # Contains information about a particular version of an operating system that can be targeted by ads.
983 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
984 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
985 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
986 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
987 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
988 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
989 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
990 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
991 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
992 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
993 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
994 },
995 },
996 ],
997 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
998 { # Contains information about an operating system that can be targeted by ads.
999 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1000 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1001 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1002 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1003 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1004 },
1005 ],
1006 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
1007 { # Contains information about a platform type that can be targeted by ads.
1008 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
1009 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
1010 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
1011 },
1012 ],
1013 },
1014 }
1015
1016 x__xgafv: string, V1 error format.
1017 Allowed values
1018 1 - v1 error format
1019 2 - v2 error format
1020
1021 Returns:
1022 An object of the form:
1023
1024 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
1025 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1026 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
1027 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1028 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
1029 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
1030 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
1031 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
1032 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
1033 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
1034 },
1035 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
1036 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
1037 { # Contains information about a Contextual Keyword that can be targeted by ads.
1038 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
1039 },
1040 ],
1041 },
1042 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
1043 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
1044 &quot;A String&quot;,
1045 ],
1046 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
1047 42,
1048 ],
1049 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
1050 },
1051 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
1052 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
1053 { # Contains information about a city that can be targeted by ads.
1054 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
1055 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
1056 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
1057 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
1058 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
1059 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
1060 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
1061 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
1062 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
1063 },
1064 ],
1065 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
1066 { # Contains information about a country that can be targeted by ads.
1067 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
1068 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
1069 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
1070 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
1071 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
1072 },
1073 ],
1074 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
1075 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
1076 { # Contains information about a metro region that can be targeted by ads.
1077 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
1078 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
1079 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
1080 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
1081 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
1082 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
1083 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
1084 },
1085 ],
1086 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
1087 { # Contains information about a postal code that can be targeted by ads.
1088 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
1089 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
1090 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
1091 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
1092 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
1093 },
1094 ],
1095 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
1096 { # Contains information about a region that can be targeted by ads.
1097 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
1098 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
1099 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
1100 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
1101 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
1102 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
1103 },
1104 ],
1105 },
1106 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
1107 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
1108 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
1109 },
1110 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
1111 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
1112 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
1113 { # Contains information about a language that can be targeted by ads.
1114 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
1115 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
1116 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
1117 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
1118 },
1119 ],
1120 },
1121 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
1122 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
1123 },
1124 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
1125 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1126 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
1127 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
1128 { # Contains information about a browser that can be targeted by ads.
1129 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
1130 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
1131 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
1132 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1133 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1134 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
1135 },
1136 ],
1137 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
1138 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
1139 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
1140 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
1141 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
1142 },
1143 ],
1144 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
1145 { # Contains information about a mobile carrier that can be targeted by ads.
1146 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
1147 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
1148 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
1149 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
1150 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
1151 },
1152 ],
1153 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
1154 { # Contains information about a particular version of an operating system that can be targeted by ads.
1155 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
1156 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
1157 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
1158 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
1159 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
1160 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
1161 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1162 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1163 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1164 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1165 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1166 },
1167 },
1168 ],
1169 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
1170 { # Contains information about an operating system that can be targeted by ads.
1171 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1172 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1173 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1174 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1175 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1176 },
1177 ],
1178 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
1179 { # Contains information about a platform type that can be targeted by ads.
1180 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
1181 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
1182 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
1183 },
1184 ],
1185 },
1186 }</pre>
1187 </div>
1188
1189 <div class="method">
1190 <code class="details" id="update">update(profileId, body=None, x__xgafv=None)</code>
1191 <pre>Updates an existing targeting template.
1192
1193 Args:
1194 profileId: string, User profile ID associated with this request. (required)
1195 body: object, The request body.
1196 The object takes the form of:
1197
1198 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
1199 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1200 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
1201 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1202 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
1203 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
1204 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
1205 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
1206 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
1207 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
1208 },
1209 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
1210 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
1211 { # Contains information about a Contextual Keyword that can be targeted by ads.
1212 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
1213 },
1214 ],
1215 },
1216 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
1217 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
1218 &quot;A String&quot;,
1219 ],
1220 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
1221 42,
1222 ],
1223 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
1224 },
1225 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
1226 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
1227 { # Contains information about a city that can be targeted by ads.
1228 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
1229 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
1230 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
1231 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
1232 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
1233 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
1234 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
1235 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
1236 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
1237 },
1238 ],
1239 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
1240 { # Contains information about a country that can be targeted by ads.
1241 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
1242 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
1243 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
1244 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
1245 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
1246 },
1247 ],
1248 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
1249 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
1250 { # Contains information about a metro region that can be targeted by ads.
1251 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
1252 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
1253 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
1254 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
1255 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
1256 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
1257 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
1258 },
1259 ],
1260 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
1261 { # Contains information about a postal code that can be targeted by ads.
1262 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
1263 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
1264 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
1265 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
1266 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
1267 },
1268 ],
1269 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
1270 { # Contains information about a region that can be targeted by ads.
1271 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
1272 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
1273 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
1274 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
1275 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
1276 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
1277 },
1278 ],
1279 },
1280 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
1281 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
1282 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
1283 },
1284 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
1285 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
1286 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
1287 { # Contains information about a language that can be targeted by ads.
1288 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
1289 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
1290 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
1291 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
1292 },
1293 ],
1294 },
1295 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
1296 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
1297 },
1298 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
1299 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1300 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
1301 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
1302 { # Contains information about a browser that can be targeted by ads.
1303 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
1304 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
1305 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
1306 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1307 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1308 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
1309 },
1310 ],
1311 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
1312 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
1313 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
1314 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
1315 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
1316 },
1317 ],
1318 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
1319 { # Contains information about a mobile carrier that can be targeted by ads.
1320 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
1321 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
1322 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
1323 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
1324 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
1325 },
1326 ],
1327 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
1328 { # Contains information about a particular version of an operating system that can be targeted by ads.
1329 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
1330 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
1331 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
1332 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
1333 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
1334 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
1335 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1336 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1337 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1338 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1339 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1340 },
1341 },
1342 ],
1343 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
1344 { # Contains information about an operating system that can be targeted by ads.
1345 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1346 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1347 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1348 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1349 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1350 },
1351 ],
1352 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
1353 { # Contains information about a platform type that can be targeted by ads.
1354 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
1355 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
1356 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
1357 },
1358 ],
1359 },
1360 }
1361
1362 x__xgafv: string, V1 error format.
1363 Allowed values
1364 1 - v1 error format
1365 2 - v2 error format
1366
1367 Returns:
1368 An object of the form:
1369
1370 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads.
1371 &quot;accountId&quot;: &quot;A String&quot;, # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1372 &quot;advertiserId&quot;: &quot;A String&quot;, # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert.
1373 &quot;advertiserIdDimensionValue&quot;: { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1374 &quot;dimensionName&quot;: &quot;A String&quot;, # The name of the dimension.
1375 &quot;etag&quot;: &quot;A String&quot;, # The eTag of this response for caching purposes.
1376 &quot;id&quot;: &quot;A String&quot;, # The ID associated with the value if available.
1377 &quot;kind&quot;: &quot;A String&quot;, # The kind of resource this is, in this case dfareporting#dimensionValue.
1378 &quot;matchType&quot;: &quot;A String&quot;, # Determines how the &#x27;value&#x27; field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, &#x27;*&#x27; is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions (&#x27;dfa:paidSearch*&#x27;) allow a matchType other than EXACT.
1379 &quot;value&quot;: &quot;A String&quot;, # The value of the dimension.
1380 },
1381 &quot;contextualKeywordTargeting&quot;: { # Contextual Keyword Targeting. # Optional. Contextual keyword targeting criteria.
1382 &quot;keywords&quot;: [ # Contextual keywords that this ad targets
1383 { # Contains information about a Contextual Keyword that can be targeted by ads.
1384 &quot;keyword&quot;: &quot;A String&quot;, # The keyword that can be targeted by ads.
1385 },
1386 ],
1387 },
1388 &quot;dayPartTargeting&quot;: { # Day Part Targeting. # Time and day targeting criteria.
1389 &quot;daysOfWeek&quot;: [ # Days of the week when the ad will serve. Acceptable values are: - &quot;SUNDAY&quot; - &quot;MONDAY&quot; - &quot;TUESDAY&quot; - &quot;WEDNESDAY&quot; - &quot;THURSDAY&quot; - &quot;FRIDAY&quot; - &quot;SATURDAY&quot;
1390 &quot;A String&quot;,
1391 ],
1392 &quot;hoursOfDay&quot;: [ # Hours of the day when the ad will serve, where 0 is midnight to 1 AM and 23 is 11 PM to midnight. Can be specified with days of week, in which case the ad would serve during these hours on the specified days. For example if Monday, Wednesday, Friday are the days of week specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm. Acceptable values are 0 to 23, inclusive.
1393 42,
1394 ],
1395 &quot;userLocalTime&quot;: True or False, # Whether or not to use the user&#x27;s local time. If false, the America/New York time zone applies.
1396 },
1397 &quot;geoTargeting&quot;: { # Geographical Targeting. # Geographical targeting criteria.
1398 &quot;cities&quot;: [ # Cities to be targeted. For each city only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a city, do not target or exclude the country of the city, and do not target the metro or region of the city.
1399 { # Contains information about a city that can be targeted by ads.
1400 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this city belongs.
1401 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this city belongs.
1402 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this city. This is the ID used for targeting and generating reports.
1403 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#city&quot;.
1404 &quot;metroCode&quot;: &quot;A String&quot;, # Metro region code of the metro region (DMA) to which this city belongs.
1405 &quot;metroDmaId&quot;: &quot;A String&quot;, # ID of the metro region (DMA) to which this city belongs.
1406 &quot;name&quot;: &quot;A String&quot;, # Name of this city.
1407 &quot;regionCode&quot;: &quot;A String&quot;, # Region code of the region to which this city belongs.
1408 &quot;regionDartId&quot;: &quot;A String&quot;, # DART ID of the region to which this city belongs.
1409 },
1410 ],
1411 &quot;countries&quot;: [ # Countries to be targeted or excluded from targeting, depending on the setting of the excludeCountries field. For each country only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting or excluding a country, do not target regions, cities, metros, or postal codes in the same country.
1412 { # Contains information about a country that can be targeted by ads.
1413 &quot;countryCode&quot;: &quot;A String&quot;, # Country code.
1414 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this country. This is the ID used for targeting and generating reports.
1415 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#country&quot;.
1416 &quot;name&quot;: &quot;A String&quot;, # Name of this country.
1417 &quot;sslEnabled&quot;: True or False, # Whether ad serving supports secure servers in this country.
1418 },
1419 ],
1420 &quot;excludeCountries&quot;: True or False, # Whether or not to exclude the countries in the countries field from targeting. If false, the countries field refers to countries which will be targeted by the ad.
1421 &quot;metros&quot;: [ # Metros to be targeted. For each metro only dmaId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a metro, do not target or exclude the country of the metro.
1422 { # Contains information about a metro region that can be targeted by ads.
1423 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this metro region belongs.
1424 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this metro region belongs.
1425 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this metro region.
1426 &quot;dmaId&quot;: &quot;A String&quot;, # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code.
1427 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#metro&quot;.
1428 &quot;metroCode&quot;: &quot;A String&quot;, # Metro code of this metro region. This is equivalent to dma_id.
1429 &quot;name&quot;: &quot;A String&quot;, # Name of this metro region.
1430 },
1431 ],
1432 &quot;postalCodes&quot;: [ # Postal codes to be targeted. For each postal code only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a postal code, do not target or exclude the country of the postal code.
1433 { # Contains information about a postal code that can be targeted by ads.
1434 &quot;code&quot;: &quot;A String&quot;, # Postal code. This is equivalent to the id field.
1435 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this postal code belongs.
1436 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this postal code belongs.
1437 &quot;id&quot;: &quot;A String&quot;, # ID of this postal code.
1438 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#postalCode&quot;.
1439 },
1440 ],
1441 &quot;regions&quot;: [ # Regions to be targeted. For each region only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting a region, do not target or exclude the country of the region.
1442 { # Contains information about a region that can be targeted by ads.
1443 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this region belongs.
1444 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this region belongs.
1445 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this region.
1446 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#region&quot;.
1447 &quot;name&quot;: &quot;A String&quot;, # Name of this region.
1448 &quot;regionCode&quot;: &quot;A String&quot;, # Region code.
1449 },
1450 ],
1451 },
1452 &quot;id&quot;: &quot;A String&quot;, # ID of this targeting template. This is a read-only, auto-generated field.
1453 &quot;keyValueTargetingExpression&quot;: { # Key Value Targeting Expression. # Key-value targeting criteria.
1454 &quot;expression&quot;: &quot;A String&quot;, # Keyword expression being targeted by the ad.
1455 },
1456 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#targetingTemplate&quot;.
1457 &quot;languageTargeting&quot;: { # Language Targeting. # Language targeting criteria.
1458 &quot;languages&quot;: [ # Languages that this ad targets. For each language only languageId is required. The other fields are populated automatically when the ad is inserted or updated.
1459 { # Contains information about a language that can be targeted by ads.
1460 &quot;id&quot;: &quot;A String&quot;, # Language ID of this language. This is the ID used for targeting and generating reports.
1461 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#language&quot;.
1462 &quot;languageCode&quot;: &quot;A String&quot;, # Format of language code is an ISO 639 two-letter language code optionally followed by an underscore followed by an ISO 3166 code. Examples are &quot;en&quot; for English or &quot;zh_CN&quot; for Simplified Chinese.
1463 &quot;name&quot;: &quot;A String&quot;, # Name of this language.
1464 },
1465 ],
1466 },
1467 &quot;listTargetingExpression&quot;: { # Remarketing List Targeting Expression. # Remarketing list targeting criteria.
1468 &quot;expression&quot;: &quot;A String&quot;, # Expression describing which lists are being targeted by the ad.
1469 },
1470 &quot;name&quot;: &quot;A String&quot;, # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser.
1471 &quot;subaccountId&quot;: &quot;A String&quot;, # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert.
1472 &quot;technologyTargeting&quot;: { # Technology Targeting. # Technology platform targeting criteria.
1473 &quot;browsers&quot;: [ # Browsers that this ad targets. For each browser either set browserVersionId or dartId along with the version numbers. If both are specified, only browserVersionId will be used. The other fields are populated automatically when the ad is inserted or updated.
1474 { # Contains information about a browser that can be targeted by ads.
1475 &quot;browserVersionId&quot;: &quot;A String&quot;, # ID referring to this grouping of browser and version numbers. This is the ID used for targeting.
1476 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this browser. This is the ID used when generating reports.
1477 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#browser&quot;.
1478 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version number (leftmost number) of this browser. For example, for Chrome 5.0.376.86 beta, this field should be set to 5. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1479 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version number (number after first dot on left) of this browser. For example, for Chrome 5.0.375.86 beta, this field should be set to 0. An asterisk (*) may be used to target any version number, and a question mark (?) may be used to target cases where the version number cannot be identified. For example, Chrome *.* targets any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad server knows the browser is Firefox but can&#x27;t tell which version it is.
1480 &quot;name&quot;: &quot;A String&quot;, # Name of this browser.
1481 },
1482 ],
1483 &quot;connectionTypes&quot;: [ # Connection types that this ad targets. For each connection type only id is required. The other fields are populated automatically when the ad is inserted or updated.
1484 { # Contains information about an internet connection type that can be targeted by ads. Clients can use the connection type to target mobile vs. broadband users.
1485 &quot;id&quot;: &quot;A String&quot;, # ID of this connection type.
1486 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#connectionType&quot;.
1487 &quot;name&quot;: &quot;A String&quot;, # Name of this connection type.
1488 },
1489 ],
1490 &quot;mobileCarriers&quot;: [ # Mobile carriers that this ad targets. For each mobile carrier only id is required, and the other fields are populated automatically when the ad is inserted or updated. If targeting a mobile carrier, do not set targeting for any zip codes.
1491 { # Contains information about a mobile carrier that can be targeted by ads.
1492 &quot;countryCode&quot;: &quot;A String&quot;, # Country code of the country to which this mobile carrier belongs.
1493 &quot;countryDartId&quot;: &quot;A String&quot;, # DART ID of the country to which this mobile carrier belongs.
1494 &quot;id&quot;: &quot;A String&quot;, # ID of this mobile carrier.
1495 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#mobileCarrier&quot;.
1496 &quot;name&quot;: &quot;A String&quot;, # Name of this mobile carrier.
1497 },
1498 ],
1499 &quot;operatingSystemVersions&quot;: [ # Operating system versions that this ad targets. To target all versions, use operatingSystems. For each operating system version, only id is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system version, do not set targeting for the corresponding operating system in operatingSystems.
1500 { # Contains information about a particular version of an operating system that can be targeted by ads.
1501 &quot;id&quot;: &quot;A String&quot;, # ID of this operating system version.
1502 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystemVersion&quot;.
1503 &quot;majorVersion&quot;: &quot;A String&quot;, # Major version (leftmost number) of this operating system version.
1504 &quot;minorVersion&quot;: &quot;A String&quot;, # Minor version (number after the first dot) of this operating system version.
1505 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system version.
1506 &quot;operatingSystem&quot;: { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version.
1507 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1508 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1509 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1510 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1511 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1512 },
1513 },
1514 ],
1515 &quot;operatingSystems&quot;: [ # Operating systems that this ad targets. To target specific versions, use operatingSystemVersions. For each operating system only dartId is required. The other fields are populated automatically when the ad is inserted or updated. If targeting an operating system, do not set targeting for operating system versions for the same operating system.
1516 { # Contains information about an operating system that can be targeted by ads.
1517 &quot;dartId&quot;: &quot;A String&quot;, # DART ID of this operating system. This is the ID used for targeting.
1518 &quot;desktop&quot;: True or False, # Whether this operating system is for desktop.
1519 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#operatingSystem&quot;.
1520 &quot;mobile&quot;: True or False, # Whether this operating system is for mobile.
1521 &quot;name&quot;: &quot;A String&quot;, # Name of this operating system.
1522 },
1523 ],
1524 &quot;platformTypes&quot;: [ # Platform types that this ad targets. For example, desktop, mobile, or tablet. For each platform type, only id is required, and the other fields are populated automatically when the ad is inserted or updated.
1525 { # Contains information about a platform type that can be targeted by ads.
1526 &quot;id&quot;: &quot;A String&quot;, # ID of this platform type.
1527 &quot;kind&quot;: &quot;A String&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;dfareporting#platformType&quot;.
1528 &quot;name&quot;: &quot;A String&quot;, # Name of this platform type.
1529 },
1530 ],
1531 },
1532 }</pre>
1533 </div>
1534
1535 </body></html>