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