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_1.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_1.ads.html">ads</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#get">get(profileId, id)</a></code></p> 79<p class="firstline">Gets one ad by ID.</p> 80<p class="toc_element"> 81 <code><a href="#insert">insert(profileId, body)</a></code></p> 82<p class="firstline">Inserts a new ad.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(profileId, landingPageIds=None, overriddenEventTagId=None, campaignIds=None, sizeIds=None, archived=None, creativeOptimizationConfigurationIds=None, sslCompliant=None, pageToken=None, sortOrder=None, type=None, sslRequired=None, creativeIds=None, remarketingListIds=None, maxResults=None, placementIds=None, active=None, compatibility=None, advertiserId=None, searchString=None, audienceSegmentIds=None, ids=None, sortField=None, dynamicClickTracker=None)</a></code></p> 85<p class="firstline">Retrieves a list of ads, possibly filtered. This method supports paging.</p> 86<p class="toc_element"> 87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 88<p class="firstline">Retrieves the next page of results.</p> 89<p class="toc_element"> 90 <code><a href="#patch">patch(profileId, id, body)</a></code></p> 91<p class="firstline">Updates an existing ad. This method supports patch semantics.</p> 92<p class="toc_element"> 93 <code><a href="#update">update(profileId, body)</a></code></p> 94<p class="firstline">Updates an existing ad.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="get">get(profileId, id)</code> 98 <pre>Gets one ad by ID. 99 100Args: 101 profileId: string, User profile ID associated with this request. (required) 102 id: string, Ad ID. (required) 103 104Returns: 105 An object of the form: 106 107 { # Contains properties of a Campaign Manager ad. 108 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 109 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 110 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 111 }, 112 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 113 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 114 "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. 115 { # Contains information about a language that can be targeted by ads. 116 "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. 117 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 118 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 119 "name": "A String", # Name of this language. 120 }, 121 ], 122 }, 123 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 124 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 125 "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. 126 { # Contains information about a country that can be targeted by ads. 127 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 128 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 129 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 130 "countryCode": "A String", # Country code. 131 "name": "A String", # Name of this country. 132 }, 133 ], 134 "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. 135 "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. 136 { # Contains information about a postal code that can be targeted by ads. 137 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 138 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 139 "code": "A String", # Postal code. This is equivalent to the id field. 140 "id": "A String", # ID of this postal code. 141 "countryCode": "A String", # Country code of the country to which this postal code belongs. 142 }, 143 ], 144 "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. 145 { # Contains information about a region that can be targeted by ads. 146 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 147 "countryDartId": "A String", # DART ID of the country to which this region belongs. 148 "name": "A String", # Name of this region. 149 "countryCode": "A String", # Country code of the country to which this region belongs. 150 "regionCode": "A String", # Region code. 151 "dartId": "A String", # DART ID of this region. 152 }, 153 ], 154 "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. 155 { # Contains information about a city that can be targeted by ads. 156 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 157 "countryDartId": "A String", # DART ID of the country to which this city belongs. 158 "name": "A String", # Name of this city. 159 "countryCode": "A String", # Country code of the country to which this city belongs. 160 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 161 "regionCode": "A String", # Region code of the region to which this city belongs. 162 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 163 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 164 "regionDartId": "A String", # DART ID of the region to which this city belongs. 165 }, 166 ], 167 "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. 168 { # Contains information about a metro region that can be targeted by ads. 169 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 170 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 171 "name": "A String", # Name of this metro region. 172 "countryCode": "A String", # Country code of the country to which this metro region belongs. 173 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 174 "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. 175 "dartId": "A String", # DART ID of this metro region. 176 }, 177 ], 178 }, 179 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 180 { # Creative Group Assignment. 181 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 182 "creativeGroupId": "A String", # ID of the creative group to be assigned. 183 }, 184 ], 185 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 186 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 187 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 188 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 189 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 190 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 191 }, 192 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 193 }, 194 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 195 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 196 "value": "A String", # The value of the dimension. 197 "dimensionName": "A String", # The name of the dimension. 198 "etag": "A String", # The eTag of this response for caching purposes. 199 "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. 200 "id": "A String", # The ID associated with the value if available. 201 }, 202 "eventTagOverrides": [ # Event tag overrides for this ad. 203 { # Event tag override information. 204 "enabled": True or False, # Whether this override is enabled. 205 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 206 }, 207 ], 208 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 209 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 210 "archived": True or False, # Whether this ad is archived. When true, active must be false. 211 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 212 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 213 "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. 214 { # Contains information about a platform type that can be targeted by ads. 215 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 216 "id": "A String", # ID of this platform type. 217 "name": "A String", # Name of this platform type. 218 }, 219 ], 220 "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. 221 { # Contains information about a particular version of an operating system that can be targeted by ads. 222 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 223 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 224 "name": "A String", # Name of this operating system version. 225 "id": "A String", # ID of this operating system version. 226 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 227 "mobile": True or False, # Whether this operating system is for mobile. 228 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 229 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 230 "name": "A String", # Name of this operating system. 231 "desktop": True or False, # Whether this operating system is for desktop. 232 }, 233 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 234 }, 235 ], 236 "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. 237 { # Contains information about a browser that can be targeted by ads. 238 "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. 239 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 240 "name": "A String", # Name of this browser. 241 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 242 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 243 "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. 244 }, 245 ], 246 "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. 247 { # Contains information about an operating system that can be targeted by ads. 248 "mobile": True or False, # Whether this operating system is for mobile. 249 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 250 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 251 "name": "A String", # Name of this operating system. 252 "desktop": True or False, # Whether this operating system is for desktop. 253 }, 254 ], 255 "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. 256 { # Contains information about a mobile carrier that can be targeted by ads. 257 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 258 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 259 "id": "A String", # ID of this mobile carrier. 260 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 261 "name": "A String", # Name of this mobile carrier. 262 }, 263 ], 264 "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. 265 { # 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. 266 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 267 "id": "A String", # ID of this connection type. 268 "name": "A String", # Name of this connection type. 269 }, 270 ], 271 }, 272 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 273 "creativeAssignments": [ # Creative assignments in this creative rotation. 274 { # Creative Assignment. 275 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 276 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 277 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 278 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 279 # Applicable when the creative type is any of the following: 280 # - DISPLAY 281 # - RICH_MEDIA_INPAGE 282 # - RICH_MEDIA_INPAGE_FLOATING 283 # - RICH_MEDIA_IM_EXPAND 284 # - RICH_MEDIA_EXPANDING 285 # - RICH_MEDIA_INTERSTITIAL_FLOAT 286 # - RICH_MEDIA_MOBILE_IN_APP 287 # - RICH_MEDIA_MULTI_FLOATING 288 # - RICH_MEDIA_PEEL_DOWN 289 # - VPAID_LINEAR 290 # - VPAID_NON_LINEAR 291 { # Rich Media Exit Override. 292 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 293 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 294 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 295 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 296 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 297 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 298 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 299 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 300 }, 301 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 302 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 303 }, 304 ], 305 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 306 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 307 { # Creative Group Assignment. 308 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 309 "creativeGroupId": "A String", # ID of the creative group to be assigned. 310 }, 311 ], 312 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 313 { # Companion Click-through override. 314 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 315 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 316 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 317 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 318 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 319 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 320 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 321 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 322 }, 323 "creativeId": "A String", # ID of the creative for this companion click-through override. 324 }, 325 ], 326 "startTime": "A String", # Date and time that the assigned creative should start serving. 327 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 328 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 329 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 330 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 331 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 332 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 333 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 334 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 335 }, 336 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 337 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 338 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 339 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 340 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 341 "value": "A String", # The value of the dimension. 342 "dimensionName": "A String", # The name of the dimension. 343 "etag": "A String", # The eTag of this response for caching purposes. 344 "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. 345 "id": "A String", # The ID associated with the value if available. 346 }, 347 }, 348 ], 349 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 350 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 351 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 352 }, 353 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 354 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 355 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 356 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 357 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 358 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 359 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 360 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 361 }, 362 "comments": "A String", # Comments for this ad. 363 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 364 "expression": "A String", # Expression describing which lists are being targeted by the ad. 365 }, 366 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 367 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 368 "value": "A String", # The value of the dimension. 369 "dimensionName": "A String", # The name of the dimension. 370 "etag": "A String", # The eTag of this response for caching purposes. 371 "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. 372 "id": "A String", # The ID associated with the value if available. 373 }, 374 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 375 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 376 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 377 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 378 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 379 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 380 }, 381 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 382 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 383 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 384 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 385 "expression": "A String", # Keyword expression being targeted by the ad. 386 }, 387 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 388 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 389 "value": "A String", # The value of the dimension. 390 "dimensionName": "A String", # The name of the dimension. 391 "etag": "A String", # The eTag of this response for caching purposes. 392 "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. 393 "id": "A String", # The ID associated with the value if available. 394 }, 395 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 396 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 397 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 398 }, 399 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 400 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 401 }, 402 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 403 "active": True or False, # Whether this ad is active. When true, archived must be false. 404 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 405 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 406 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 407 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 408 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 409 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 410 "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. 411 42, 412 ], 413 "daysOfWeek": [ # Days of the week when the ad will serve. 414 # 415 # Acceptable values are: 416 # - "SUNDAY" 417 # - "MONDAY" 418 # - "TUESDAY" 419 # - "WEDNESDAY" 420 # - "THURSDAY" 421 # - "FRIDAY" 422 # - "SATURDAY" 423 "A String", 424 ], 425 }, 426 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 427 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 428 }, 429 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 430 "placementAssignments": [ # Placement assignments for this ad. 431 { # Placement Assignment. 432 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 433 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 434 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 435 "value": "A String", # The value of the dimension. 436 "dimensionName": "A String", # The name of the dimension. 437 "etag": "A String", # The eTag of this response for caching purposes. 438 "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. 439 "id": "A String", # The ID associated with the value if available. 440 }, 441 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 442 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 443 }, 444 ], 445 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 446 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 447 }</pre> 448</div> 449 450<div class="method"> 451 <code class="details" id="insert">insert(profileId, body)</code> 452 <pre>Inserts a new ad. 453 454Args: 455 profileId: string, User profile ID associated with this request. (required) 456 body: object, The request body. (required) 457 The object takes the form of: 458 459{ # Contains properties of a Campaign Manager ad. 460 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 461 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 462 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 463 }, 464 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 465 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 466 "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. 467 { # Contains information about a language that can be targeted by ads. 468 "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. 469 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 470 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 471 "name": "A String", # Name of this language. 472 }, 473 ], 474 }, 475 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 476 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 477 "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. 478 { # Contains information about a country that can be targeted by ads. 479 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 480 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 481 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 482 "countryCode": "A String", # Country code. 483 "name": "A String", # Name of this country. 484 }, 485 ], 486 "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. 487 "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. 488 { # Contains information about a postal code that can be targeted by ads. 489 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 490 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 491 "code": "A String", # Postal code. This is equivalent to the id field. 492 "id": "A String", # ID of this postal code. 493 "countryCode": "A String", # Country code of the country to which this postal code belongs. 494 }, 495 ], 496 "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. 497 { # Contains information about a region that can be targeted by ads. 498 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 499 "countryDartId": "A String", # DART ID of the country to which this region belongs. 500 "name": "A String", # Name of this region. 501 "countryCode": "A String", # Country code of the country to which this region belongs. 502 "regionCode": "A String", # Region code. 503 "dartId": "A String", # DART ID of this region. 504 }, 505 ], 506 "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. 507 { # Contains information about a city that can be targeted by ads. 508 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 509 "countryDartId": "A String", # DART ID of the country to which this city belongs. 510 "name": "A String", # Name of this city. 511 "countryCode": "A String", # Country code of the country to which this city belongs. 512 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 513 "regionCode": "A String", # Region code of the region to which this city belongs. 514 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 515 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 516 "regionDartId": "A String", # DART ID of the region to which this city belongs. 517 }, 518 ], 519 "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. 520 { # Contains information about a metro region that can be targeted by ads. 521 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 522 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 523 "name": "A String", # Name of this metro region. 524 "countryCode": "A String", # Country code of the country to which this metro region belongs. 525 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 526 "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. 527 "dartId": "A String", # DART ID of this metro region. 528 }, 529 ], 530 }, 531 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 532 { # Creative Group Assignment. 533 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 534 "creativeGroupId": "A String", # ID of the creative group to be assigned. 535 }, 536 ], 537 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 538 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 539 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 540 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 541 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 542 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 543 }, 544 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 545 }, 546 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 547 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 548 "value": "A String", # The value of the dimension. 549 "dimensionName": "A String", # The name of the dimension. 550 "etag": "A String", # The eTag of this response for caching purposes. 551 "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. 552 "id": "A String", # The ID associated with the value if available. 553 }, 554 "eventTagOverrides": [ # Event tag overrides for this ad. 555 { # Event tag override information. 556 "enabled": True or False, # Whether this override is enabled. 557 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 558 }, 559 ], 560 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 561 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 562 "archived": True or False, # Whether this ad is archived. When true, active must be false. 563 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 564 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 565 "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. 566 { # Contains information about a platform type that can be targeted by ads. 567 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 568 "id": "A String", # ID of this platform type. 569 "name": "A String", # Name of this platform type. 570 }, 571 ], 572 "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. 573 { # Contains information about a particular version of an operating system that can be targeted by ads. 574 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 575 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 576 "name": "A String", # Name of this operating system version. 577 "id": "A String", # ID of this operating system version. 578 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 579 "mobile": True or False, # Whether this operating system is for mobile. 580 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 581 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 582 "name": "A String", # Name of this operating system. 583 "desktop": True or False, # Whether this operating system is for desktop. 584 }, 585 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 586 }, 587 ], 588 "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. 589 { # Contains information about a browser that can be targeted by ads. 590 "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. 591 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 592 "name": "A String", # Name of this browser. 593 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 594 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 595 "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. 596 }, 597 ], 598 "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. 599 { # Contains information about an operating system that can be targeted by ads. 600 "mobile": True or False, # Whether this operating system is for mobile. 601 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 602 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 603 "name": "A String", # Name of this operating system. 604 "desktop": True or False, # Whether this operating system is for desktop. 605 }, 606 ], 607 "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. 608 { # Contains information about a mobile carrier that can be targeted by ads. 609 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 610 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 611 "id": "A String", # ID of this mobile carrier. 612 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 613 "name": "A String", # Name of this mobile carrier. 614 }, 615 ], 616 "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. 617 { # 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. 618 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 619 "id": "A String", # ID of this connection type. 620 "name": "A String", # Name of this connection type. 621 }, 622 ], 623 }, 624 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 625 "creativeAssignments": [ # Creative assignments in this creative rotation. 626 { # Creative Assignment. 627 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 628 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 629 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 630 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 631 # Applicable when the creative type is any of the following: 632 # - DISPLAY 633 # - RICH_MEDIA_INPAGE 634 # - RICH_MEDIA_INPAGE_FLOATING 635 # - RICH_MEDIA_IM_EXPAND 636 # - RICH_MEDIA_EXPANDING 637 # - RICH_MEDIA_INTERSTITIAL_FLOAT 638 # - RICH_MEDIA_MOBILE_IN_APP 639 # - RICH_MEDIA_MULTI_FLOATING 640 # - RICH_MEDIA_PEEL_DOWN 641 # - VPAID_LINEAR 642 # - VPAID_NON_LINEAR 643 { # Rich Media Exit Override. 644 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 645 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 646 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 647 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 648 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 649 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 650 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 651 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 652 }, 653 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 654 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 655 }, 656 ], 657 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 658 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 659 { # Creative Group Assignment. 660 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 661 "creativeGroupId": "A String", # ID of the creative group to be assigned. 662 }, 663 ], 664 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 665 { # Companion Click-through override. 666 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 667 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 668 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 669 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 670 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 671 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 672 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 673 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 674 }, 675 "creativeId": "A String", # ID of the creative for this companion click-through override. 676 }, 677 ], 678 "startTime": "A String", # Date and time that the assigned creative should start serving. 679 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 680 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 681 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 682 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 683 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 684 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 685 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 686 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 687 }, 688 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 689 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 690 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 691 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 692 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 693 "value": "A String", # The value of the dimension. 694 "dimensionName": "A String", # The name of the dimension. 695 "etag": "A String", # The eTag of this response for caching purposes. 696 "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. 697 "id": "A String", # The ID associated with the value if available. 698 }, 699 }, 700 ], 701 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 702 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 703 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 704 }, 705 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 706 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 707 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 708 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 709 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 710 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 711 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 712 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 713 }, 714 "comments": "A String", # Comments for this ad. 715 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 716 "expression": "A String", # Expression describing which lists are being targeted by the ad. 717 }, 718 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 719 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 720 "value": "A String", # The value of the dimension. 721 "dimensionName": "A String", # The name of the dimension. 722 "etag": "A String", # The eTag of this response for caching purposes. 723 "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. 724 "id": "A String", # The ID associated with the value if available. 725 }, 726 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 727 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 728 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 729 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 730 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 731 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 732 }, 733 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 734 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 735 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 736 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 737 "expression": "A String", # Keyword expression being targeted by the ad. 738 }, 739 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 740 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 741 "value": "A String", # The value of the dimension. 742 "dimensionName": "A String", # The name of the dimension. 743 "etag": "A String", # The eTag of this response for caching purposes. 744 "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. 745 "id": "A String", # The ID associated with the value if available. 746 }, 747 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 748 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 749 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 750 }, 751 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 752 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 753 }, 754 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 755 "active": True or False, # Whether this ad is active. When true, archived must be false. 756 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 757 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 758 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 759 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 760 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 761 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 762 "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. 763 42, 764 ], 765 "daysOfWeek": [ # Days of the week when the ad will serve. 766 # 767 # Acceptable values are: 768 # - "SUNDAY" 769 # - "MONDAY" 770 # - "TUESDAY" 771 # - "WEDNESDAY" 772 # - "THURSDAY" 773 # - "FRIDAY" 774 # - "SATURDAY" 775 "A String", 776 ], 777 }, 778 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 779 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 780 }, 781 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 782 "placementAssignments": [ # Placement assignments for this ad. 783 { # Placement Assignment. 784 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 785 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 786 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 787 "value": "A String", # The value of the dimension. 788 "dimensionName": "A String", # The name of the dimension. 789 "etag": "A String", # The eTag of this response for caching purposes. 790 "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. 791 "id": "A String", # The ID associated with the value if available. 792 }, 793 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 794 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 795 }, 796 ], 797 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 798 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 799 } 800 801 802Returns: 803 An object of the form: 804 805 { # Contains properties of a Campaign Manager ad. 806 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 807 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 808 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 809 }, 810 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 811 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 812 "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. 813 { # Contains information about a language that can be targeted by ads. 814 "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. 815 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 816 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 817 "name": "A String", # Name of this language. 818 }, 819 ], 820 }, 821 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 822 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 823 "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. 824 { # Contains information about a country that can be targeted by ads. 825 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 826 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 827 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 828 "countryCode": "A String", # Country code. 829 "name": "A String", # Name of this country. 830 }, 831 ], 832 "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. 833 "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. 834 { # Contains information about a postal code that can be targeted by ads. 835 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 836 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 837 "code": "A String", # Postal code. This is equivalent to the id field. 838 "id": "A String", # ID of this postal code. 839 "countryCode": "A String", # Country code of the country to which this postal code belongs. 840 }, 841 ], 842 "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. 843 { # Contains information about a region that can be targeted by ads. 844 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 845 "countryDartId": "A String", # DART ID of the country to which this region belongs. 846 "name": "A String", # Name of this region. 847 "countryCode": "A String", # Country code of the country to which this region belongs. 848 "regionCode": "A String", # Region code. 849 "dartId": "A String", # DART ID of this region. 850 }, 851 ], 852 "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. 853 { # Contains information about a city that can be targeted by ads. 854 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 855 "countryDartId": "A String", # DART ID of the country to which this city belongs. 856 "name": "A String", # Name of this city. 857 "countryCode": "A String", # Country code of the country to which this city belongs. 858 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 859 "regionCode": "A String", # Region code of the region to which this city belongs. 860 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 861 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 862 "regionDartId": "A String", # DART ID of the region to which this city belongs. 863 }, 864 ], 865 "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. 866 { # Contains information about a metro region that can be targeted by ads. 867 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 868 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 869 "name": "A String", # Name of this metro region. 870 "countryCode": "A String", # Country code of the country to which this metro region belongs. 871 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 872 "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. 873 "dartId": "A String", # DART ID of this metro region. 874 }, 875 ], 876 }, 877 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 878 { # Creative Group Assignment. 879 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 880 "creativeGroupId": "A String", # ID of the creative group to be assigned. 881 }, 882 ], 883 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 884 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 885 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 886 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 887 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 888 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 889 }, 890 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 891 }, 892 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 893 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 894 "value": "A String", # The value of the dimension. 895 "dimensionName": "A String", # The name of the dimension. 896 "etag": "A String", # The eTag of this response for caching purposes. 897 "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. 898 "id": "A String", # The ID associated with the value if available. 899 }, 900 "eventTagOverrides": [ # Event tag overrides for this ad. 901 { # Event tag override information. 902 "enabled": True or False, # Whether this override is enabled. 903 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 904 }, 905 ], 906 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 907 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 908 "archived": True or False, # Whether this ad is archived. When true, active must be false. 909 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 910 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 911 "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. 912 { # Contains information about a platform type that can be targeted by ads. 913 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 914 "id": "A String", # ID of this platform type. 915 "name": "A String", # Name of this platform type. 916 }, 917 ], 918 "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. 919 { # Contains information about a particular version of an operating system that can be targeted by ads. 920 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 921 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 922 "name": "A String", # Name of this operating system version. 923 "id": "A String", # ID of this operating system version. 924 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 925 "mobile": True or False, # Whether this operating system is for mobile. 926 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 927 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 928 "name": "A String", # Name of this operating system. 929 "desktop": True or False, # Whether this operating system is for desktop. 930 }, 931 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 932 }, 933 ], 934 "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. 935 { # Contains information about a browser that can be targeted by ads. 936 "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. 937 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 938 "name": "A String", # Name of this browser. 939 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 940 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 941 "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. 942 }, 943 ], 944 "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. 945 { # Contains information about an operating system that can be targeted by ads. 946 "mobile": True or False, # Whether this operating system is for mobile. 947 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 948 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 949 "name": "A String", # Name of this operating system. 950 "desktop": True or False, # Whether this operating system is for desktop. 951 }, 952 ], 953 "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. 954 { # Contains information about a mobile carrier that can be targeted by ads. 955 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 956 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 957 "id": "A String", # ID of this mobile carrier. 958 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 959 "name": "A String", # Name of this mobile carrier. 960 }, 961 ], 962 "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. 963 { # 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. 964 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 965 "id": "A String", # ID of this connection type. 966 "name": "A String", # Name of this connection type. 967 }, 968 ], 969 }, 970 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 971 "creativeAssignments": [ # Creative assignments in this creative rotation. 972 { # Creative Assignment. 973 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 974 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 975 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 976 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 977 # Applicable when the creative type is any of the following: 978 # - DISPLAY 979 # - RICH_MEDIA_INPAGE 980 # - RICH_MEDIA_INPAGE_FLOATING 981 # - RICH_MEDIA_IM_EXPAND 982 # - RICH_MEDIA_EXPANDING 983 # - RICH_MEDIA_INTERSTITIAL_FLOAT 984 # - RICH_MEDIA_MOBILE_IN_APP 985 # - RICH_MEDIA_MULTI_FLOATING 986 # - RICH_MEDIA_PEEL_DOWN 987 # - VPAID_LINEAR 988 # - VPAID_NON_LINEAR 989 { # Rich Media Exit Override. 990 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 991 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 992 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 993 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 994 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 995 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 996 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 997 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 998 }, 999 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 1000 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 1001 }, 1002 ], 1003 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1004 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 1005 { # Creative Group Assignment. 1006 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1007 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1008 }, 1009 ], 1010 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 1011 { # Companion Click-through override. 1012 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 1013 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1014 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1015 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1016 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1017 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1018 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1019 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1020 }, 1021 "creativeId": "A String", # ID of the creative for this companion click-through override. 1022 }, 1023 ], 1024 "startTime": "A String", # Date and time that the assigned creative should start serving. 1025 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 1026 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1027 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1028 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1029 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1030 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1031 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1032 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1033 }, 1034 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 1035 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 1036 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 1037 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 1038 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1039 "value": "A String", # The value of the dimension. 1040 "dimensionName": "A String", # The name of the dimension. 1041 "etag": "A String", # The eTag of this response for caching purposes. 1042 "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. 1043 "id": "A String", # The ID associated with the value if available. 1044 }, 1045 }, 1046 ], 1047 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 1048 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 1049 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 1050 }, 1051 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 1052 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1053 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1054 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1055 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1056 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1057 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1058 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1059 }, 1060 "comments": "A String", # Comments for this ad. 1061 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1062 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1063 }, 1064 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 1065 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1066 "value": "A String", # The value of the dimension. 1067 "dimensionName": "A String", # The name of the dimension. 1068 "etag": "A String", # The eTag of this response for caching purposes. 1069 "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. 1070 "id": "A String", # The ID associated with the value if available. 1071 }, 1072 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 1073 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 1074 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 1075 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 1076 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 1077 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 1078 }, 1079 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 1080 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 1081 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 1082 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1083 "expression": "A String", # Keyword expression being targeted by the ad. 1084 }, 1085 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 1086 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1087 "value": "A String", # The value of the dimension. 1088 "dimensionName": "A String", # The name of the dimension. 1089 "etag": "A String", # The eTag of this response for caching purposes. 1090 "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. 1091 "id": "A String", # The ID associated with the value if available. 1092 }, 1093 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 1094 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 1095 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 1096 }, 1097 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 1098 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1099 }, 1100 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 1101 "active": True or False, # Whether this ad is active. When true, archived must be false. 1102 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 1103 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 1104 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 1105 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 1106 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1107 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1108 "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. 1109 42, 1110 ], 1111 "daysOfWeek": [ # Days of the week when the ad will serve. 1112 # 1113 # Acceptable values are: 1114 # - "SUNDAY" 1115 # - "MONDAY" 1116 # - "TUESDAY" 1117 # - "WEDNESDAY" 1118 # - "THURSDAY" 1119 # - "FRIDAY" 1120 # - "SATURDAY" 1121 "A String", 1122 ], 1123 }, 1124 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 1125 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1126 }, 1127 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1128 "placementAssignments": [ # Placement assignments for this ad. 1129 { # Placement Assignment. 1130 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 1131 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 1132 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1133 "value": "A String", # The value of the dimension. 1134 "dimensionName": "A String", # The name of the dimension. 1135 "etag": "A String", # The eTag of this response for caching purposes. 1136 "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. 1137 "id": "A String", # The ID associated with the value if available. 1138 }, 1139 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 1140 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 1141 }, 1142 ], 1143 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 1144 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 1145 }</pre> 1146</div> 1147 1148<div class="method"> 1149 <code class="details" id="list">list(profileId, landingPageIds=None, overriddenEventTagId=None, campaignIds=None, sizeIds=None, archived=None, creativeOptimizationConfigurationIds=None, sslCompliant=None, pageToken=None, sortOrder=None, type=None, sslRequired=None, creativeIds=None, remarketingListIds=None, maxResults=None, placementIds=None, active=None, compatibility=None, advertiserId=None, searchString=None, audienceSegmentIds=None, ids=None, sortField=None, dynamicClickTracker=None)</code> 1150 <pre>Retrieves a list of ads, possibly filtered. This method supports paging. 1151 1152Args: 1153 profileId: string, User profile ID associated with this request. (required) 1154 landingPageIds: string, Select only ads with these landing page IDs. (repeated) 1155 overriddenEventTagId: string, Select only ads with this event tag override ID. 1156 campaignIds: string, Select only ads with these campaign IDs. (repeated) 1157 sizeIds: string, Select only ads with these size IDs. (repeated) 1158 archived: boolean, Select only archived ads. 1159 creativeOptimizationConfigurationIds: string, Select only ads with these creative optimization configuration IDs. (repeated) 1160 sslCompliant: boolean, Select only ads that are SSL-compliant. 1161 pageToken: string, Value of the nextPageToken from the previous result page. 1162 sortOrder: string, Order of sorted results. 1163 Allowed values 1164 ASCENDING - 1165 DESCENDING - 1166 type: string, Select only ads with these types. (repeated) 1167 Allowed values 1168 AD_SERVING_CLICK_TRACKER - 1169 AD_SERVING_DEFAULT_AD - 1170 AD_SERVING_STANDARD_AD - 1171 AD_SERVING_TRACKING - 1172 sslRequired: boolean, Select only ads that require SSL. 1173 creativeIds: string, Select only ads with these creative IDs assigned. (repeated) 1174 remarketingListIds: string, Select only ads whose list targeting expression use these remarketing list IDs. (repeated) 1175 maxResults: integer, Maximum number of results to return. 1176 placementIds: string, Select only ads with these placement IDs assigned. (repeated) 1177 active: boolean, Select only active ads. 1178 compatibility: string, Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard. 1179 Allowed values 1180 APP - 1181 APP_INTERSTITIAL - 1182 DISPLAY - 1183 DISPLAY_INTERSTITIAL - 1184 IN_STREAM_AUDIO - 1185 IN_STREAM_VIDEO - 1186 advertiserId: string, Select only ads with this advertiser ID. 1187 searchString: string, Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" will return objects with names like "ad June 2015", "ad April 2015", or simply "ad 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 "ad" will match objects with name "my ad", "ad 2015", or simply "ad". 1188 audienceSegmentIds: string, Select only ads with these audience segment IDs. (repeated) 1189 ids: string, Select only ads with these IDs. (repeated) 1190 sortField: string, Field by which to sort the list. 1191 Allowed values 1192 ID - 1193 NAME - 1194 dynamicClickTracker: boolean, Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both. 1195 1196Returns: 1197 An object of the form: 1198 1199 { # Ad List Response 1200 "nextPageToken": "A String", # Pagination token to be used for the next list operation. 1201 "kind": "dfareporting#adsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#adsListResponse". 1202 "ads": [ # Ad collection. 1203 { # Contains properties of a Campaign Manager ad. 1204 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 1205 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 1206 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 1207 }, 1208 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 1209 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1210 "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. 1211 { # Contains information about a language that can be targeted by ads. 1212 "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. 1213 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1214 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1215 "name": "A String", # Name of this language. 1216 }, 1217 ], 1218 }, 1219 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 1220 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1221 "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. 1222 { # Contains information about a country that can be targeted by ads. 1223 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1224 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1225 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1226 "countryCode": "A String", # Country code. 1227 "name": "A String", # Name of this country. 1228 }, 1229 ], 1230 "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. 1231 "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. 1232 { # Contains information about a postal code that can be targeted by ads. 1233 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1234 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1235 "code": "A String", # Postal code. This is equivalent to the id field. 1236 "id": "A String", # ID of this postal code. 1237 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1238 }, 1239 ], 1240 "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. 1241 { # Contains information about a region that can be targeted by ads. 1242 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1243 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1244 "name": "A String", # Name of this region. 1245 "countryCode": "A String", # Country code of the country to which this region belongs. 1246 "regionCode": "A String", # Region code. 1247 "dartId": "A String", # DART ID of this region. 1248 }, 1249 ], 1250 "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. 1251 { # Contains information about a city that can be targeted by ads. 1252 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1253 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1254 "name": "A String", # Name of this city. 1255 "countryCode": "A String", # Country code of the country to which this city belongs. 1256 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1257 "regionCode": "A String", # Region code of the region to which this city belongs. 1258 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1259 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1260 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1261 }, 1262 ], 1263 "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. 1264 { # Contains information about a metro region that can be targeted by ads. 1265 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1266 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1267 "name": "A String", # Name of this metro region. 1268 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1269 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1270 "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. 1271 "dartId": "A String", # DART ID of this metro region. 1272 }, 1273 ], 1274 }, 1275 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 1276 { # Creative Group Assignment. 1277 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1278 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1279 }, 1280 ], 1281 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 1282 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 1283 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 1284 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 1285 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 1286 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 1287 }, 1288 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 1289 }, 1290 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 1291 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1292 "value": "A String", # The value of the dimension. 1293 "dimensionName": "A String", # The name of the dimension. 1294 "etag": "A String", # The eTag of this response for caching purposes. 1295 "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. 1296 "id": "A String", # The ID associated with the value if available. 1297 }, 1298 "eventTagOverrides": [ # Event tag overrides for this ad. 1299 { # Event tag override information. 1300 "enabled": True or False, # Whether this override is enabled. 1301 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 1302 }, 1303 ], 1304 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 1305 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 1306 "archived": True or False, # Whether this ad is archived. When true, active must be false. 1307 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 1308 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1309 "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. 1310 { # Contains information about a platform type that can be targeted by ads. 1311 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 1312 "id": "A String", # ID of this platform type. 1313 "name": "A String", # Name of this platform type. 1314 }, 1315 ], 1316 "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. 1317 { # Contains information about a particular version of an operating system that can be targeted by ads. 1318 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 1319 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 1320 "name": "A String", # Name of this operating system version. 1321 "id": "A String", # ID of this operating system version. 1322 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 1323 "mobile": True or False, # Whether this operating system is for mobile. 1324 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1325 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1326 "name": "A String", # Name of this operating system. 1327 "desktop": True or False, # Whether this operating system is for desktop. 1328 }, 1329 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 1330 }, 1331 ], 1332 "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. 1333 { # Contains information about a browser that can be targeted by ads. 1334 "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. 1335 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 1336 "name": "A String", # Name of this browser. 1337 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 1338 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 1339 "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. 1340 }, 1341 ], 1342 "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. 1343 { # Contains information about an operating system that can be targeted by ads. 1344 "mobile": True or False, # Whether this operating system is for mobile. 1345 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1346 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1347 "name": "A String", # Name of this operating system. 1348 "desktop": True or False, # Whether this operating system is for desktop. 1349 }, 1350 ], 1351 "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. 1352 { # Contains information about a mobile carrier that can be targeted by ads. 1353 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 1354 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 1355 "id": "A String", # ID of this mobile carrier. 1356 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 1357 "name": "A String", # Name of this mobile carrier. 1358 }, 1359 ], 1360 "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. 1361 { # 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. 1362 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 1363 "id": "A String", # ID of this connection type. 1364 "name": "A String", # Name of this connection type. 1365 }, 1366 ], 1367 }, 1368 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 1369 "creativeAssignments": [ # Creative assignments in this creative rotation. 1370 { # Creative Assignment. 1371 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 1372 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 1373 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 1374 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 1375 # Applicable when the creative type is any of the following: 1376 # - DISPLAY 1377 # - RICH_MEDIA_INPAGE 1378 # - RICH_MEDIA_INPAGE_FLOATING 1379 # - RICH_MEDIA_IM_EXPAND 1380 # - RICH_MEDIA_EXPANDING 1381 # - RICH_MEDIA_INTERSTITIAL_FLOAT 1382 # - RICH_MEDIA_MOBILE_IN_APP 1383 # - RICH_MEDIA_MULTI_FLOATING 1384 # - RICH_MEDIA_PEEL_DOWN 1385 # - VPAID_LINEAR 1386 # - VPAID_NON_LINEAR 1387 { # Rich Media Exit Override. 1388 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 1389 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1390 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1391 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1392 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1393 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1394 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1395 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1396 }, 1397 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 1398 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 1399 }, 1400 ], 1401 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1402 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 1403 { # Creative Group Assignment. 1404 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1405 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1406 }, 1407 ], 1408 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 1409 { # Companion Click-through override. 1410 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 1411 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1412 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1413 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1414 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1415 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1416 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1417 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1418 }, 1419 "creativeId": "A String", # ID of the creative for this companion click-through override. 1420 }, 1421 ], 1422 "startTime": "A String", # Date and time that the assigned creative should start serving. 1423 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 1424 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1425 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1426 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1427 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1428 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1429 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1430 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1431 }, 1432 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 1433 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 1434 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 1435 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 1436 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1437 "value": "A String", # The value of the dimension. 1438 "dimensionName": "A String", # The name of the dimension. 1439 "etag": "A String", # The eTag of this response for caching purposes. 1440 "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. 1441 "id": "A String", # The ID associated with the value if available. 1442 }, 1443 }, 1444 ], 1445 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 1446 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 1447 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 1448 }, 1449 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 1450 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1451 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1452 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1453 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1454 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1455 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1456 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1457 }, 1458 "comments": "A String", # Comments for this ad. 1459 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1460 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1461 }, 1462 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 1463 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1464 "value": "A String", # The value of the dimension. 1465 "dimensionName": "A String", # The name of the dimension. 1466 "etag": "A String", # The eTag of this response for caching purposes. 1467 "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. 1468 "id": "A String", # The ID associated with the value if available. 1469 }, 1470 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 1471 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 1472 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 1473 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 1474 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 1475 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 1476 }, 1477 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 1478 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 1479 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 1480 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1481 "expression": "A String", # Keyword expression being targeted by the ad. 1482 }, 1483 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 1484 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1485 "value": "A String", # The value of the dimension. 1486 "dimensionName": "A String", # The name of the dimension. 1487 "etag": "A String", # The eTag of this response for caching purposes. 1488 "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. 1489 "id": "A String", # The ID associated with the value if available. 1490 }, 1491 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 1492 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 1493 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 1494 }, 1495 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 1496 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1497 }, 1498 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 1499 "active": True or False, # Whether this ad is active. When true, archived must be false. 1500 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 1501 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 1502 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 1503 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 1504 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1505 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1506 "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. 1507 42, 1508 ], 1509 "daysOfWeek": [ # Days of the week when the ad will serve. 1510 # 1511 # Acceptable values are: 1512 # - "SUNDAY" 1513 # - "MONDAY" 1514 # - "TUESDAY" 1515 # - "WEDNESDAY" 1516 # - "THURSDAY" 1517 # - "FRIDAY" 1518 # - "SATURDAY" 1519 "A String", 1520 ], 1521 }, 1522 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 1523 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1524 }, 1525 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1526 "placementAssignments": [ # Placement assignments for this ad. 1527 { # Placement Assignment. 1528 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 1529 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 1530 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1531 "value": "A String", # The value of the dimension. 1532 "dimensionName": "A String", # The name of the dimension. 1533 "etag": "A String", # The eTag of this response for caching purposes. 1534 "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. 1535 "id": "A String", # The ID associated with the value if available. 1536 }, 1537 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 1538 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 1539 }, 1540 ], 1541 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 1542 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 1543 }, 1544 ], 1545 }</pre> 1546</div> 1547 1548<div class="method"> 1549 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 1550 <pre>Retrieves the next page of results. 1551 1552Args: 1553 previous_request: The request for the previous page. (required) 1554 previous_response: The response from the request for the previous page. (required) 1555 1556Returns: 1557 A request object that you can call 'execute()' on to request the next 1558 page. Returns None if there are no more items in the collection. 1559 </pre> 1560</div> 1561 1562<div class="method"> 1563 <code class="details" id="patch">patch(profileId, id, body)</code> 1564 <pre>Updates an existing ad. This method supports patch semantics. 1565 1566Args: 1567 profileId: string, User profile ID associated with this request. (required) 1568 id: string, Ad ID. (required) 1569 body: object, The request body. (required) 1570 The object takes the form of: 1571 1572{ # Contains properties of a Campaign Manager ad. 1573 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 1574 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 1575 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 1576 }, 1577 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 1578 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1579 "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. 1580 { # Contains information about a language that can be targeted by ads. 1581 "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. 1582 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1583 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1584 "name": "A String", # Name of this language. 1585 }, 1586 ], 1587 }, 1588 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 1589 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1590 "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. 1591 { # Contains information about a country that can be targeted by ads. 1592 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1593 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1594 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1595 "countryCode": "A String", # Country code. 1596 "name": "A String", # Name of this country. 1597 }, 1598 ], 1599 "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. 1600 "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. 1601 { # Contains information about a postal code that can be targeted by ads. 1602 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1603 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1604 "code": "A String", # Postal code. This is equivalent to the id field. 1605 "id": "A String", # ID of this postal code. 1606 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1607 }, 1608 ], 1609 "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. 1610 { # Contains information about a region that can be targeted by ads. 1611 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1612 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1613 "name": "A String", # Name of this region. 1614 "countryCode": "A String", # Country code of the country to which this region belongs. 1615 "regionCode": "A String", # Region code. 1616 "dartId": "A String", # DART ID of this region. 1617 }, 1618 ], 1619 "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. 1620 { # Contains information about a city that can be targeted by ads. 1621 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1622 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1623 "name": "A String", # Name of this city. 1624 "countryCode": "A String", # Country code of the country to which this city belongs. 1625 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1626 "regionCode": "A String", # Region code of the region to which this city belongs. 1627 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1628 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1629 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1630 }, 1631 ], 1632 "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. 1633 { # Contains information about a metro region that can be targeted by ads. 1634 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1635 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1636 "name": "A String", # Name of this metro region. 1637 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1638 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1639 "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. 1640 "dartId": "A String", # DART ID of this metro region. 1641 }, 1642 ], 1643 }, 1644 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 1645 { # Creative Group Assignment. 1646 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1647 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1648 }, 1649 ], 1650 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 1651 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 1652 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 1653 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 1654 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 1655 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 1656 }, 1657 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 1658 }, 1659 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 1660 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1661 "value": "A String", # The value of the dimension. 1662 "dimensionName": "A String", # The name of the dimension. 1663 "etag": "A String", # The eTag of this response for caching purposes. 1664 "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. 1665 "id": "A String", # The ID associated with the value if available. 1666 }, 1667 "eventTagOverrides": [ # Event tag overrides for this ad. 1668 { # Event tag override information. 1669 "enabled": True or False, # Whether this override is enabled. 1670 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 1671 }, 1672 ], 1673 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 1674 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 1675 "archived": True or False, # Whether this ad is archived. When true, active must be false. 1676 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 1677 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1678 "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. 1679 { # Contains information about a platform type that can be targeted by ads. 1680 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 1681 "id": "A String", # ID of this platform type. 1682 "name": "A String", # Name of this platform type. 1683 }, 1684 ], 1685 "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. 1686 { # Contains information about a particular version of an operating system that can be targeted by ads. 1687 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 1688 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 1689 "name": "A String", # Name of this operating system version. 1690 "id": "A String", # ID of this operating system version. 1691 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 1692 "mobile": True or False, # Whether this operating system is for mobile. 1693 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1694 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1695 "name": "A String", # Name of this operating system. 1696 "desktop": True or False, # Whether this operating system is for desktop. 1697 }, 1698 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 1699 }, 1700 ], 1701 "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. 1702 { # Contains information about a browser that can be targeted by ads. 1703 "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. 1704 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 1705 "name": "A String", # Name of this browser. 1706 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 1707 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 1708 "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. 1709 }, 1710 ], 1711 "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. 1712 { # Contains information about an operating system that can be targeted by ads. 1713 "mobile": True or False, # Whether this operating system is for mobile. 1714 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 1715 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 1716 "name": "A String", # Name of this operating system. 1717 "desktop": True or False, # Whether this operating system is for desktop. 1718 }, 1719 ], 1720 "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. 1721 { # Contains information about a mobile carrier that can be targeted by ads. 1722 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 1723 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 1724 "id": "A String", # ID of this mobile carrier. 1725 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 1726 "name": "A String", # Name of this mobile carrier. 1727 }, 1728 ], 1729 "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. 1730 { # 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. 1731 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 1732 "id": "A String", # ID of this connection type. 1733 "name": "A String", # Name of this connection type. 1734 }, 1735 ], 1736 }, 1737 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 1738 "creativeAssignments": [ # Creative assignments in this creative rotation. 1739 { # Creative Assignment. 1740 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 1741 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 1742 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 1743 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 1744 # Applicable when the creative type is any of the following: 1745 # - DISPLAY 1746 # - RICH_MEDIA_INPAGE 1747 # - RICH_MEDIA_INPAGE_FLOATING 1748 # - RICH_MEDIA_IM_EXPAND 1749 # - RICH_MEDIA_EXPANDING 1750 # - RICH_MEDIA_INTERSTITIAL_FLOAT 1751 # - RICH_MEDIA_MOBILE_IN_APP 1752 # - RICH_MEDIA_MULTI_FLOATING 1753 # - RICH_MEDIA_PEEL_DOWN 1754 # - VPAID_LINEAR 1755 # - VPAID_NON_LINEAR 1756 { # Rich Media Exit Override. 1757 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 1758 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1759 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1760 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1761 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1762 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1763 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1764 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1765 }, 1766 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 1767 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 1768 }, 1769 ], 1770 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1771 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 1772 { # Creative Group Assignment. 1773 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1774 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1775 }, 1776 ], 1777 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 1778 { # Companion Click-through override. 1779 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 1780 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1781 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1782 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1783 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1784 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1785 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1786 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1787 }, 1788 "creativeId": "A String", # ID of the creative for this companion click-through override. 1789 }, 1790 ], 1791 "startTime": "A String", # Date and time that the assigned creative should start serving. 1792 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 1793 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1794 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1795 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1796 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1797 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1798 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1799 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1800 }, 1801 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 1802 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 1803 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 1804 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 1805 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1806 "value": "A String", # The value of the dimension. 1807 "dimensionName": "A String", # The name of the dimension. 1808 "etag": "A String", # The eTag of this response for caching purposes. 1809 "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. 1810 "id": "A String", # The ID associated with the value if available. 1811 }, 1812 }, 1813 ], 1814 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 1815 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 1816 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 1817 }, 1818 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 1819 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 1820 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 1821 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 1822 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 1823 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 1824 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 1825 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 1826 }, 1827 "comments": "A String", # Comments for this ad. 1828 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1829 "expression": "A String", # Expression describing which lists are being targeted by the ad. 1830 }, 1831 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 1832 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1833 "value": "A String", # The value of the dimension. 1834 "dimensionName": "A String", # The name of the dimension. 1835 "etag": "A String", # The eTag of this response for caching purposes. 1836 "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. 1837 "id": "A String", # The ID associated with the value if available. 1838 }, 1839 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 1840 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 1841 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 1842 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 1843 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 1844 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 1845 }, 1846 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 1847 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 1848 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 1849 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1850 "expression": "A String", # Keyword expression being targeted by the ad. 1851 }, 1852 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 1853 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1854 "value": "A String", # The value of the dimension. 1855 "dimensionName": "A String", # The name of the dimension. 1856 "etag": "A String", # The eTag of this response for caching purposes. 1857 "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. 1858 "id": "A String", # The ID associated with the value if available. 1859 }, 1860 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 1861 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 1862 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 1863 }, 1864 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 1865 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1866 }, 1867 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 1868 "active": True or False, # Whether this ad is active. When true, archived must be false. 1869 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 1870 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 1871 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 1872 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 1873 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1874 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 1875 "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. 1876 42, 1877 ], 1878 "daysOfWeek": [ # Days of the week when the ad will serve. 1879 # 1880 # Acceptable values are: 1881 # - "SUNDAY" 1882 # - "MONDAY" 1883 # - "TUESDAY" 1884 # - "WEDNESDAY" 1885 # - "THURSDAY" 1886 # - "FRIDAY" 1887 # - "SATURDAY" 1888 "A String", 1889 ], 1890 }, 1891 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 1892 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1893 }, 1894 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 1895 "placementAssignments": [ # Placement assignments for this ad. 1896 { # Placement Assignment. 1897 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 1898 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 1899 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1900 "value": "A String", # The value of the dimension. 1901 "dimensionName": "A String", # The name of the dimension. 1902 "etag": "A String", # The eTag of this response for caching purposes. 1903 "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. 1904 "id": "A String", # The ID associated with the value if available. 1905 }, 1906 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 1907 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 1908 }, 1909 ], 1910 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 1911 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 1912 } 1913 1914 1915Returns: 1916 An object of the form: 1917 1918 { # Contains properties of a Campaign Manager ad. 1919 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 1920 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 1921 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 1922 }, 1923 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 1924 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1925 "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. 1926 { # Contains information about a language that can be targeted by ads. 1927 "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. 1928 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 1929 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 1930 "name": "A String", # Name of this language. 1931 }, 1932 ], 1933 }, 1934 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 1935 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 1936 "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. 1937 { # Contains information about a country that can be targeted by ads. 1938 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 1939 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 1940 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 1941 "countryCode": "A String", # Country code. 1942 "name": "A String", # Name of this country. 1943 }, 1944 ], 1945 "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. 1946 "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. 1947 { # Contains information about a postal code that can be targeted by ads. 1948 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 1949 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 1950 "code": "A String", # Postal code. This is equivalent to the id field. 1951 "id": "A String", # ID of this postal code. 1952 "countryCode": "A String", # Country code of the country to which this postal code belongs. 1953 }, 1954 ], 1955 "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. 1956 { # Contains information about a region that can be targeted by ads. 1957 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 1958 "countryDartId": "A String", # DART ID of the country to which this region belongs. 1959 "name": "A String", # Name of this region. 1960 "countryCode": "A String", # Country code of the country to which this region belongs. 1961 "regionCode": "A String", # Region code. 1962 "dartId": "A String", # DART ID of this region. 1963 }, 1964 ], 1965 "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. 1966 { # Contains information about a city that can be targeted by ads. 1967 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 1968 "countryDartId": "A String", # DART ID of the country to which this city belongs. 1969 "name": "A String", # Name of this city. 1970 "countryCode": "A String", # Country code of the country to which this city belongs. 1971 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 1972 "regionCode": "A String", # Region code of the region to which this city belongs. 1973 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 1974 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 1975 "regionDartId": "A String", # DART ID of the region to which this city belongs. 1976 }, 1977 ], 1978 "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. 1979 { # Contains information about a metro region that can be targeted by ads. 1980 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 1981 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 1982 "name": "A String", # Name of this metro region. 1983 "countryCode": "A String", # Country code of the country to which this metro region belongs. 1984 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 1985 "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. 1986 "dartId": "A String", # DART ID of this metro region. 1987 }, 1988 ], 1989 }, 1990 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 1991 { # Creative Group Assignment. 1992 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 1993 "creativeGroupId": "A String", # ID of the creative group to be assigned. 1994 }, 1995 ], 1996 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 1997 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 1998 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 1999 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 2000 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 2001 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 2002 }, 2003 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 2004 }, 2005 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 2006 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2007 "value": "A String", # The value of the dimension. 2008 "dimensionName": "A String", # The name of the dimension. 2009 "etag": "A String", # The eTag of this response for caching purposes. 2010 "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. 2011 "id": "A String", # The ID associated with the value if available. 2012 }, 2013 "eventTagOverrides": [ # Event tag overrides for this ad. 2014 { # Event tag override information. 2015 "enabled": True or False, # Whether this override is enabled. 2016 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 2017 }, 2018 ], 2019 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 2020 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 2021 "archived": True or False, # Whether this ad is archived. When true, active must be false. 2022 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 2023 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2024 "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. 2025 { # Contains information about a platform type that can be targeted by ads. 2026 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 2027 "id": "A String", # ID of this platform type. 2028 "name": "A String", # Name of this platform type. 2029 }, 2030 ], 2031 "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. 2032 { # Contains information about a particular version of an operating system that can be targeted by ads. 2033 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 2034 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 2035 "name": "A String", # Name of this operating system version. 2036 "id": "A String", # ID of this operating system version. 2037 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 2038 "mobile": True or False, # Whether this operating system is for mobile. 2039 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2040 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2041 "name": "A String", # Name of this operating system. 2042 "desktop": True or False, # Whether this operating system is for desktop. 2043 }, 2044 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 2045 }, 2046 ], 2047 "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. 2048 { # Contains information about a browser that can be targeted by ads. 2049 "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. 2050 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 2051 "name": "A String", # Name of this browser. 2052 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 2053 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 2054 "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. 2055 }, 2056 ], 2057 "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. 2058 { # Contains information about an operating system that can be targeted by ads. 2059 "mobile": True or False, # Whether this operating system is for mobile. 2060 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2061 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2062 "name": "A String", # Name of this operating system. 2063 "desktop": True or False, # Whether this operating system is for desktop. 2064 }, 2065 ], 2066 "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. 2067 { # Contains information about a mobile carrier that can be targeted by ads. 2068 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 2069 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 2070 "id": "A String", # ID of this mobile carrier. 2071 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 2072 "name": "A String", # Name of this mobile carrier. 2073 }, 2074 ], 2075 "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. 2076 { # 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. 2077 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 2078 "id": "A String", # ID of this connection type. 2079 "name": "A String", # Name of this connection type. 2080 }, 2081 ], 2082 }, 2083 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 2084 "creativeAssignments": [ # Creative assignments in this creative rotation. 2085 { # Creative Assignment. 2086 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 2087 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 2088 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 2089 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 2090 # Applicable when the creative type is any of the following: 2091 # - DISPLAY 2092 # - RICH_MEDIA_INPAGE 2093 # - RICH_MEDIA_INPAGE_FLOATING 2094 # - RICH_MEDIA_IM_EXPAND 2095 # - RICH_MEDIA_EXPANDING 2096 # - RICH_MEDIA_INTERSTITIAL_FLOAT 2097 # - RICH_MEDIA_MOBILE_IN_APP 2098 # - RICH_MEDIA_MULTI_FLOATING 2099 # - RICH_MEDIA_PEEL_DOWN 2100 # - VPAID_LINEAR 2101 # - VPAID_NON_LINEAR 2102 { # Rich Media Exit Override. 2103 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 2104 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2105 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2106 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2107 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2108 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2109 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2110 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2111 }, 2112 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 2113 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 2114 }, 2115 ], 2116 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2117 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 2118 { # Creative Group Assignment. 2119 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 2120 "creativeGroupId": "A String", # ID of the creative group to be assigned. 2121 }, 2122 ], 2123 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 2124 { # Companion Click-through override. 2125 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 2126 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2127 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2128 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2129 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2130 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2131 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2132 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2133 }, 2134 "creativeId": "A String", # ID of the creative for this companion click-through override. 2135 }, 2136 ], 2137 "startTime": "A String", # Date and time that the assigned creative should start serving. 2138 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 2139 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2140 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2141 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2142 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2143 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2144 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2145 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2146 }, 2147 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 2148 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 2149 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 2150 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 2151 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2152 "value": "A String", # The value of the dimension. 2153 "dimensionName": "A String", # The name of the dimension. 2154 "etag": "A String", # The eTag of this response for caching purposes. 2155 "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. 2156 "id": "A String", # The ID associated with the value if available. 2157 }, 2158 }, 2159 ], 2160 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 2161 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 2162 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 2163 }, 2164 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 2165 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2166 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2167 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2168 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2169 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2170 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2171 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2172 }, 2173 "comments": "A String", # Comments for this ad. 2174 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2175 "expression": "A String", # Expression describing which lists are being targeted by the ad. 2176 }, 2177 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 2178 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2179 "value": "A String", # The value of the dimension. 2180 "dimensionName": "A String", # The name of the dimension. 2181 "etag": "A String", # The eTag of this response for caching purposes. 2182 "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. 2183 "id": "A String", # The ID associated with the value if available. 2184 }, 2185 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 2186 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 2187 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 2188 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 2189 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 2190 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 2191 }, 2192 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 2193 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 2194 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 2195 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2196 "expression": "A String", # Keyword expression being targeted by the ad. 2197 }, 2198 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 2199 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2200 "value": "A String", # The value of the dimension. 2201 "dimensionName": "A String", # The name of the dimension. 2202 "etag": "A String", # The eTag of this response for caching purposes. 2203 "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. 2204 "id": "A String", # The ID associated with the value if available. 2205 }, 2206 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 2207 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 2208 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 2209 }, 2210 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 2211 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2212 }, 2213 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 2214 "active": True or False, # Whether this ad is active. When true, archived must be false. 2215 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 2216 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 2217 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 2218 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 2219 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2220 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 2221 "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. 2222 42, 2223 ], 2224 "daysOfWeek": [ # Days of the week when the ad will serve. 2225 # 2226 # Acceptable values are: 2227 # - "SUNDAY" 2228 # - "MONDAY" 2229 # - "TUESDAY" 2230 # - "WEDNESDAY" 2231 # - "THURSDAY" 2232 # - "FRIDAY" 2233 # - "SATURDAY" 2234 "A String", 2235 ], 2236 }, 2237 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 2238 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2239 }, 2240 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2241 "placementAssignments": [ # Placement assignments for this ad. 2242 { # Placement Assignment. 2243 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 2244 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 2245 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2246 "value": "A String", # The value of the dimension. 2247 "dimensionName": "A String", # The name of the dimension. 2248 "etag": "A String", # The eTag of this response for caching purposes. 2249 "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. 2250 "id": "A String", # The ID associated with the value if available. 2251 }, 2252 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 2253 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 2254 }, 2255 ], 2256 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 2257 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 2258 }</pre> 2259</div> 2260 2261<div class="method"> 2262 <code class="details" id="update">update(profileId, body)</code> 2263 <pre>Updates an existing ad. 2264 2265Args: 2266 profileId: string, User profile ID associated with this request. (required) 2267 body: object, The request body. (required) 2268 The object takes the form of: 2269 2270{ # Contains properties of a Campaign Manager ad. 2271 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 2272 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 2273 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 2274 }, 2275 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 2276 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2277 "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. 2278 { # Contains information about a language that can be targeted by ads. 2279 "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. 2280 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 2281 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 2282 "name": "A String", # Name of this language. 2283 }, 2284 ], 2285 }, 2286 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 2287 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2288 "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. 2289 { # Contains information about a country that can be targeted by ads. 2290 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 2291 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 2292 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 2293 "countryCode": "A String", # Country code. 2294 "name": "A String", # Name of this country. 2295 }, 2296 ], 2297 "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. 2298 "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. 2299 { # Contains information about a postal code that can be targeted by ads. 2300 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 2301 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 2302 "code": "A String", # Postal code. This is equivalent to the id field. 2303 "id": "A String", # ID of this postal code. 2304 "countryCode": "A String", # Country code of the country to which this postal code belongs. 2305 }, 2306 ], 2307 "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. 2308 { # Contains information about a region that can be targeted by ads. 2309 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 2310 "countryDartId": "A String", # DART ID of the country to which this region belongs. 2311 "name": "A String", # Name of this region. 2312 "countryCode": "A String", # Country code of the country to which this region belongs. 2313 "regionCode": "A String", # Region code. 2314 "dartId": "A String", # DART ID of this region. 2315 }, 2316 ], 2317 "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. 2318 { # Contains information about a city that can be targeted by ads. 2319 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 2320 "countryDartId": "A String", # DART ID of the country to which this city belongs. 2321 "name": "A String", # Name of this city. 2322 "countryCode": "A String", # Country code of the country to which this city belongs. 2323 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 2324 "regionCode": "A String", # Region code of the region to which this city belongs. 2325 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 2326 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 2327 "regionDartId": "A String", # DART ID of the region to which this city belongs. 2328 }, 2329 ], 2330 "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. 2331 { # Contains information about a metro region that can be targeted by ads. 2332 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 2333 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 2334 "name": "A String", # Name of this metro region. 2335 "countryCode": "A String", # Country code of the country to which this metro region belongs. 2336 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 2337 "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. 2338 "dartId": "A String", # DART ID of this metro region. 2339 }, 2340 ], 2341 }, 2342 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 2343 { # Creative Group Assignment. 2344 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 2345 "creativeGroupId": "A String", # ID of the creative group to be assigned. 2346 }, 2347 ], 2348 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 2349 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 2350 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 2351 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 2352 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 2353 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 2354 }, 2355 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 2356 }, 2357 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 2358 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2359 "value": "A String", # The value of the dimension. 2360 "dimensionName": "A String", # The name of the dimension. 2361 "etag": "A String", # The eTag of this response for caching purposes. 2362 "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. 2363 "id": "A String", # The ID associated with the value if available. 2364 }, 2365 "eventTagOverrides": [ # Event tag overrides for this ad. 2366 { # Event tag override information. 2367 "enabled": True or False, # Whether this override is enabled. 2368 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 2369 }, 2370 ], 2371 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 2372 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 2373 "archived": True or False, # Whether this ad is archived. When true, active must be false. 2374 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 2375 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2376 "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. 2377 { # Contains information about a platform type that can be targeted by ads. 2378 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 2379 "id": "A String", # ID of this platform type. 2380 "name": "A String", # Name of this platform type. 2381 }, 2382 ], 2383 "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. 2384 { # Contains information about a particular version of an operating system that can be targeted by ads. 2385 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 2386 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 2387 "name": "A String", # Name of this operating system version. 2388 "id": "A String", # ID of this operating system version. 2389 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 2390 "mobile": True or False, # Whether this operating system is for mobile. 2391 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2392 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2393 "name": "A String", # Name of this operating system. 2394 "desktop": True or False, # Whether this operating system is for desktop. 2395 }, 2396 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 2397 }, 2398 ], 2399 "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. 2400 { # Contains information about a browser that can be targeted by ads. 2401 "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. 2402 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 2403 "name": "A String", # Name of this browser. 2404 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 2405 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 2406 "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. 2407 }, 2408 ], 2409 "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. 2410 { # Contains information about an operating system that can be targeted by ads. 2411 "mobile": True or False, # Whether this operating system is for mobile. 2412 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2413 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2414 "name": "A String", # Name of this operating system. 2415 "desktop": True or False, # Whether this operating system is for desktop. 2416 }, 2417 ], 2418 "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. 2419 { # Contains information about a mobile carrier that can be targeted by ads. 2420 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 2421 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 2422 "id": "A String", # ID of this mobile carrier. 2423 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 2424 "name": "A String", # Name of this mobile carrier. 2425 }, 2426 ], 2427 "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. 2428 { # 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. 2429 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 2430 "id": "A String", # ID of this connection type. 2431 "name": "A String", # Name of this connection type. 2432 }, 2433 ], 2434 }, 2435 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 2436 "creativeAssignments": [ # Creative assignments in this creative rotation. 2437 { # Creative Assignment. 2438 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 2439 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 2440 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 2441 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 2442 # Applicable when the creative type is any of the following: 2443 # - DISPLAY 2444 # - RICH_MEDIA_INPAGE 2445 # - RICH_MEDIA_INPAGE_FLOATING 2446 # - RICH_MEDIA_IM_EXPAND 2447 # - RICH_MEDIA_EXPANDING 2448 # - RICH_MEDIA_INTERSTITIAL_FLOAT 2449 # - RICH_MEDIA_MOBILE_IN_APP 2450 # - RICH_MEDIA_MULTI_FLOATING 2451 # - RICH_MEDIA_PEEL_DOWN 2452 # - VPAID_LINEAR 2453 # - VPAID_NON_LINEAR 2454 { # Rich Media Exit Override. 2455 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 2456 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2457 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2458 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2459 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2460 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2461 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2462 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2463 }, 2464 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 2465 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 2466 }, 2467 ], 2468 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2469 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 2470 { # Creative Group Assignment. 2471 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 2472 "creativeGroupId": "A String", # ID of the creative group to be assigned. 2473 }, 2474 ], 2475 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 2476 { # Companion Click-through override. 2477 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 2478 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2479 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2480 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2481 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2482 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2483 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2484 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2485 }, 2486 "creativeId": "A String", # ID of the creative for this companion click-through override. 2487 }, 2488 ], 2489 "startTime": "A String", # Date and time that the assigned creative should start serving. 2490 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 2491 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2492 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2493 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2494 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2495 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2496 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2497 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2498 }, 2499 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 2500 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 2501 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 2502 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 2503 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2504 "value": "A String", # The value of the dimension. 2505 "dimensionName": "A String", # The name of the dimension. 2506 "etag": "A String", # The eTag of this response for caching purposes. 2507 "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. 2508 "id": "A String", # The ID associated with the value if available. 2509 }, 2510 }, 2511 ], 2512 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 2513 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 2514 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 2515 }, 2516 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 2517 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2518 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2519 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2520 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2521 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2522 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2523 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2524 }, 2525 "comments": "A String", # Comments for this ad. 2526 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2527 "expression": "A String", # Expression describing which lists are being targeted by the ad. 2528 }, 2529 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 2530 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2531 "value": "A String", # The value of the dimension. 2532 "dimensionName": "A String", # The name of the dimension. 2533 "etag": "A String", # The eTag of this response for caching purposes. 2534 "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. 2535 "id": "A String", # The ID associated with the value if available. 2536 }, 2537 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 2538 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 2539 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 2540 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 2541 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 2542 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 2543 }, 2544 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 2545 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 2546 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 2547 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2548 "expression": "A String", # Keyword expression being targeted by the ad. 2549 }, 2550 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 2551 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2552 "value": "A String", # The value of the dimension. 2553 "dimensionName": "A String", # The name of the dimension. 2554 "etag": "A String", # The eTag of this response for caching purposes. 2555 "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. 2556 "id": "A String", # The ID associated with the value if available. 2557 }, 2558 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 2559 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 2560 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 2561 }, 2562 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 2563 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2564 }, 2565 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 2566 "active": True or False, # Whether this ad is active. When true, archived must be false. 2567 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 2568 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 2569 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 2570 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 2571 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2572 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 2573 "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. 2574 42, 2575 ], 2576 "daysOfWeek": [ # Days of the week when the ad will serve. 2577 # 2578 # Acceptable values are: 2579 # - "SUNDAY" 2580 # - "MONDAY" 2581 # - "TUESDAY" 2582 # - "WEDNESDAY" 2583 # - "THURSDAY" 2584 # - "FRIDAY" 2585 # - "SATURDAY" 2586 "A String", 2587 ], 2588 }, 2589 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 2590 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2591 }, 2592 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2593 "placementAssignments": [ # Placement assignments for this ad. 2594 { # Placement Assignment. 2595 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 2596 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 2597 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2598 "value": "A String", # The value of the dimension. 2599 "dimensionName": "A String", # The name of the dimension. 2600 "etag": "A String", # The eTag of this response for caching purposes. 2601 "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. 2602 "id": "A String", # The ID associated with the value if available. 2603 }, 2604 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 2605 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 2606 }, 2607 ], 2608 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 2609 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 2610 } 2611 2612 2613Returns: 2614 An object of the form: 2615 2616 { # Contains properties of a Campaign Manager ad. 2617 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix properties for this ad. Applies to the URL in the ad or (if overriding ad properties) the URL in the creative. 2618 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 2619 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 2620 }, 2621 "campaignId": "A String", # Campaign ID of this ad. This is a required field on insertion. 2622 "languageTargeting": { # Language Targeting. # Language targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2623 "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. 2624 { # Contains information about a language that can be targeted by ads. 2625 "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. 2626 "kind": "dfareporting#language", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#language". 2627 "id": "A String", # Language ID of this language. This is the ID used for targeting and generating reports. 2628 "name": "A String", # Name of this language. 2629 }, 2630 ], 2631 }, 2632 "advertiserId": "A String", # Advertiser ID of this ad. This is a required field on insertion. 2633 "geoTargeting": { # Geographical Targeting. # Geographical targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2634 "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. 2635 { # Contains information about a country that can be targeted by ads. 2636 "dartId": "A String", # DART ID of this country. This is the ID used for targeting and generating reports. 2637 "sslEnabled": True or False, # Whether ad serving supports secure servers in this country. 2638 "kind": "dfareporting#country", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#country". 2639 "countryCode": "A String", # Country code. 2640 "name": "A String", # Name of this country. 2641 }, 2642 ], 2643 "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. 2644 "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. 2645 { # Contains information about a postal code that can be targeted by ads. 2646 "countryDartId": "A String", # DART ID of the country to which this postal code belongs. 2647 "kind": "dfareporting#postalCode", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#postalCode". 2648 "code": "A String", # Postal code. This is equivalent to the id field. 2649 "id": "A String", # ID of this postal code. 2650 "countryCode": "A String", # Country code of the country to which this postal code belongs. 2651 }, 2652 ], 2653 "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. 2654 { # Contains information about a region that can be targeted by ads. 2655 "kind": "dfareporting#region", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#region". 2656 "countryDartId": "A String", # DART ID of the country to which this region belongs. 2657 "name": "A String", # Name of this region. 2658 "countryCode": "A String", # Country code of the country to which this region belongs. 2659 "regionCode": "A String", # Region code. 2660 "dartId": "A String", # DART ID of this region. 2661 }, 2662 ], 2663 "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. 2664 { # Contains information about a city that can be targeted by ads. 2665 "kind": "dfareporting#city", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#city". 2666 "countryDartId": "A String", # DART ID of the country to which this city belongs. 2667 "name": "A String", # Name of this city. 2668 "countryCode": "A String", # Country code of the country to which this city belongs. 2669 "metroCode": "A String", # Metro region code of the metro region (DMA) to which this city belongs. 2670 "regionCode": "A String", # Region code of the region to which this city belongs. 2671 "metroDmaId": "A String", # ID of the metro region (DMA) to which this city belongs. 2672 "dartId": "A String", # DART ID of this city. This is the ID used for targeting and generating reports. 2673 "regionDartId": "A String", # DART ID of the region to which this city belongs. 2674 }, 2675 ], 2676 "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. 2677 { # Contains information about a metro region that can be targeted by ads. 2678 "kind": "dfareporting#metro", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#metro". 2679 "countryDartId": "A String", # DART ID of the country to which this metro region belongs. 2680 "name": "A String", # Name of this metro region. 2681 "countryCode": "A String", # Country code of the country to which this metro region belongs. 2682 "metroCode": "A String", # Metro code of this metro region. This is equivalent to dma_id. 2683 "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. 2684 "dartId": "A String", # DART ID of this metro region. 2685 }, 2686 ], 2687 }, 2688 "creativeGroupAssignments": [ # Creative group assignments for this ad. Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative group number is allowed for a maximum of two assignments. 2689 { # Creative Group Assignment. 2690 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 2691 "creativeGroupId": "A String", # ID of the creative group to be assigned. 2692 }, 2693 ], 2694 "deliverySchedule": { # Delivery Schedule. # Delivery schedule information for this ad. Applicable when type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with subfields priority and impressionRatio are required on insertion when type is AD_SERVING_STANDARD_AD. 2695 "priority": "A String", # Serving priority of an ad, with respect to other ads. The lower the priority number, the greater the priority with which it is served. 2696 "hardCutoff": True or False, # Whether or not hard cutoff is enabled. If true, the ad will not serve after the end date and time. Otherwise the ad will continue to be served until it has reached its delivery goals. 2697 "frequencyCap": { # Frequency Cap. # Limit on the number of times an individual user can be served the ad within a specified period of time. 2698 "duration": "A String", # Duration of time, in seconds, for this frequency cap. The maximum duration is 90 days. Acceptable values are 1 to 7776000, inclusive. 2699 "impressions": "A String", # Number of times an individual user can be served the ad within the specified duration. Acceptable values are 1 to 15, inclusive. 2700 }, 2701 "impressionRatio": "A String", # Impression ratio for this ad. This ratio determines how often each ad is served relative to the others. For example, if ad A has an impression ratio of 1 and ad B has an impression ratio of 3, then Campaign Manager will serve ad B three times as often as ad A. Acceptable values are 1 to 10, inclusive. 2702 }, 2703 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field. 2704 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2705 "value": "A String", # The value of the dimension. 2706 "dimensionName": "A String", # The name of the dimension. 2707 "etag": "A String", # The eTag of this response for caching purposes. 2708 "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. 2709 "id": "A String", # The ID associated with the value if available. 2710 }, 2711 "eventTagOverrides": [ # Event tag overrides for this ad. 2712 { # Event tag override information. 2713 "enabled": True or False, # Whether this override is enabled. 2714 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 2715 }, 2716 ], 2717 "id": "A String", # ID of this ad. This is a read-only, auto-generated field. 2718 "accountId": "A String", # Account ID of this ad. This is a read-only field that can be left blank. 2719 "archived": True or False, # Whether this ad is archived. When true, active must be false. 2720 "targetingTemplateId": "A String", # Targeting template ID, used to apply preconfigured targeting information to this ad. This cannot be set while any of dayPartTargeting, geoTargeting, keyValueTargetingExpression, languageTargeting, remarketingListExpression, or technologyTargeting are set. Applicable when type is AD_SERVING_STANDARD_AD. 2721 "technologyTargeting": { # Technology Targeting. # Technology platform targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2722 "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. 2723 { # Contains information about a platform type that can be targeted by ads. 2724 "kind": "dfareporting#platformType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#platformType". 2725 "id": "A String", # ID of this platform type. 2726 "name": "A String", # Name of this platform type. 2727 }, 2728 ], 2729 "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. 2730 { # Contains information about a particular version of an operating system that can be targeted by ads. 2731 "majorVersion": "A String", # Major version (leftmost number) of this operating system version. 2732 "kind": "dfareporting#operatingSystemVersion", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystemVersion". 2733 "name": "A String", # Name of this operating system version. 2734 "id": "A String", # ID of this operating system version. 2735 "operatingSystem": { # Contains information about an operating system that can be targeted by ads. # Operating system of this operating system version. 2736 "mobile": True or False, # Whether this operating system is for mobile. 2737 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2738 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2739 "name": "A String", # Name of this operating system. 2740 "desktop": True or False, # Whether this operating system is for desktop. 2741 }, 2742 "minorVersion": "A String", # Minor version (number after the first dot) of this operating system version. 2743 }, 2744 ], 2745 "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. 2746 { # Contains information about a browser that can be targeted by ads. 2747 "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. 2748 "kind": "dfareporting#browser", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#browser". 2749 "name": "A String", # Name of this browser. 2750 "browserVersionId": "A String", # ID referring to this grouping of browser and version numbers. This is the ID used for targeting. 2751 "dartId": "A String", # DART ID of this browser. This is the ID used when generating reports. 2752 "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. 2753 }, 2754 ], 2755 "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. 2756 { # Contains information about an operating system that can be targeted by ads. 2757 "mobile": True or False, # Whether this operating system is for mobile. 2758 "dartId": "A String", # DART ID of this operating system. This is the ID used for targeting. 2759 "kind": "dfareporting#operatingSystem", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#operatingSystem". 2760 "name": "A String", # Name of this operating system. 2761 "desktop": True or False, # Whether this operating system is for desktop. 2762 }, 2763 ], 2764 "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. 2765 { # Contains information about a mobile carrier that can be targeted by ads. 2766 "kind": "dfareporting#mobileCarrier", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#mobileCarrier". 2767 "countryDartId": "A String", # DART ID of the country to which this mobile carrier belongs. 2768 "id": "A String", # ID of this mobile carrier. 2769 "countryCode": "A String", # Country code of the country to which this mobile carrier belongs. 2770 "name": "A String", # Name of this mobile carrier. 2771 }, 2772 ], 2773 "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. 2774 { # 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. 2775 "kind": "dfareporting#connectionType", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#connectionType". 2776 "id": "A String", # ID of this connection type. 2777 "name": "A String", # Name of this connection type. 2778 }, 2779 ], 2780 }, 2781 "creativeRotation": { # Creative Rotation. # Creative rotation for this ad. Applicable when type is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field should have exactly one creativeAssignment. 2782 "creativeAssignments": [ # Creative assignments in this creative rotation. 2783 { # Creative Assignment. 2784 "weight": 42, # Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1. 2785 "sequence": 42, # Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1 to 65535, inclusive. 2786 "applyEventTags": True or False, # Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO. 2787 "richMediaExitOverrides": [ # Rich media exit overrides for this creative assignment. 2788 # Applicable when the creative type is any of the following: 2789 # - DISPLAY 2790 # - RICH_MEDIA_INPAGE 2791 # - RICH_MEDIA_INPAGE_FLOATING 2792 # - RICH_MEDIA_IM_EXPAND 2793 # - RICH_MEDIA_EXPANDING 2794 # - RICH_MEDIA_INTERSTITIAL_FLOAT 2795 # - RICH_MEDIA_MOBILE_IN_APP 2796 # - RICH_MEDIA_MULTI_FLOATING 2797 # - RICH_MEDIA_PEEL_DOWN 2798 # - VPAID_LINEAR 2799 # - VPAID_NON_LINEAR 2800 { # Rich Media Exit Override. 2801 "clickThroughUrl": { # Click-through URL # Click-through URL of this rich media exit override. Applicable if the enabled field is set to true. 2802 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2803 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2804 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2805 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2806 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2807 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2808 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2809 }, 2810 "enabled": True or False, # Whether to use the clickThroughUrl. If false, the creative-level exit will be used. 2811 "exitId": "A String", # ID for the override to refer to a specific exit in the creative. 2812 }, 2813 ], 2814 "sslCompliant": True or False, # Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2815 "creativeGroupAssignments": [ # Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments. 2816 { # Creative Group Assignment. 2817 "creativeGroupNumber": "A String", # Creative group number of the creative group assignment. 2818 "creativeGroupId": "A String", # ID of the creative group to be assigned. 2819 }, 2820 ], 2821 "companionCreativeOverrides": [ # Companion creative overrides for this creative assignment. Applicable to video ads. 2822 { # Companion Click-through override. 2823 "clickThroughUrl": { # Click-through URL # Click-through URL of this companion click-through override. 2824 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2825 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2826 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2827 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2828 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2829 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2830 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2831 }, 2832 "creativeId": "A String", # ID of the creative for this companion click-through override. 2833 }, 2834 ], 2835 "startTime": "A String", # Date and time that the assigned creative should start serving. 2836 "clickThroughUrl": { # Click-through URL # Click-through URL of the creative assignment. 2837 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2838 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2839 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2840 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2841 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2842 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2843 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2844 }, 2845 "active": True or False, # Whether this creative assignment is active. When true, the creative will be included in the ad's rotation. 2846 "creativeId": "A String", # ID of the creative to be assigned. This is a required field. 2847 "endTime": "A String", # Date and time that the assigned creative should stop serving. Must be later than the start time. 2848 "creativeIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the creative. This is a read-only, auto-generated field. 2849 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2850 "value": "A String", # The value of the dimension. 2851 "dimensionName": "A String", # The name of the dimension. 2852 "etag": "A String", # The eTag of this response for caching purposes. 2853 "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. 2854 "id": "A String", # The ID associated with the value if available. 2855 }, 2856 }, 2857 ], 2858 "weightCalculationStrategy": "A String", # Strategy for calculating weights. Used with CREATIVE_ROTATION_TYPE_RANDOM. 2859 "creativeOptimizationConfigurationId": "A String", # Creative optimization configuration that is used by this ad. It should refer to one of the existing optimization configurations in the ad's campaign. If it is unset or set to 0, then the campaign's default optimization configuration will be used for this ad. 2860 "type": "A String", # Type of creative rotation. Can be used to specify whether to use sequential or random rotation. 2861 }, 2862 "clickThroughUrl": { # Click-through URL # Click-through URL for this ad. This is a required field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER. 2863 "computedClickThroughUrl": "A String", # Read-only convenience field representing the actual URL that will be used for this click-through. The URL is computed as follows: 2864 # - If defaultLandingPage is enabled then the campaign's default landing page URL is assigned to this field. 2865 # - If defaultLandingPage is not enabled and a landingPageId is specified then that landing page's URL is assigned to this field. 2866 # - If neither of the above cases apply, then the customClickThroughUrl is assigned to this field. 2867 "customClickThroughUrl": "A String", # Custom click-through URL. Applicable if the defaultLandingPage field is set to false and the landingPageId field is left unset. 2868 "landingPageId": "A String", # ID of the landing page for the click-through URL. Applicable if the defaultLandingPage field is set to false. 2869 "defaultLandingPage": True or False, # Whether the campaign default landing page is used. 2870 }, 2871 "comments": "A String", # Comments for this ad. 2872 "remarketingListExpression": { # Remarketing List Targeting Expression. # Remarketing list targeting expression for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2873 "expression": "A String", # Expression describing which lists are being targeted by the ad. 2874 }, 2875 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this ad. This is a read-only, auto-generated field. 2876 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2877 "value": "A String", # The value of the dimension. 2878 "dimensionName": "A String", # The name of the dimension. 2879 "etag": "A String", # The eTag of this response for caching purposes. 2880 "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. 2881 "id": "A String", # The ID associated with the value if available. 2882 }, 2883 "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. 2884 "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive. 2885 "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size". 2886 "iab": True or False, # IAB standard size. This is a read-only, auto-generated field. 2887 "id": "A String", # ID of this size. This is a read-only, auto-generated field. 2888 "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive. 2889 }, 2890 "type": "A String", # Type of ad. This is a required field on insertion. Note that default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative resource). 2891 "sslRequired": True or False, # Whether this ad requires ssl. This is a read-only field that is auto-generated when the ad is inserted or updated. 2892 "audienceSegmentId": "A String", # Audience segment ID that is being targeted for this ad. Applicable when type is AD_SERVING_STANDARD_AD. 2893 "keyValueTargetingExpression": { # Key Value Targeting Expression. # Key-value targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2894 "expression": "A String", # Keyword expression being targeted by the ad. 2895 }, 2896 "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field. 2897 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2898 "value": "A String", # The value of the dimension. 2899 "dimensionName": "A String", # The name of the dimension. 2900 "etag": "A String", # The eTag of this response for caching purposes. 2901 "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. 2902 "id": "A String", # The ID associated with the value if available. 2903 }, 2904 "defaultClickThroughEventTagProperties": { # Properties of inheriting and overriding the default click-through event tag. A campaign may override the event tag defined at the advertiser level, and an ad may also override the campaign's setting further. # Default click-through event tag properties for this ad. 2905 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 2906 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 2907 }, 2908 "createInfo": { # Modification timestamp. # Information about the creation of this ad. This is a read-only field. 2909 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2910 }, 2911 "startTime": "A String", # Date and time that this ad should start serving. If creating an ad, this field must be a time in the future. This is a required field on insertion. 2912 "active": True or False, # Whether this ad is active. When true, archived must be false. 2913 "compatibility": "A String", # Compatibility of this ad. Applicable when type is AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either rendering on desktop or on mobile devices or in mobile apps for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for existing default ads. New mobile placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and default ads created for those placements will be limited to those compatibility types. IN_STREAM_VIDEO refers to rendering in-stream video ads developed with the VAST standard. 2914 "kind": "dfareporting#ad", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#ad". 2915 "subaccountId": "A String", # Subaccount ID of this ad. This is a read-only field that can be left blank. 2916 "name": "A String", # Name of this ad. This is a required field and must be less than 256 characters long. 2917 "dayPartTargeting": { # Day Part Targeting. # Time and day targeting information for this ad. This field must be left blank if the ad is using a targeting template. Applicable when type is AD_SERVING_STANDARD_AD. 2918 "userLocalTime": True or False, # Whether or not to use the user's local time. If false, the America/New York time zone applies. 2919 "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. 2920 42, 2921 ], 2922 "daysOfWeek": [ # Days of the week when the ad will serve. 2923 # 2924 # Acceptable values are: 2925 # - "SUNDAY" 2926 # - "MONDAY" 2927 # - "TUESDAY" 2928 # - "WEDNESDAY" 2929 # - "THURSDAY" 2930 # - "FRIDAY" 2931 # - "SATURDAY" 2932 "A String", 2933 ], 2934 }, 2935 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this ad. This is a read-only field. 2936 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 2937 }, 2938 "sslCompliant": True or False, # Whether this ad is ssl compliant. This is a read-only field that is auto-generated when the ad is inserted or updated. 2939 "placementAssignments": [ # Placement assignments for this ad. 2940 { # Placement Assignment. 2941 "active": True or False, # Whether this placement assignment is active. When true, the placement will be included in the ad's rotation. 2942 "placementIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement. This is a read-only, auto-generated field. 2943 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 2944 "value": "A String", # The value of the dimension. 2945 "dimensionName": "A String", # The name of the dimension. 2946 "etag": "A String", # The eTag of this response for caching purposes. 2947 "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. 2948 "id": "A String", # The ID associated with the value if available. 2949 }, 2950 "placementId": "A String", # ID of the placement to be assigned. This is a required field. 2951 "sslRequired": True or False, # Whether the placement to be assigned requires SSL. This is a read-only field that is auto-generated when the ad is inserted or updated. 2952 }, 2953 ], 2954 "endTime": "A String", # Date and time that this ad should stop serving. Must be later than the start time. This is a required field on insertion. 2955 "dynamicClickTracker": True or False, # Whether this ad is a dynamic click tracker. Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert, and is read-only after insert. 2956 }</pre> 2957</div> 2958 2959</body></html>