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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 121 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 122 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 123 "dimensionName": "A String", # The name of the dimension. 124 "etag": "A String", # The eTag of this response for caching purposes. 125 "id": "A String", # The ID associated with the value if available. 126 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 127 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 128 "value": "A String", # The value of the dimension. 129 }, 130 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 131 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 132 "A String", 133 ], 134 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 138 }, 139 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 140 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 143 "countryDartId": "A String", # DART ID of the country to which this city belongs. 144 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 145 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 146 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 147 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 148 "name": "A String", # Name of this city. 149 "regionCode": "A String", # Region code of the region to which this city belongs. 150 "regionDartId": "A String", # DART ID of the region to which this city belongs. 151 }, 152 ], 153 "countries": [ # 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 "countryCode": "A String", # Country code. 156 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 157 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 158 "name": "A String", # Name of this country. 159 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 160 }, 161 ], 162 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 166 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 167 "dartId": "A String", # DART ID of this metro region. 168 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 169 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 170 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 171 "name": "A String", # Name of this metro region. 172 }, 173 ], 174 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 177 "countryCode": "A String", # Country code of the country to which this postal code belongs. 178 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 179 "id": "A String", # ID of this postal code. 180 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 181 }, 182 ], 183 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 186 "countryDartId": "A String", # DART ID of the country to which this region belongs. 187 "dartId": "A String", # DART ID of this region. 188 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 189 "name": "A String", # Name of this region. 190 "regionCode": "A String", # Region code. 191 }, 192 ], 193 }, 194 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 195 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 196 "expression": "A String", # Keyword expression being targeted by the ad. 197 }, 198 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 199 "languageTargeting": { # Language Targeting. # Language targeting criteria. 200 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 203 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 204 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 205 "name": "A String", # Name of this language. 206 }, 207 ], 208 }, 209 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 210 "expression": "A String", # Expression describing which lists are being targeted by the ad. 211 }, 212 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 213 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 214 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 215 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 218 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 219 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 220 "majorVersion": "A String", # 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't tell which version it is. 221 "minorVersion": "A String", # 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't tell which version it is. 222 "name": "A String", # Name of this browser. 223 }, 224 ], 225 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 228 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 229 "name": "A String", # Name of this connection type. 230 }, 231 ], 232 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 235 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 236 "id": "A String", # ID of this mobile carrier. 237 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 238 "name": "A String", # Name of this mobile carrier. 239 }, 240 ], 241 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 244 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 245 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 246 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 247 "name": "A String", # Name of this operating system version. 248 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 249 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 250 "desktop": True or False, # Whether this operating system is for desktop. 251 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 252 "mobile": True or False, # Whether this operating system is for mobile. 253 "name": "A String", # Name of this operating system. 254 }, 255 }, 256 ], 257 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 260 "desktop": True or False, # Whether this operating system is for desktop. 261 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 262 "mobile": True or False, # Whether this operating system is for mobile. 263 "name": "A String", # Name of this operating system. 264 }, 265 ], 266 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 269 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 270 "name": "A String", # 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 288 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 289 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 290 "dimensionName": "A String", # The name of the dimension. 291 "etag": "A String", # The eTag of this response for caching purposes. 292 "id": "A String", # The ID associated with the value if available. 293 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 294 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 295 "value": "A String", # The value of the dimension. 296 }, 297 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 298 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 299 "A String", 300 ], 301 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 305 }, 306 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 307 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 310 "countryDartId": "A String", # DART ID of the country to which this city belongs. 311 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 312 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 313 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 314 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 315 "name": "A String", # Name of this city. 316 "regionCode": "A String", # Region code of the region to which this city belongs. 317 "regionDartId": "A String", # DART ID of the region to which this city belongs. 318 }, 319 ], 320 "countries": [ # 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 "countryCode": "A String", # Country code. 323 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 324 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 325 "name": "A String", # Name of this country. 326 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 327 }, 328 ], 329 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 333 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 334 "dartId": "A String", # DART ID of this metro region. 335 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 336 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 337 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 338 "name": "A String", # Name of this metro region. 339 }, 340 ], 341 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 344 "countryCode": "A String", # Country code of the country to which this postal code belongs. 345 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 346 "id": "A String", # ID of this postal code. 347 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 348 }, 349 ], 350 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 353 "countryDartId": "A String", # DART ID of the country to which this region belongs. 354 "dartId": "A String", # DART ID of this region. 355 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 356 "name": "A String", # Name of this region. 357 "regionCode": "A String", # Region code. 358 }, 359 ], 360 }, 361 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 362 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 363 "expression": "A String", # Keyword expression being targeted by the ad. 364 }, 365 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 366 "languageTargeting": { # Language Targeting. # Language targeting criteria. 367 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 370 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 371 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 372 "name": "A String", # Name of this language. 373 }, 374 ], 375 }, 376 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 377 "expression": "A String", # Expression describing which lists are being targeted by the ad. 378 }, 379 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 380 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 381 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 382 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 385 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 386 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 387 "majorVersion": "A String", # 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't tell which version it is. 388 "minorVersion": "A String", # 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't tell which version it is. 389 "name": "A String", # Name of this browser. 390 }, 391 ], 392 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 395 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 396 "name": "A String", # Name of this connection type. 397 }, 398 ], 399 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 402 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 403 "id": "A String", # ID of this mobile carrier. 404 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 405 "name": "A String", # Name of this mobile carrier. 406 }, 407 ], 408 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 411 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 412 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 413 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 414 "name": "A String", # Name of this operating system version. 415 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 416 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 417 "desktop": True or False, # Whether this operating system is for desktop. 418 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 419 "mobile": True or False, # Whether this operating system is for mobile. 420 "name": "A String", # Name of this operating system. 421 }, 422 }, 423 ], 424 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 427 "desktop": True or False, # Whether this operating system is for desktop. 428 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 429 "mobile": True or False, # Whether this operating system is for mobile. 430 "name": "A String", # Name of this operating system. 431 }, 432 ], 433 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 436 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 437 "name": "A String", # 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 453 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 454 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 455 "dimensionName": "A String", # The name of the dimension. 456 "etag": "A String", # The eTag of this response for caching purposes. 457 "id": "A String", # The ID associated with the value if available. 458 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 459 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 460 "value": "A String", # The value of the dimension. 461 }, 462 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 463 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 464 "A String", 465 ], 466 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 470 }, 471 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 472 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 475 "countryDartId": "A String", # DART ID of the country to which this city belongs. 476 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 477 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 478 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 479 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 480 "name": "A String", # Name of this city. 481 "regionCode": "A String", # Region code of the region to which this city belongs. 482 "regionDartId": "A String", # DART ID of the region to which this city belongs. 483 }, 484 ], 485 "countries": [ # 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 "countryCode": "A String", # Country code. 488 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 489 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 490 "name": "A String", # Name of this country. 491 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 492 }, 493 ], 494 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 498 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 499 "dartId": "A String", # DART ID of this metro region. 500 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 501 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 502 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 503 "name": "A String", # Name of this metro region. 504 }, 505 ], 506 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 509 "countryCode": "A String", # Country code of the country to which this postal code belongs. 510 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 511 "id": "A String", # ID of this postal code. 512 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 513 }, 514 ], 515 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 518 "countryDartId": "A String", # DART ID of the country to which this region belongs. 519 "dartId": "A String", # DART ID of this region. 520 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 521 "name": "A String", # Name of this region. 522 "regionCode": "A String", # Region code. 523 }, 524 ], 525 }, 526 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 527 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 528 "expression": "A String", # Keyword expression being targeted by the ad. 529 }, 530 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 531 "languageTargeting": { # Language Targeting. # Language targeting criteria. 532 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 535 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 536 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 537 "name": "A String", # Name of this language. 538 }, 539 ], 540 }, 541 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 542 "expression": "A String", # Expression describing which lists are being targeted by the ad. 543 }, 544 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 545 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 546 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 547 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 550 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 551 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 552 "majorVersion": "A String", # 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't tell which version it is. 553 "minorVersion": "A String", # 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't tell which version it is. 554 "name": "A String", # Name of this browser. 555 }, 556 ], 557 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 560 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 561 "name": "A String", # Name of this connection type. 562 }, 563 ], 564 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 567 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 568 "id": "A String", # ID of this mobile carrier. 569 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 570 "name": "A String", # Name of this mobile carrier. 571 }, 572 ], 573 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 576 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 577 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 578 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 579 "name": "A String", # Name of this operating system version. 580 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 581 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 582 "desktop": True or False, # Whether this operating system is for desktop. 583 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 584 "mobile": True or False, # Whether this operating system is for mobile. 585 "name": "A String", # Name of this operating system. 586 }, 587 }, 588 ], 589 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 592 "desktop": True or False, # Whether this operating system is for desktop. 593 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 594 "mobile": True or False, # Whether this operating system is for mobile. 595 "name": "A String", # Name of this operating system. 596 }, 597 ], 598 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 601 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 602 "name": "A String", # 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, "template*2015" will return objects with names like "template June 2015", "template April 2015", or simply "template 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "template" will match objects with name "my template", "template 2015", or simply "template". 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 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplatesListResponse". 638 "nextPageToken": "A String", # Pagination token to be used for the next list operation. 639 "targetingTemplates": [ # Targeting template collection. 640 { # Contains properties of a targeting template. A targeting template encapsulates targeting information which can be reused across multiple ads. 641 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 642 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 643 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 644 "dimensionName": "A String", # The name of the dimension. 645 "etag": "A String", # The eTag of this response for caching purposes. 646 "id": "A String", # The ID associated with the value if available. 647 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 648 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 649 "value": "A String", # The value of the dimension. 650 }, 651 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 652 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 653 "A String", 654 ], 655 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 659 }, 660 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 661 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 664 "countryDartId": "A String", # DART ID of the country to which this city belongs. 665 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 666 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 667 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 668 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 669 "name": "A String", # Name of this city. 670 "regionCode": "A String", # Region code of the region to which this city belongs. 671 "regionDartId": "A String", # DART ID of the region to which this city belongs. 672 }, 673 ], 674 "countries": [ # 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 "countryCode": "A String", # Country code. 677 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 678 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 679 "name": "A String", # Name of this country. 680 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 681 }, 682 ], 683 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 687 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 688 "dartId": "A String", # DART ID of this metro region. 689 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 690 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 691 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 692 "name": "A String", # Name of this metro region. 693 }, 694 ], 695 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 698 "countryCode": "A String", # Country code of the country to which this postal code belongs. 699 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 700 "id": "A String", # ID of this postal code. 701 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 702 }, 703 ], 704 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 707 "countryDartId": "A String", # DART ID of the country to which this region belongs. 708 "dartId": "A String", # DART ID of this region. 709 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 710 "name": "A String", # Name of this region. 711 "regionCode": "A String", # Region code. 712 }, 713 ], 714 }, 715 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 716 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 717 "expression": "A String", # Keyword expression being targeted by the ad. 718 }, 719 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 720 "languageTargeting": { # Language Targeting. # Language targeting criteria. 721 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 724 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 725 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 726 "name": "A String", # Name of this language. 727 }, 728 ], 729 }, 730 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 731 "expression": "A String", # Expression describing which lists are being targeted by the ad. 732 }, 733 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 734 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 735 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 736 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 739 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 740 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 741 "majorVersion": "A String", # 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't tell which version it is. 742 "minorVersion": "A String", # 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't tell which version it is. 743 "name": "A String", # Name of this browser. 744 }, 745 ], 746 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 749 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 750 "name": "A String", # Name of this connection type. 751 }, 752 ], 753 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 756 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 757 "id": "A String", # ID of this mobile carrier. 758 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 759 "name": "A String", # Name of this mobile carrier. 760 }, 761 ], 762 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 765 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 766 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 767 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 768 "name": "A String", # Name of this operating system version. 769 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 770 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 771 "desktop": True or False, # Whether this operating system is for desktop. 772 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 773 "mobile": True or False, # Whether this operating system is for mobile. 774 "name": "A String", # Name of this operating system. 775 }, 776 }, 777 ], 778 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 781 "desktop": True or False, # Whether this operating system is for desktop. 782 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 783 "mobile": True or False, # Whether this operating system is for mobile. 784 "name": "A String", # Name of this operating system. 785 }, 786 ], 787 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 790 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 791 "name": "A String", # 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 'execute()' 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 826 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 827 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 828 "dimensionName": "A String", # The name of the dimension. 829 "etag": "A String", # The eTag of this response for caching purposes. 830 "id": "A String", # The ID associated with the value if available. 831 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 832 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 833 "value": "A String", # The value of the dimension. 834 }, 835 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 836 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 837 "A String", 838 ], 839 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 843 }, 844 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 845 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 848 "countryDartId": "A String", # DART ID of the country to which this city belongs. 849 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 850 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 851 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 852 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 853 "name": "A String", # Name of this city. 854 "regionCode": "A String", # Region code of the region to which this city belongs. 855 "regionDartId": "A String", # DART ID of the region to which this city belongs. 856 }, 857 ], 858 "countries": [ # 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 "countryCode": "A String", # Country code. 861 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 862 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 863 "name": "A String", # Name of this country. 864 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 865 }, 866 ], 867 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 871 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 872 "dartId": "A String", # DART ID of this metro region. 873 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 874 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 875 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 876 "name": "A String", # Name of this metro region. 877 }, 878 ], 879 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 882 "countryCode": "A String", # Country code of the country to which this postal code belongs. 883 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 884 "id": "A String", # ID of this postal code. 885 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 886 }, 887 ], 888 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 891 "countryDartId": "A String", # DART ID of the country to which this region belongs. 892 "dartId": "A String", # DART ID of this region. 893 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 894 "name": "A String", # Name of this region. 895 "regionCode": "A String", # Region code. 896 }, 897 ], 898 }, 899 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 900 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 901 "expression": "A String", # Keyword expression being targeted by the ad. 902 }, 903 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 904 "languageTargeting": { # Language Targeting. # Language targeting criteria. 905 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 908 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 909 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 910 "name": "A String", # Name of this language. 911 }, 912 ], 913 }, 914 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 915 "expression": "A String", # Expression describing which lists are being targeted by the ad. 916 }, 917 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 918 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 919 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 920 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 923 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 924 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 925 "majorVersion": "A String", # 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't tell which version it is. 926 "minorVersion": "A String", # 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't tell which version it is. 927 "name": "A String", # Name of this browser. 928 }, 929 ], 930 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 933 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 934 "name": "A String", # Name of this connection type. 935 }, 936 ], 937 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 940 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 941 "id": "A String", # ID of this mobile carrier. 942 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 943 "name": "A String", # Name of this mobile carrier. 944 }, 945 ], 946 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 949 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 950 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 951 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 952 "name": "A String", # Name of this operating system version. 953 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 954 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 955 "desktop": True or False, # Whether this operating system is for desktop. 956 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 957 "mobile": True or False, # Whether this operating system is for mobile. 958 "name": "A String", # Name of this operating system. 959 }, 960 }, 961 ], 962 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 965 "desktop": True or False, # Whether this operating system is for desktop. 966 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 967 "mobile": True or False, # Whether this operating system is for mobile. 968 "name": "A String", # Name of this operating system. 969 }, 970 ], 971 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 974 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 975 "name": "A String", # 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 991 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 992 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 993 "dimensionName": "A String", # The name of the dimension. 994 "etag": "A String", # The eTag of this response for caching purposes. 995 "id": "A String", # The ID associated with the value if available. 996 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 997 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 998 "value": "A String", # The value of the dimension. 999 }, 1000 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 1001 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 1002 "A String", 1003 ], 1004 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1008 }, 1009 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 1010 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 1013 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1014 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1015 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1016 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1017 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1018 "name": "A String", # Name of this city. 1019 "regionCode": "A String", # Region code of the region to which this city belongs. 1020 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1021 }, 1022 ], 1023 "countries": [ # 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 "countryCode": "A String", # Country code. 1026 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1027 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1028 "name": "A String", # Name of this country. 1029 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1030 }, 1031 ], 1032 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1036 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1037 "dartId": "A String", # DART ID of this metro region. 1038 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 1039 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1040 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1041 "name": "A String", # Name of this metro region. 1042 }, 1043 ], 1044 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 1047 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1048 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1049 "id": "A String", # ID of this postal code. 1050 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1051 }, 1052 ], 1053 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 1056 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1057 "dartId": "A String", # DART ID of this region. 1058 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1059 "name": "A String", # Name of this region. 1060 "regionCode": "A String", # Region code. 1061 }, 1062 ], 1063 }, 1064 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 1065 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 1066 "expression": "A String", # Keyword expression being targeted by the ad. 1067 }, 1068 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 1069 "languageTargeting": { # Language Targeting. # Language targeting criteria. 1070 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1073 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1074 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 1075 "name": "A String", # Name of this language. 1076 }, 1077 ], 1078 }, 1079 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 1080 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1081 }, 1082 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 1083 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 1084 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 1085 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 1088 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 1089 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 1090 "majorVersion": "A String", # 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't tell which version it is. 1091 "minorVersion": "A String", # 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't tell which version it is. 1092 "name": "A String", # Name of this browser. 1093 }, 1094 ], 1095 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 1098 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 1099 "name": "A String", # Name of this connection type. 1100 }, 1101 ], 1102 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 1105 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 1106 "id": "A String", # ID of this mobile carrier. 1107 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 1108 "name": "A String", # Name of this mobile carrier. 1109 }, 1110 ], 1111 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 1114 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 1115 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 1116 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 1117 "name": "A String", # Name of this operating system version. 1118 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 1119 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1120 "desktop": True or False, # Whether this operating system is for desktop. 1121 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1122 "mobile": True or False, # Whether this operating system is for mobile. 1123 "name": "A String", # Name of this operating system. 1124 }, 1125 }, 1126 ], 1127 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1130 "desktop": True or False, # Whether this operating system is for desktop. 1131 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1132 "mobile": True or False, # Whether this operating system is for mobile. 1133 "name": "A String", # Name of this operating system. 1134 }, 1135 ], 1136 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 1139 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 1140 "name": "A String", # 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 1158 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 1159 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 1160 "dimensionName": "A String", # The name of the dimension. 1161 "etag": "A String", # The eTag of this response for caching purposes. 1162 "id": "A String", # The ID associated with the value if available. 1163 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 1164 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 1165 "value": "A String", # The value of the dimension. 1166 }, 1167 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 1168 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 1169 "A String", 1170 ], 1171 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1175 }, 1176 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 1177 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 1180 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1181 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1182 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1183 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1184 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1185 "name": "A String", # Name of this city. 1186 "regionCode": "A String", # Region code of the region to which this city belongs. 1187 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1188 }, 1189 ], 1190 "countries": [ # 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 "countryCode": "A String", # Country code. 1193 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1194 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1195 "name": "A String", # Name of this country. 1196 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1197 }, 1198 ], 1199 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1203 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1204 "dartId": "A String", # DART ID of this metro region. 1205 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 1206 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1207 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1208 "name": "A String", # Name of this metro region. 1209 }, 1210 ], 1211 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 1214 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1215 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1216 "id": "A String", # ID of this postal code. 1217 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1218 }, 1219 ], 1220 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 1223 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1224 "dartId": "A String", # DART ID of this region. 1225 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1226 "name": "A String", # Name of this region. 1227 "regionCode": "A String", # Region code. 1228 }, 1229 ], 1230 }, 1231 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 1232 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 1233 "expression": "A String", # Keyword expression being targeted by the ad. 1234 }, 1235 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 1236 "languageTargeting": { # Language Targeting. # Language targeting criteria. 1237 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1240 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1241 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 1242 "name": "A String", # Name of this language. 1243 }, 1244 ], 1245 }, 1246 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 1247 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1248 }, 1249 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 1250 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 1251 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 1252 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 1255 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 1256 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 1257 "majorVersion": "A String", # 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't tell which version it is. 1258 "minorVersion": "A String", # 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't tell which version it is. 1259 "name": "A String", # Name of this browser. 1260 }, 1261 ], 1262 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 1265 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 1266 "name": "A String", # Name of this connection type. 1267 }, 1268 ], 1269 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 1272 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 1273 "id": "A String", # ID of this mobile carrier. 1274 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 1275 "name": "A String", # Name of this mobile carrier. 1276 }, 1277 ], 1278 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 1281 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 1282 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 1283 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 1284 "name": "A String", # Name of this operating system version. 1285 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 1286 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1287 "desktop": True or False, # Whether this operating system is for desktop. 1288 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1289 "mobile": True or False, # Whether this operating system is for mobile. 1290 "name": "A String", # Name of this operating system. 1291 }, 1292 }, 1293 ], 1294 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1297 "desktop": True or False, # Whether this operating system is for desktop. 1298 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1299 "mobile": True or False, # Whether this operating system is for mobile. 1300 "name": "A String", # Name of this operating system. 1301 }, 1302 ], 1303 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 1306 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 1307 "name": "A String", # 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 "accountId": "A String", # Account ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 1323 "advertiserId": "A String", # Advertiser ID of this targeting template. This is a required field on insert and is read-only after insert. 1324 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 1325 "dimensionName": "A String", # The name of the dimension. 1326 "etag": "A String", # The eTag of this response for caching purposes. 1327 "id": "A String", # The ID associated with the value if available. 1328 "kind": "A String", # The kind of resource this is, in this case dfareporting#dimensionValue. 1329 "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT. 1330 "value": "A String", # The value of the dimension. 1331 }, 1332 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting criteria. 1333 "daysOfWeek": [ # Days of the week when the ad will serve. Acceptable values are: - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" - "SATURDAY" 1334 "A String", 1335 ], 1336 "hoursOfDay": [ # 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 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1340 }, 1341 "geoTargeting": { # Geographical Targeting. # Geographical targeting criteria. 1342 "cities": [ # 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 "countryCode": "A String", # Country code of the country to which this city belongs. 1345 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1346 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1347 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1348 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1349 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1350 "name": "A String", # Name of this city. 1351 "regionCode": "A String", # Region code of the region to which this city belongs. 1352 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1353 }, 1354 ], 1355 "countries": [ # 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 "countryCode": "A String", # Country code. 1358 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1359 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1360 "name": "A String", # Name of this country. 1361 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1362 }, 1363 ], 1364 "excludeCountries": 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 "metros": [ # 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 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1368 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1369 "dartId": "A String", # DART ID of this metro region. 1370 "dmaId": "A String", # DMA ID of this metro region. This is the ID used for targeting and generating reports, and is equivalent to metro_code. 1371 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1372 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1373 "name": "A String", # Name of this metro region. 1374 }, 1375 ], 1376 "postalCodes": [ # 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 "code": "A String", # Postal code. This is equivalent to the id field. 1379 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1380 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1381 "id": "A String", # ID of this postal code. 1382 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1383 }, 1384 ], 1385 "regions": [ # 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 "countryCode": "A String", # Country code of the country to which this region belongs. 1388 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1389 "dartId": "A String", # DART ID of this region. 1390 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1391 "name": "A String", # Name of this region. 1392 "regionCode": "A String", # Region code. 1393 }, 1394 ], 1395 }, 1396 "id": "A String", # ID of this targeting template. This is a read-only, auto-generated field. 1397 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting criteria. 1398 "expression": "A String", # Keyword expression being targeted by the ad. 1399 }, 1400 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#targetingTemplate". 1401 "languageTargeting": { # Language Targeting. # Language targeting criteria. 1402 "languages": [ # 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 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1405 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1406 "languageCode": "A String", # 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 "en" for English or "zh_CN" for Simplified Chinese. 1407 "name": "A String", # Name of this language. 1408 }, 1409 ], 1410 }, 1411 "listTargetingExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting criteria. 1412 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1413 }, 1414 "name": "A String", # Name of this targeting template. This field is required. It must be less than 256 characters long and unique within an advertiser. 1415 "subaccountId": "A String", # Subaccount ID of this targeting template. This field, if left unset, will be auto-generated on insert and is read-only after insert. 1416 "technologyTargeting": { # Technology Targeting. # Technology platform targeting criteria. 1417 "browsers": [ # 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 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 1420 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 1421 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 1422 "majorVersion": "A String", # 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't tell which version it is. 1423 "minorVersion": "A String", # 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't tell which version it is. 1424 "name": "A String", # Name of this browser. 1425 }, 1426 ], 1427 "connectionTypes": [ # 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 "id": "A String", # ID of this connection type. 1430 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 1431 "name": "A String", # Name of this connection type. 1432 }, 1433 ], 1434 "mobileCarriers": [ # 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 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 1437 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 1438 "id": "A String", # ID of this mobile carrier. 1439 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 1440 "name": "A String", # Name of this mobile carrier. 1441 }, 1442 ], 1443 "operatingSystemVersions": [ # 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 "id": "A String", # ID of this operating system version. 1446 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 1447 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 1448 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 1449 "name": "A String", # Name of this operating system version. 1450 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 1451 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1452 "desktop": True or False, # Whether this operating system is for desktop. 1453 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1454 "mobile": True or False, # Whether this operating system is for mobile. 1455 "name": "A String", # Name of this operating system. 1456 }, 1457 }, 1458 ], 1459 "operatingSystems": [ # 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 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1462 "desktop": True or False, # Whether this operating system is for desktop. 1463 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1464 "mobile": True or False, # Whether this operating system is for mobile. 1465 "name": "A String", # Name of this operating system. 1466 }, 1467 ], 1468 "platformTypes": [ # 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 "id": "A String", # ID of this platform type. 1471 "kind": "A String", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 1472 "name": "A String", # Name of this platform type. 1473 }, 1474 ], 1475 }, 1476}</pre> 1477</div> 1478 1479</body></html>