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_v2_8.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v2_8.campaigns.html">campaigns</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 campaign by ID.</p> 80<p class="toc_element"> 81 <code><a href="#insert">insert(profileId, defaultLandingPageName, defaultLandingPageUrl, body)</a></code></p> 82<p class="firstline">Inserts a new campaign.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(profileId, overriddenEventTagId=None, archived=None, advertiserIds=None, pageToken=None, sortOrder=None, maxResults=None, excludedIds=None, advertiserGroupIds=None, searchString=None, subaccountId=None, ids=None, sortField=None, atLeastOneOptimizationActivity=None)</a></code></p> 85<p class="firstline">Retrieves a list of campaigns, 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 campaign. 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 campaign.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="get">get(profileId, id)</code> 98 <pre>Gets one campaign by ID. 99 100Args: 101 profileId: string, User profile ID associated with this request. (required) 102 id: string, Campaign ID. (required) 103 104Returns: 105 An object of the form: 106 107 { # Contains properties of a DCM campaign. 108 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 109 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 110 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 111 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 112 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 113 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 114 }, 115 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 116 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 117 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 118 "value": "A String", # The value of the dimension. 119 "dimensionName": "A String", # The name of the dimension. 120 "etag": "A String", # The eTag of this response for caching purposes. 121 "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. 122 "id": "A String", # The ID associated with the value if available. 123 }, 124 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 125 { # Event tag override information. 126 "enabled": True or False, # Whether this override is enabled. 127 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 128 }, 129 ], 130 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 131 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 132 { # Creative optimization activity. 133 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 134 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 135 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 136 "value": "A String", # The value of the dimension. 137 "dimensionName": "A String", # The name of the dimension. 138 "etag": "A String", # The eTag of this response for caching purposes. 139 "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. 140 "id": "A String", # The ID associated with the value if available. 141 }, 142 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 143 }, 144 ], 145 "optimizationModel": "A String", # Optimization model for this configuration. 146 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 147 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 148 }, 149 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 150 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 151 "traffickerEmails": [ # Campaign trafficker contact emails. 152 "A String", 153 ], 154 "archived": True or False, # Whether this campaign has been archived. 155 "externalId": "A String", # External ID for this campaign. 156 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 157 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 158 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 159 "value": "A String", # The value of the dimension. 160 "dimensionName": "A String", # The name of the dimension. 161 "etag": "A String", # The eTag of this response for caching purposes. 162 "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. 163 "id": "A String", # The ID associated with the value if available. 164 }, 165 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 166 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 167 "A String", 168 ], 169 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 170 { # Creative optimization settings. 171 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 172 { # Creative optimization activity. 173 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 174 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 175 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 176 "value": "A String", # The value of the dimension. 177 "dimensionName": "A String", # The name of the dimension. 178 "etag": "A String", # The eTag of this response for caching purposes. 179 "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. 180 "id": "A String", # The ID associated with the value if available. 181 }, 182 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 183 }, 184 ], 185 "optimizationModel": "A String", # Optimization model for this configuration. 186 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 187 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 188 }, 189 ], 190 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 191 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 192 }, 193 "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. # Click-through event tag ID override properties for this campaign. 194 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 195 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 196 }, 197 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 198 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 199 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 200 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 201 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 202 }, 203 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 204 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 205 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 206 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 207 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 208 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 209 }, 210 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 211 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 212 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 213 }, 214 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 215 { # Audience Segment Group. 216 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 217 { # Audience Segment. 218 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 219 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 220 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 221 }, 222 ], 223 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 224 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 225 }, 226 ], 227 }</pre> 228</div> 229 230<div class="method"> 231 <code class="details" id="insert">insert(profileId, defaultLandingPageName, defaultLandingPageUrl, body)</code> 232 <pre>Inserts a new campaign. 233 234Args: 235 profileId: string, User profile ID associated with this request. (required) 236 defaultLandingPageName: string, Default landing page name for this new campaign. Must be less than 256 characters long. (required) 237 defaultLandingPageUrl: string, Default landing page URL for this new campaign. (required) 238 body: object, The request body. (required) 239 The object takes the form of: 240 241{ # Contains properties of a DCM campaign. 242 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 243 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 244 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 245 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 246 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 247 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 248 }, 249 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 250 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 251 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 252 "value": "A String", # The value of the dimension. 253 "dimensionName": "A String", # The name of the dimension. 254 "etag": "A String", # The eTag of this response for caching purposes. 255 "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. 256 "id": "A String", # The ID associated with the value if available. 257 }, 258 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 259 { # Event tag override information. 260 "enabled": True or False, # Whether this override is enabled. 261 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 262 }, 263 ], 264 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 265 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 266 { # Creative optimization activity. 267 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 268 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 269 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 270 "value": "A String", # The value of the dimension. 271 "dimensionName": "A String", # The name of the dimension. 272 "etag": "A String", # The eTag of this response for caching purposes. 273 "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. 274 "id": "A String", # The ID associated with the value if available. 275 }, 276 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 277 }, 278 ], 279 "optimizationModel": "A String", # Optimization model for this configuration. 280 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 281 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 282 }, 283 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 284 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 285 "traffickerEmails": [ # Campaign trafficker contact emails. 286 "A String", 287 ], 288 "archived": True or False, # Whether this campaign has been archived. 289 "externalId": "A String", # External ID for this campaign. 290 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 291 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 292 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 293 "value": "A String", # The value of the dimension. 294 "dimensionName": "A String", # The name of the dimension. 295 "etag": "A String", # The eTag of this response for caching purposes. 296 "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. 297 "id": "A String", # The ID associated with the value if available. 298 }, 299 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 300 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 301 "A String", 302 ], 303 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 304 { # Creative optimization settings. 305 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 306 { # Creative optimization activity. 307 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 308 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 309 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 310 "value": "A String", # The value of the dimension. 311 "dimensionName": "A String", # The name of the dimension. 312 "etag": "A String", # The eTag of this response for caching purposes. 313 "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. 314 "id": "A String", # The ID associated with the value if available. 315 }, 316 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 317 }, 318 ], 319 "optimizationModel": "A String", # Optimization model for this configuration. 320 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 321 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 322 }, 323 ], 324 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 325 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 326 }, 327 "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. # Click-through event tag ID override properties for this campaign. 328 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 329 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 330 }, 331 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 332 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 333 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 334 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 335 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 336 }, 337 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 338 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 339 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 340 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 341 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 342 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 343 }, 344 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 345 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 346 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 347 }, 348 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 349 { # Audience Segment Group. 350 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 351 { # Audience Segment. 352 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 353 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 354 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 355 }, 356 ], 357 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 358 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 359 }, 360 ], 361 } 362 363 364Returns: 365 An object of the form: 366 367 { # Contains properties of a DCM campaign. 368 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 369 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 370 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 371 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 372 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 373 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 374 }, 375 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 376 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 377 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 378 "value": "A String", # The value of the dimension. 379 "dimensionName": "A String", # The name of the dimension. 380 "etag": "A String", # The eTag of this response for caching purposes. 381 "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. 382 "id": "A String", # The ID associated with the value if available. 383 }, 384 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 385 { # Event tag override information. 386 "enabled": True or False, # Whether this override is enabled. 387 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 388 }, 389 ], 390 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 391 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 392 { # Creative optimization activity. 393 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 394 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 395 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 396 "value": "A String", # The value of the dimension. 397 "dimensionName": "A String", # The name of the dimension. 398 "etag": "A String", # The eTag of this response for caching purposes. 399 "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. 400 "id": "A String", # The ID associated with the value if available. 401 }, 402 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 403 }, 404 ], 405 "optimizationModel": "A String", # Optimization model for this configuration. 406 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 407 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 408 }, 409 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 410 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 411 "traffickerEmails": [ # Campaign trafficker contact emails. 412 "A String", 413 ], 414 "archived": True or False, # Whether this campaign has been archived. 415 "externalId": "A String", # External ID for this campaign. 416 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 417 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 418 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 419 "value": "A String", # The value of the dimension. 420 "dimensionName": "A String", # The name of the dimension. 421 "etag": "A String", # The eTag of this response for caching purposes. 422 "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. 423 "id": "A String", # The ID associated with the value if available. 424 }, 425 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 426 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 427 "A String", 428 ], 429 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 430 { # Creative optimization settings. 431 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 432 { # Creative optimization activity. 433 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 434 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 435 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 436 "value": "A String", # The value of the dimension. 437 "dimensionName": "A String", # The name of the dimension. 438 "etag": "A String", # The eTag of this response for caching purposes. 439 "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. 440 "id": "A String", # The ID associated with the value if available. 441 }, 442 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 443 }, 444 ], 445 "optimizationModel": "A String", # Optimization model for this configuration. 446 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 447 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 448 }, 449 ], 450 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 451 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 452 }, 453 "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. # Click-through event tag ID override properties for this campaign. 454 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 455 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 456 }, 457 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 458 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 459 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 460 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 461 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 462 }, 463 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 464 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 465 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 466 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 467 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 468 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 469 }, 470 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 471 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 472 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 473 }, 474 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 475 { # Audience Segment Group. 476 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 477 { # Audience Segment. 478 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 479 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 480 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 481 }, 482 ], 483 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 484 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 485 }, 486 ], 487 }</pre> 488</div> 489 490<div class="method"> 491 <code class="details" id="list">list(profileId, overriddenEventTagId=None, archived=None, advertiserIds=None, pageToken=None, sortOrder=None, maxResults=None, excludedIds=None, advertiserGroupIds=None, searchString=None, subaccountId=None, ids=None, sortField=None, atLeastOneOptimizationActivity=None)</code> 492 <pre>Retrieves a list of campaigns, possibly filtered. This method supports paging. 493 494Args: 495 profileId: string, User profile ID associated with this request. (required) 496 overriddenEventTagId: string, Select only campaigns that have overridden this event tag ID. 497 archived: boolean, Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns. 498 advertiserIds: string, Select only campaigns that belong to these advertisers. (repeated) 499 pageToken: string, Value of the nextPageToken from the previous result page. 500 sortOrder: string, Order of sorted results. 501 Allowed values 502 ASCENDING - 503 DESCENDING - 504 maxResults: integer, Maximum number of results to return. 505 excludedIds: string, Exclude campaigns with these IDs. (repeated) 506 advertiserGroupIds: string, Select only campaigns whose advertisers belong to these advertiser groups. (repeated) 507 searchString: string, Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns with names like "campaign June 2015", "campaign April 2015", or simply "campaign 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 "campaign" will match campaigns with name "my campaign", "campaign 2015", or simply "campaign". 508 subaccountId: string, Select only campaigns that belong to this subaccount. 509 ids: string, Select only campaigns with these IDs. (repeated) 510 sortField: string, Field by which to sort the list. 511 Allowed values 512 ID - 513 NAME - 514 atLeastOneOptimizationActivity: boolean, Select only campaigns that have at least one optimization activity. 515 516Returns: 517 An object of the form: 518 519 { # Campaign List Response 520 "campaigns": [ # Campaign collection. 521 { # Contains properties of a DCM campaign. 522 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 523 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 524 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 525 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 526 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 527 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 528 }, 529 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 530 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 531 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 532 "value": "A String", # The value of the dimension. 533 "dimensionName": "A String", # The name of the dimension. 534 "etag": "A String", # The eTag of this response for caching purposes. 535 "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. 536 "id": "A String", # The ID associated with the value if available. 537 }, 538 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 539 { # Event tag override information. 540 "enabled": True or False, # Whether this override is enabled. 541 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 542 }, 543 ], 544 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 545 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 546 { # Creative optimization activity. 547 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 548 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 549 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 550 "value": "A String", # The value of the dimension. 551 "dimensionName": "A String", # The name of the dimension. 552 "etag": "A String", # The eTag of this response for caching purposes. 553 "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. 554 "id": "A String", # The ID associated with the value if available. 555 }, 556 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 557 }, 558 ], 559 "optimizationModel": "A String", # Optimization model for this configuration. 560 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 561 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 562 }, 563 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 564 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 565 "traffickerEmails": [ # Campaign trafficker contact emails. 566 "A String", 567 ], 568 "archived": True or False, # Whether this campaign has been archived. 569 "externalId": "A String", # External ID for this campaign. 570 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 571 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 572 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 573 "value": "A String", # The value of the dimension. 574 "dimensionName": "A String", # The name of the dimension. 575 "etag": "A String", # The eTag of this response for caching purposes. 576 "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. 577 "id": "A String", # The ID associated with the value if available. 578 }, 579 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 580 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 581 "A String", 582 ], 583 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 584 { # Creative optimization settings. 585 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 586 { # Creative optimization activity. 587 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 588 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 589 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 590 "value": "A String", # The value of the dimension. 591 "dimensionName": "A String", # The name of the dimension. 592 "etag": "A String", # The eTag of this response for caching purposes. 593 "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. 594 "id": "A String", # The ID associated with the value if available. 595 }, 596 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 597 }, 598 ], 599 "optimizationModel": "A String", # Optimization model for this configuration. 600 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 601 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 602 }, 603 ], 604 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 605 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 606 }, 607 "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. # Click-through event tag ID override properties for this campaign. 608 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 609 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 610 }, 611 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 612 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 613 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 614 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 615 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 616 }, 617 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 618 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 619 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 620 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 621 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 622 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 623 }, 624 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 625 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 626 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 627 }, 628 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 629 { # Audience Segment Group. 630 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 631 { # Audience Segment. 632 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 633 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 634 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 635 }, 636 ], 637 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 638 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 639 }, 640 ], 641 }, 642 ], 643 "nextPageToken": "A String", # Pagination token to be used for the next list operation. 644 "kind": "dfareporting#campaignsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignsListResponse". 645 }</pre> 646</div> 647 648<div class="method"> 649 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 650 <pre>Retrieves the next page of results. 651 652Args: 653 previous_request: The request for the previous page. (required) 654 previous_response: The response from the request for the previous page. (required) 655 656Returns: 657 A request object that you can call 'execute()' on to request the next 658 page. Returns None if there are no more items in the collection. 659 </pre> 660</div> 661 662<div class="method"> 663 <code class="details" id="patch">patch(profileId, id, body)</code> 664 <pre>Updates an existing campaign. This method supports patch semantics. 665 666Args: 667 profileId: string, User profile ID associated with this request. (required) 668 id: string, Campaign ID. (required) 669 body: object, The request body. (required) 670 The object takes the form of: 671 672{ # Contains properties of a DCM campaign. 673 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 674 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 675 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 676 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 677 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 678 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 679 }, 680 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 681 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 682 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 683 "value": "A String", # The value of the dimension. 684 "dimensionName": "A String", # The name of the dimension. 685 "etag": "A String", # The eTag of this response for caching purposes. 686 "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. 687 "id": "A String", # The ID associated with the value if available. 688 }, 689 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 690 { # Event tag override information. 691 "enabled": True or False, # Whether this override is enabled. 692 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 693 }, 694 ], 695 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 696 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 697 { # Creative optimization activity. 698 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 699 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 700 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 701 "value": "A String", # The value of the dimension. 702 "dimensionName": "A String", # The name of the dimension. 703 "etag": "A String", # The eTag of this response for caching purposes. 704 "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. 705 "id": "A String", # The ID associated with the value if available. 706 }, 707 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 708 }, 709 ], 710 "optimizationModel": "A String", # Optimization model for this configuration. 711 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 712 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 713 }, 714 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 715 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 716 "traffickerEmails": [ # Campaign trafficker contact emails. 717 "A String", 718 ], 719 "archived": True or False, # Whether this campaign has been archived. 720 "externalId": "A String", # External ID for this campaign. 721 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 722 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 723 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 724 "value": "A String", # The value of the dimension. 725 "dimensionName": "A String", # The name of the dimension. 726 "etag": "A String", # The eTag of this response for caching purposes. 727 "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. 728 "id": "A String", # The ID associated with the value if available. 729 }, 730 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 731 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 732 "A String", 733 ], 734 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 735 { # Creative optimization settings. 736 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 737 { # Creative optimization activity. 738 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 739 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. 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 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 748 }, 749 ], 750 "optimizationModel": "A String", # Optimization model for this configuration. 751 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 752 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 753 }, 754 ], 755 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 756 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 757 }, 758 "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. # Click-through event tag ID override properties for this campaign. 759 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 760 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 761 }, 762 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 763 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 764 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 765 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 766 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 767 }, 768 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 769 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 770 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 771 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 772 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 773 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 774 }, 775 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 776 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 777 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 778 }, 779 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 780 { # Audience Segment Group. 781 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 782 { # Audience Segment. 783 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 784 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 785 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 786 }, 787 ], 788 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 789 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 790 }, 791 ], 792 } 793 794 795Returns: 796 An object of the form: 797 798 { # Contains properties of a DCM campaign. 799 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 800 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 801 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 802 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 803 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 804 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 805 }, 806 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 807 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 808 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 809 "value": "A String", # The value of the dimension. 810 "dimensionName": "A String", # The name of the dimension. 811 "etag": "A String", # The eTag of this response for caching purposes. 812 "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. 813 "id": "A String", # The ID associated with the value if available. 814 }, 815 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 816 { # Event tag override information. 817 "enabled": True or False, # Whether this override is enabled. 818 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 819 }, 820 ], 821 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 822 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 823 { # Creative optimization activity. 824 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 825 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 826 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 827 "value": "A String", # The value of the dimension. 828 "dimensionName": "A String", # The name of the dimension. 829 "etag": "A String", # The eTag of this response for caching purposes. 830 "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. 831 "id": "A String", # The ID associated with the value if available. 832 }, 833 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 834 }, 835 ], 836 "optimizationModel": "A String", # Optimization model for this configuration. 837 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 838 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 839 }, 840 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 841 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 842 "traffickerEmails": [ # Campaign trafficker contact emails. 843 "A String", 844 ], 845 "archived": True or False, # Whether this campaign has been archived. 846 "externalId": "A String", # External ID for this campaign. 847 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 848 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 849 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 850 "value": "A String", # The value of the dimension. 851 "dimensionName": "A String", # The name of the dimension. 852 "etag": "A String", # The eTag of this response for caching purposes. 853 "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. 854 "id": "A String", # The ID associated with the value if available. 855 }, 856 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 857 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 858 "A String", 859 ], 860 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 861 { # Creative optimization settings. 862 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 863 { # Creative optimization activity. 864 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 865 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 866 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 867 "value": "A String", # The value of the dimension. 868 "dimensionName": "A String", # The name of the dimension. 869 "etag": "A String", # The eTag of this response for caching purposes. 870 "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. 871 "id": "A String", # The ID associated with the value if available. 872 }, 873 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 874 }, 875 ], 876 "optimizationModel": "A String", # Optimization model for this configuration. 877 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 878 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 879 }, 880 ], 881 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 882 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 883 }, 884 "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. # Click-through event tag ID override properties for this campaign. 885 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 886 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 887 }, 888 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 889 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 890 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 891 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 892 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 893 }, 894 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 895 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 896 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 897 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 898 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 899 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 900 }, 901 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 902 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 903 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 904 }, 905 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 906 { # Audience Segment Group. 907 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 908 { # Audience Segment. 909 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 910 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 911 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 912 }, 913 ], 914 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 915 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 916 }, 917 ], 918 }</pre> 919</div> 920 921<div class="method"> 922 <code class="details" id="update">update(profileId, body)</code> 923 <pre>Updates an existing campaign. 924 925Args: 926 profileId: string, User profile ID associated with this request. (required) 927 body: object, The request body. (required) 928 The object takes the form of: 929 930{ # Contains properties of a DCM campaign. 931 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 932 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 933 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 934 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 935 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 936 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 937 }, 938 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 939 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 940 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 941 "value": "A String", # The value of the dimension. 942 "dimensionName": "A String", # The name of the dimension. 943 "etag": "A String", # The eTag of this response for caching purposes. 944 "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. 945 "id": "A String", # The ID associated with the value if available. 946 }, 947 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 948 { # Event tag override information. 949 "enabled": True or False, # Whether this override is enabled. 950 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 951 }, 952 ], 953 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 954 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 955 { # Creative optimization activity. 956 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 957 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 958 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 959 "value": "A String", # The value of the dimension. 960 "dimensionName": "A String", # The name of the dimension. 961 "etag": "A String", # The eTag of this response for caching purposes. 962 "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. 963 "id": "A String", # The ID associated with the value if available. 964 }, 965 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 966 }, 967 ], 968 "optimizationModel": "A String", # Optimization model for this configuration. 969 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 970 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 971 }, 972 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 973 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 974 "traffickerEmails": [ # Campaign trafficker contact emails. 975 "A String", 976 ], 977 "archived": True or False, # Whether this campaign has been archived. 978 "externalId": "A String", # External ID for this campaign. 979 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 980 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 981 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 982 "value": "A String", # The value of the dimension. 983 "dimensionName": "A String", # The name of the dimension. 984 "etag": "A String", # The eTag of this response for caching purposes. 985 "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. 986 "id": "A String", # The ID associated with the value if available. 987 }, 988 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 989 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 990 "A String", 991 ], 992 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 993 { # Creative optimization settings. 994 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 995 { # Creative optimization activity. 996 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 997 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 998 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 999 "value": "A String", # The value of the dimension. 1000 "dimensionName": "A String", # The name of the dimension. 1001 "etag": "A String", # The eTag of this response for caching purposes. 1002 "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. 1003 "id": "A String", # The ID associated with the value if available. 1004 }, 1005 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 1006 }, 1007 ], 1008 "optimizationModel": "A String", # Optimization model for this configuration. 1009 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 1010 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 1011 }, 1012 ], 1013 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 1014 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1015 }, 1016 "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. # Click-through event tag ID override properties for this campaign. 1017 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 1018 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 1019 }, 1020 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 1021 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 1022 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 1023 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 1024 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 1025 }, 1026 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 1027 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 1028 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 1029 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 1030 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 1031 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 1032 }, 1033 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 1034 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 1035 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1036 }, 1037 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 1038 { # Audience Segment Group. 1039 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 1040 { # Audience Segment. 1041 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 1042 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 1043 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 1044 }, 1045 ], 1046 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 1047 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 1048 }, 1049 ], 1050 } 1051 1052 1053Returns: 1054 An object of the form: 1055 1056 { # Contains properties of a DCM campaign. 1057 "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long. 1058 "startDate": "A String", # Date on which the campaign starts running. The start date can be any date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This is a required field. 1059 "endDate": "A String", # Date on which the campaign will stop running. On insert, the end date must be today or a future date. The end date must be later than or be the same as the start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective campaign run date is just that day only, 6/25/2015. The hours, minutes, and seconds of the end date should not be set, as doing so will result in an error. This is a required field. 1060 "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign. 1061 "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long. 1062 "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value. 1063 }, 1064 "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field. 1065 "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field. 1066 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1067 "value": "A String", # The value of the dimension. 1068 "dimensionName": "A String", # The name of the dimension. 1069 "etag": "A String", # The eTag of this response for caching purposes. 1070 "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. 1071 "id": "A String", # The ID associated with the value if available. 1072 }, 1073 "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags. 1074 { # Event tag override information. 1075 "enabled": True or False, # Whether this override is enabled. 1076 "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field. 1077 }, 1078 ], 1079 "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign. 1080 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 1081 { # Creative optimization activity. 1082 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 1083 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 1084 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1085 "value": "A String", # The value of the dimension. 1086 "dimensionName": "A String", # The name of the dimension. 1087 "etag": "A String", # The eTag of this response for caching purposes. 1088 "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. 1089 "id": "A String", # The ID associated with the value if available. 1090 }, 1091 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 1092 }, 1093 ], 1094 "optimizationModel": "A String", # Optimization model for this configuration. 1095 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 1096 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 1097 }, 1098 "id": "A String", # ID of this campaign. This is a read-only auto-generated field. 1099 "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank. 1100 "traffickerEmails": [ # Campaign trafficker contact emails. 1101 "A String", 1102 ], 1103 "archived": True or False, # Whether this campaign has been archived. 1104 "externalId": "A String", # External ID for this campaign. 1105 "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser. 1106 "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field. 1107 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1108 "value": "A String", # The value of the dimension. 1109 "dimensionName": "A String", # The name of the dimension. 1110 "etag": "A String", # The eTag of this response for caching purposes. 1111 "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. 1112 "id": "A String", # The ID associated with the value if available. 1113 }, 1114 "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign. 1115 "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign. 1116 "A String", 1117 ], 1118 "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign. 1119 { # Creative optimization settings. 1120 "optimizationActivitys": [ # List of optimization activities associated with this configuration. 1121 { # Creative optimization activity. 1122 "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field. 1123 "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field. 1124 "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue. 1125 "value": "A String", # The value of the dimension. 1126 "dimensionName": "A String", # The name of the dimension. 1127 "etag": "A String", # The eTag of this response for caching purposes. 1128 "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. 1129 "id": "A String", # The ID associated with the value if available. 1130 }, 1131 "weight": 42, # Weight associated with this optimization. The weight assigned will be understood in proportion to the weights assigned to the other optimization activities. Value must be greater than or equal to 1. 1132 }, 1133 ], 1134 "optimizationModel": "A String", # Optimization model for this configuration. 1135 "id": "A String", # ID of this creative optimization config. This field is auto-generated when the campaign is inserted or updated. It can be null for existing campaigns. 1136 "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long. 1137 }, 1138 ], 1139 "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field. 1140 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1141 }, 1142 "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. # Click-through event tag ID override properties for this campaign. 1143 "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value. 1144 "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope. 1145 }, 1146 "adBlockingConfiguration": { # Campaign ad blocking settings. # Ad blocking settings for this campaign. 1147 "creativeBundleId": "A String", # ID of a creative bundle to use for this campaign. If set, brand-neutral ads will select creatives from this bundle. Otherwise, a default transparent pixel will be used. 1148 "clickThroughUrl": "A String", # Click-through URL used by brand-neutral ads. This is a required field when overrideClickThroughUrl is set to true. 1149 "enabled": True or False, # Whether this campaign has enabled ad blocking. When true, ad blocking is enabled for placements in the campaign, but this may be overridden by site and placement settings. When false, ad blocking is disabled for all placements under the campaign, regardless of site and placement settings. 1150 "overrideClickThroughUrl": True or False, # Whether the brand-neutral ad's click-through URL comes from the campaign's creative bundle or the override URL. Must be set to true if ad blocking is enabled and no creative bundle is configured. 1151 }, 1152 "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign". 1153 "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank. 1154 "name": "A String", # Name of this campaign. This is a required field and must be less than 256 characters long and unique among campaigns of the same advertiser. 1155 "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign. 1156 "clickDuration": 42, # Lookback window, in days, from the last time a given user clicked on one of your ads. If you enter 0, clicks will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 1157 "postImpressionActivitiesDuration": 42, # Lookback window, in days, from the last time a given user viewed one of your ads. If you enter 0, impressions will not be considered as triggering events for floodlight tracking. If you leave this field blank, the default value for your account will be used. Acceptable values are 0 to 90, inclusive. 1158 }, 1159 "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign. 1160 "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field. 1161 "time": "A String", # Timestamp of the last change in milliseconds since epoch. 1162 }, 1163 "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups. 1164 { # Audience Segment Group. 1165 "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100. 1166 { # Audience Segment. 1167 "allocation": 42, # Weight allocated to this segment. The weight assigned will be understood in proportion to the weights assigned to other segments in the same segment group. Acceptable values are 1 to 1000, inclusive. 1168 "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field. 1169 "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long. 1170 }, 1171 ], 1172 "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field. 1173 "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long. 1174 }, 1175 ], 1176 }</pre> 1177</div> 1178 1179</body></html>