• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_7.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v2_7.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      "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
198      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
199      "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.
200      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
201        "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.
202        "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.
203      },
204      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
205      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
206        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
207      },
208      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
209        { # Audience Segment Group.
210          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
211            { # Audience Segment.
212              "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.
213              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
214              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
215            },
216          ],
217          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
218          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
219        },
220      ],
221    }</pre>
222</div>
223
224<div class="method">
225    <code class="details" id="insert">insert(profileId, defaultLandingPageName, defaultLandingPageUrl, body)</code>
226  <pre>Inserts a new campaign.
227
228Args:
229  profileId: string, User profile ID associated with this request. (required)
230  defaultLandingPageName: string, Default landing page name for this new campaign. Must be less than 256 characters long. (required)
231  defaultLandingPageUrl: string, Default landing page URL for this new campaign. (required)
232  body: object, The request body. (required)
233    The object takes the form of:
234
235{ # Contains properties of a DCM campaign.
236    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
237    "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.
238    "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.
239    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
240      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
241      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
242    },
243    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
244    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
245      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
246      "value": "A String", # The value of the dimension.
247      "dimensionName": "A String", # The name of the dimension.
248      "etag": "A String", # The eTag of this response for caching purposes.
249      "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.
250      "id": "A String", # The ID associated with the value if available.
251    },
252    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
253      { # Event tag override information.
254        "enabled": True or False, # Whether this override is enabled.
255        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
256      },
257    ],
258    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
259      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
260        { # Creative optimization activity.
261          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
262          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
263            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
264            "value": "A String", # The value of the dimension.
265            "dimensionName": "A String", # The name of the dimension.
266            "etag": "A String", # The eTag of this response for caching purposes.
267            "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.
268            "id": "A String", # The ID associated with the value if available.
269          },
270          "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.
271        },
272      ],
273      "optimizationModel": "A String", # Optimization model for this configuration.
274      "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.
275      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
276    },
277    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
278    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
279    "traffickerEmails": [ # Campaign trafficker contact emails.
280      "A String",
281    ],
282    "archived": True or False, # Whether this campaign has been archived.
283    "externalId": "A String", # External ID for this campaign.
284    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
285    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
286      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
287      "value": "A String", # The value of the dimension.
288      "dimensionName": "A String", # The name of the dimension.
289      "etag": "A String", # The eTag of this response for caching purposes.
290      "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.
291      "id": "A String", # The ID associated with the value if available.
292    },
293    "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
294    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
295      "A String",
296    ],
297    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
298      { # Creative optimization settings.
299        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
300          { # Creative optimization activity.
301            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
302            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
303              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
304              "value": "A String", # The value of the dimension.
305              "dimensionName": "A String", # The name of the dimension.
306              "etag": "A String", # The eTag of this response for caching purposes.
307              "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.
308              "id": "A String", # The ID associated with the value if available.
309            },
310            "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.
311          },
312        ],
313        "optimizationModel": "A String", # Optimization model for this configuration.
314        "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.
315        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
316      },
317    ],
318    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
319      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
320    },
321    "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.
322      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
323      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
324    },
325    "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
326    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
327    "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.
328    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
329      "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.
330      "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.
331    },
332    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
333    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
334      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
335    },
336    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
337      { # Audience Segment Group.
338        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
339          { # Audience Segment.
340            "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.
341            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
342            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
343          },
344        ],
345        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
346        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
347      },
348    ],
349  }
350
351
352Returns:
353  An object of the form:
354
355    { # Contains properties of a DCM campaign.
356      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
357      "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.
358      "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.
359      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
360        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
361        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
362      },
363      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
364      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
365        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
366        "value": "A String", # The value of the dimension.
367        "dimensionName": "A String", # The name of the dimension.
368        "etag": "A String", # The eTag of this response for caching purposes.
369        "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.
370        "id": "A String", # The ID associated with the value if available.
371      },
372      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
373        { # Event tag override information.
374          "enabled": True or False, # Whether this override is enabled.
375          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
376        },
377      ],
378      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
379        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
380          { # Creative optimization activity.
381            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
382            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
383              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
384              "value": "A String", # The value of the dimension.
385              "dimensionName": "A String", # The name of the dimension.
386              "etag": "A String", # The eTag of this response for caching purposes.
387              "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.
388              "id": "A String", # The ID associated with the value if available.
389            },
390            "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.
391          },
392        ],
393        "optimizationModel": "A String", # Optimization model for this configuration.
394        "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.
395        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
396      },
397      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
398      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
399      "traffickerEmails": [ # Campaign trafficker contact emails.
400        "A String",
401      ],
402      "archived": True or False, # Whether this campaign has been archived.
403      "externalId": "A String", # External ID for this campaign.
404      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
405      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
406        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
407        "value": "A String", # The value of the dimension.
408        "dimensionName": "A String", # The name of the dimension.
409        "etag": "A String", # The eTag of this response for caching purposes.
410        "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.
411        "id": "A String", # The ID associated with the value if available.
412      },
413      "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
414      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
415        "A String",
416      ],
417      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
418        { # Creative optimization settings.
419          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
420            { # Creative optimization activity.
421              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
422              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
423                "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
424                "value": "A String", # The value of the dimension.
425                "dimensionName": "A String", # The name of the dimension.
426                "etag": "A String", # The eTag of this response for caching purposes.
427                "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.
428                "id": "A String", # The ID associated with the value if available.
429              },
430              "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.
431            },
432          ],
433          "optimizationModel": "A String", # Optimization model for this configuration.
434          "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.
435          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
436        },
437      ],
438      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
439        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
440      },
441      "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.
442        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
443        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
444      },
445      "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
446      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
447      "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.
448      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
449        "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.
450        "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.
451      },
452      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
453      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
454        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
455      },
456      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
457        { # Audience Segment Group.
458          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
459            { # Audience Segment.
460              "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.
461              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
462              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
463            },
464          ],
465          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
466          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
467        },
468      ],
469    }</pre>
470</div>
471
472<div class="method">
473    <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>
474  <pre>Retrieves a list of campaigns, possibly filtered. This method supports paging.
475
476Args:
477  profileId: string, User profile ID associated with this request. (required)
478  overriddenEventTagId: string, Select only campaigns that have overridden this event tag ID.
479  archived: boolean, Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.
480  advertiserIds: string, Select only campaigns that belong to these advertisers. (repeated)
481  pageToken: string, Value of the nextPageToken from the previous result page.
482  sortOrder: string, Order of sorted results.
483    Allowed values
484      ASCENDING -
485      DESCENDING -
486  maxResults: integer, Maximum number of results to return.
487  excludedIds: string, Exclude campaigns with these IDs. (repeated)
488  advertiserGroupIds: string, Select only campaigns whose advertisers belong to these advertiser groups. (repeated)
489  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".
490  subaccountId: string, Select only campaigns that belong to this subaccount.
491  ids: string, Select only campaigns with these IDs. (repeated)
492  sortField: string, Field by which to sort the list.
493    Allowed values
494      ID -
495      NAME -
496  atLeastOneOptimizationActivity: boolean, Select only campaigns that have at least one optimization activity.
497
498Returns:
499  An object of the form:
500
501    { # Campaign List Response
502    "campaigns": [ # Campaign collection.
503      { # Contains properties of a DCM campaign.
504          "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
505          "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.
506          "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.
507          "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
508            "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
509            "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
510          },
511          "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
512          "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
513            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
514            "value": "A String", # The value of the dimension.
515            "dimensionName": "A String", # The name of the dimension.
516            "etag": "A String", # The eTag of this response for caching purposes.
517            "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.
518            "id": "A String", # The ID associated with the value if available.
519          },
520          "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
521            { # Event tag override information.
522              "enabled": True or False, # Whether this override is enabled.
523              "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
524            },
525          ],
526          "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
527            "optimizationActivitys": [ # List of optimization activities associated with this configuration.
528              { # Creative optimization activity.
529                "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
530                "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. 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                "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.
539              },
540            ],
541            "optimizationModel": "A String", # Optimization model for this configuration.
542            "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.
543            "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
544          },
545          "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
546          "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
547          "traffickerEmails": [ # Campaign trafficker contact emails.
548            "A String",
549          ],
550          "archived": True or False, # Whether this campaign has been archived.
551          "externalId": "A String", # External ID for this campaign.
552          "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
553          "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
554            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
555            "value": "A String", # The value of the dimension.
556            "dimensionName": "A String", # The name of the dimension.
557            "etag": "A String", # The eTag of this response for caching purposes.
558            "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.
559            "id": "A String", # The ID associated with the value if available.
560          },
561          "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
562          "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
563            "A String",
564          ],
565          "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
566            { # Creative optimization settings.
567              "optimizationActivitys": [ # List of optimization activities associated with this configuration.
568                { # Creative optimization activity.
569                  "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
570                  "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
571                    "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
572                    "value": "A String", # The value of the dimension.
573                    "dimensionName": "A String", # The name of the dimension.
574                    "etag": "A String", # The eTag of this response for caching purposes.
575                    "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.
576                    "id": "A String", # The ID associated with the value if available.
577                  },
578                  "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.
579                },
580              ],
581              "optimizationModel": "A String", # Optimization model for this configuration.
582              "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.
583              "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
584            },
585          ],
586          "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
587            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
588          },
589          "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.
590            "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
591            "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
592          },
593          "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
594          "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
595          "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.
596          "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
597            "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.
598            "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.
599          },
600          "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
601          "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
602            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
603          },
604          "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
605            { # Audience Segment Group.
606              "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
607                { # Audience Segment.
608                  "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.
609                  "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
610                  "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
611                },
612              ],
613              "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
614              "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
615            },
616          ],
617        },
618    ],
619    "nextPageToken": "A String", # Pagination token to be used for the next list operation.
620    "kind": "dfareporting#campaignsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaignsListResponse".
621  }</pre>
622</div>
623
624<div class="method">
625    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
626  <pre>Retrieves the next page of results.
627
628Args:
629  previous_request: The request for the previous page. (required)
630  previous_response: The response from the request for the previous page. (required)
631
632Returns:
633  A request object that you can call 'execute()' on to request the next
634  page. Returns None if there are no more items in the collection.
635    </pre>
636</div>
637
638<div class="method">
639    <code class="details" id="patch">patch(profileId, id, body)</code>
640  <pre>Updates an existing campaign. This method supports patch semantics.
641
642Args:
643  profileId: string, User profile ID associated with this request. (required)
644  id: string, Campaign ID. (required)
645  body: object, The request body. (required)
646    The object takes the form of:
647
648{ # Contains properties of a DCM campaign.
649    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
650    "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.
651    "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.
652    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
653      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
654      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
655    },
656    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
657    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
658      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
659      "value": "A String", # The value of the dimension.
660      "dimensionName": "A String", # The name of the dimension.
661      "etag": "A String", # The eTag of this response for caching purposes.
662      "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.
663      "id": "A String", # The ID associated with the value if available.
664    },
665    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
666      { # Event tag override information.
667        "enabled": True or False, # Whether this override is enabled.
668        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
669      },
670    ],
671    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
672      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
673        { # Creative optimization activity.
674          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
675          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
676            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
677            "value": "A String", # The value of the dimension.
678            "dimensionName": "A String", # The name of the dimension.
679            "etag": "A String", # The eTag of this response for caching purposes.
680            "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.
681            "id": "A String", # The ID associated with the value if available.
682          },
683          "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.
684        },
685      ],
686      "optimizationModel": "A String", # Optimization model for this configuration.
687      "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.
688      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
689    },
690    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
691    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
692    "traffickerEmails": [ # Campaign trafficker contact emails.
693      "A String",
694    ],
695    "archived": True or False, # Whether this campaign has been archived.
696    "externalId": "A String", # External ID for this campaign.
697    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
698    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
699      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
700      "value": "A String", # The value of the dimension.
701      "dimensionName": "A String", # The name of the dimension.
702      "etag": "A String", # The eTag of this response for caching purposes.
703      "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.
704      "id": "A String", # The ID associated with the value if available.
705    },
706    "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
707    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
708      "A String",
709    ],
710    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
711      { # Creative optimization settings.
712        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
713          { # Creative optimization activity.
714            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
715            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
716              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
717              "value": "A String", # The value of the dimension.
718              "dimensionName": "A String", # The name of the dimension.
719              "etag": "A String", # The eTag of this response for caching purposes.
720              "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.
721              "id": "A String", # The ID associated with the value if available.
722            },
723            "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.
724          },
725        ],
726        "optimizationModel": "A String", # Optimization model for this configuration.
727        "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.
728        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
729      },
730    ],
731    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
732      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
733    },
734    "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.
735      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
736      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
737    },
738    "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
739    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
740    "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.
741    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
742      "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.
743      "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.
744    },
745    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
746    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
747      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
748    },
749    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
750      { # Audience Segment Group.
751        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
752          { # Audience Segment.
753            "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.
754            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
755            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
756          },
757        ],
758        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
759        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
760      },
761    ],
762  }
763
764
765Returns:
766  An object of the form:
767
768    { # Contains properties of a DCM campaign.
769      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
770      "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.
771      "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.
772      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
773        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
774        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
775      },
776      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
777      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
778        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
779        "value": "A String", # The value of the dimension.
780        "dimensionName": "A String", # The name of the dimension.
781        "etag": "A String", # The eTag of this response for caching purposes.
782        "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.
783        "id": "A String", # The ID associated with the value if available.
784      },
785      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
786        { # Event tag override information.
787          "enabled": True or False, # Whether this override is enabled.
788          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
789        },
790      ],
791      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
792        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
793          { # Creative optimization activity.
794            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
795            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
796              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
797              "value": "A String", # The value of the dimension.
798              "dimensionName": "A String", # The name of the dimension.
799              "etag": "A String", # The eTag of this response for caching purposes.
800              "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.
801              "id": "A String", # The ID associated with the value if available.
802            },
803            "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.
804          },
805        ],
806        "optimizationModel": "A String", # Optimization model for this configuration.
807        "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.
808        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
809      },
810      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
811      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
812      "traffickerEmails": [ # Campaign trafficker contact emails.
813        "A String",
814      ],
815      "archived": True or False, # Whether this campaign has been archived.
816      "externalId": "A String", # External ID for this campaign.
817      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
818      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
819        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
820        "value": "A String", # The value of the dimension.
821        "dimensionName": "A String", # The name of the dimension.
822        "etag": "A String", # The eTag of this response for caching purposes.
823        "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.
824        "id": "A String", # The ID associated with the value if available.
825      },
826      "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
827      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
828        "A String",
829      ],
830      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
831        { # Creative optimization settings.
832          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
833            { # Creative optimization activity.
834              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
835              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
836                "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
837                "value": "A String", # The value of the dimension.
838                "dimensionName": "A String", # The name of the dimension.
839                "etag": "A String", # The eTag of this response for caching purposes.
840                "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.
841                "id": "A String", # The ID associated with the value if available.
842              },
843              "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.
844            },
845          ],
846          "optimizationModel": "A String", # Optimization model for this configuration.
847          "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.
848          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
849        },
850      ],
851      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
852        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
853      },
854      "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.
855        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
856        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
857      },
858      "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
859      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
860      "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.
861      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
862        "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.
863        "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.
864      },
865      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
866      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
867        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
868      },
869      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
870        { # Audience Segment Group.
871          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
872            { # Audience Segment.
873              "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.
874              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
875              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
876            },
877          ],
878          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
879          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
880        },
881      ],
882    }</pre>
883</div>
884
885<div class="method">
886    <code class="details" id="update">update(profileId, body)</code>
887  <pre>Updates an existing campaign.
888
889Args:
890  profileId: string, User profile ID associated with this request. (required)
891  body: object, The request body. (required)
892    The object takes the form of:
893
894{ # Contains properties of a DCM campaign.
895    "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
896    "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.
897    "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.
898    "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
899      "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
900      "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
901    },
902    "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
903    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
904      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
905      "value": "A String", # The value of the dimension.
906      "dimensionName": "A String", # The name of the dimension.
907      "etag": "A String", # The eTag of this response for caching purposes.
908      "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.
909      "id": "A String", # The ID associated with the value if available.
910    },
911    "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
912      { # Event tag override information.
913        "enabled": True or False, # Whether this override is enabled.
914        "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
915      },
916    ],
917    "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
918      "optimizationActivitys": [ # List of optimization activities associated with this configuration.
919        { # Creative optimization activity.
920          "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
921          "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
922            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
923            "value": "A String", # The value of the dimension.
924            "dimensionName": "A String", # The name of the dimension.
925            "etag": "A String", # The eTag of this response for caching purposes.
926            "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.
927            "id": "A String", # The ID associated with the value if available.
928          },
929          "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.
930        },
931      ],
932      "optimizationModel": "A String", # Optimization model for this configuration.
933      "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.
934      "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
935    },
936    "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
937    "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
938    "traffickerEmails": [ # Campaign trafficker contact emails.
939      "A String",
940    ],
941    "archived": True or False, # Whether this campaign has been archived.
942    "externalId": "A String", # External ID for this campaign.
943    "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
944    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
945      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
946      "value": "A String", # The value of the dimension.
947      "dimensionName": "A String", # The name of the dimension.
948      "etag": "A String", # The eTag of this response for caching purposes.
949      "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.
950      "id": "A String", # The ID associated with the value if available.
951    },
952    "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
953    "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
954      "A String",
955    ],
956    "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
957      { # Creative optimization settings.
958        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
959          { # Creative optimization activity.
960            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
961            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
962              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
963              "value": "A String", # The value of the dimension.
964              "dimensionName": "A String", # The name of the dimension.
965              "etag": "A String", # The eTag of this response for caching purposes.
966              "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.
967              "id": "A String", # The ID associated with the value if available.
968            },
969            "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.
970          },
971        ],
972        "optimizationModel": "A String", # Optimization model for this configuration.
973        "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.
974        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
975      },
976    ],
977    "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
978      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
979    },
980    "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.
981      "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
982      "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
983    },
984    "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
985    "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
986    "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.
987    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
988      "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.
989      "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.
990    },
991    "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
992    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
993      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
994    },
995    "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
996      { # Audience Segment Group.
997        "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
998          { # Audience Segment.
999            "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.
1000            "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
1001            "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
1002          },
1003        ],
1004        "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
1005        "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
1006      },
1007    ],
1008  }
1009
1010
1011Returns:
1012  An object of the form:
1013
1014    { # Contains properties of a DCM campaign.
1015      "comment": "A String", # Arbitrary comments about this campaign. Must be less than 256 characters long.
1016      "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.
1017      "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.
1018      "clickThroughUrlSuffixProperties": { # Click Through URL Suffix settings. # Click-through URL suffix override properties for this campaign.
1019        "clickThroughUrlSuffix": "A String", # Click-through URL suffix to apply to all ads in this entity's scope. Must be less than 128 characters long.
1020        "overrideInheritedSuffix": True or False, # Whether this entity should override the inherited click-through URL suffix with its own defined value.
1021      },
1022      "advertiserId": "A String", # Advertiser ID of this campaign. This is a required field.
1023      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the advertiser ID of this campaign. This is a read-only, auto-generated field.
1024        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1025        "value": "A String", # The value of the dimension.
1026        "dimensionName": "A String", # The name of the dimension.
1027        "etag": "A String", # The eTag of this response for caching purposes.
1028        "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.
1029        "id": "A String", # The ID associated with the value if available.
1030      },
1031      "eventTagOverrides": [ # Overrides that can be used to activate or deactivate advertiser event tags.
1032        { # Event tag override information.
1033          "enabled": True or False, # Whether this override is enabled.
1034          "id": "A String", # ID of this event tag override. This is a read-only, auto-generated field.
1035        },
1036      ],
1037      "creativeOptimizationConfiguration": { # Creative optimization settings. # Creative optimization configuration for the campaign.
1038        "optimizationActivitys": [ # List of optimization activities associated with this configuration.
1039          { # Creative optimization activity.
1040            "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
1041            "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
1042              "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1043              "value": "A String", # The value of the dimension.
1044              "dimensionName": "A String", # The name of the dimension.
1045              "etag": "A String", # The eTag of this response for caching purposes.
1046              "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.
1047              "id": "A String", # The ID associated with the value if available.
1048            },
1049            "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.
1050          },
1051        ],
1052        "optimizationModel": "A String", # Optimization model for this configuration.
1053        "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.
1054        "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
1055      },
1056      "id": "A String", # ID of this campaign. This is a read-only auto-generated field.
1057      "accountId": "A String", # Account ID of this campaign. This is a read-only field that can be left blank.
1058      "traffickerEmails": [ # Campaign trafficker contact emails.
1059        "A String",
1060      ],
1061      "archived": True or False, # Whether this campaign has been archived.
1062      "externalId": "A String", # External ID for this campaign.
1063      "advertiserGroupId": "A String", # Advertiser group ID of the associated advertiser.
1064      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this campaign. This is a read-only, auto-generated field.
1065        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1066        "value": "A String", # The value of the dimension.
1067        "dimensionName": "A String", # The name of the dimension.
1068        "etag": "A String", # The eTag of this response for caching purposes.
1069        "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
1070        "id": "A String", # The ID associated with the value if available.
1071      },
1072      "billingInvoiceCode": "A String", # Billing invoice code included in the DCM client billing invoices associated with the campaign.
1073      "creativeGroupIds": [ # List of creative group IDs that are assigned to the campaign.
1074        "A String",
1075      ],
1076      "additionalCreativeOptimizationConfigurations": [ # Additional creative optimization configurations for the campaign.
1077        { # Creative optimization settings.
1078          "optimizationActivitys": [ # List of optimization activities associated with this configuration.
1079            { # Creative optimization activity.
1080              "floodlightActivityId": "A String", # Floodlight activity ID of this optimization activity. This is a required field.
1081              "floodlightActivityIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the floodlight activity. This is a read-only, auto-generated field.
1082                "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1083                "value": "A String", # The value of the dimension.
1084                "dimensionName": "A String", # The name of the dimension.
1085                "etag": "A String", # The eTag of this response for caching purposes.
1086                "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.
1087                "id": "A String", # The ID associated with the value if available.
1088              },
1089              "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.
1090            },
1091          ],
1092          "optimizationModel": "A String", # Optimization model for this configuration.
1093          "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.
1094          "name": "A String", # Name of this creative optimization config. This is a required field and must be less than 129 characters long.
1095        },
1096      ],
1097      "createInfo": { # Modification timestamp. # Information about the creation of this campaign. This is a read-only field.
1098        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1099      },
1100      "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.
1101        "overrideInheritedEventTag": True or False, # Whether this entity should override the inherited default click-through event tag with its own defined value.
1102        "defaultClickThroughEventTagId": "A String", # ID of the click-through event tag to apply to all ads in this entity's scope.
1103      },
1104      "kind": "dfareporting#campaign", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#campaign".
1105      "subaccountId": "A String", # Subaccount ID of this campaign. This is a read-only field that can be left blank.
1106      "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.
1107      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for the campaign.
1108        "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.
1109        "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.
1110      },
1111      "nielsenOcrEnabled": True or False, # Whether Nielsen reports are enabled for this campaign.
1112      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this campaign. This is a read-only field.
1113        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1114      },
1115      "audienceSegmentGroups": [ # Audience segment groups assigned to this campaign. Cannot have more than 300 segment groups.
1116        { # Audience Segment Group.
1117          "audienceSegments": [ # Audience segments assigned to this group. The number of segments must be between 2 and 100.
1118            { # Audience Segment.
1119              "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.
1120              "id": "A String", # ID of this audience segment. This is a read-only, auto-generated field.
1121              "name": "A String", # Name of this audience segment. This is a required field and must be less than 65 characters long.
1122            },
1123          ],
1124          "id": "A String", # ID of this audience segment group. This is a read-only, auto-generated field.
1125          "name": "A String", # Name of this audience segment group. This is a required field and must be less than 65 characters long.
1126        },
1127      ],
1128    }</pre>
1129</div>
1130
1131</body></html>