• 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_v3_1.html">DCM/DFA Reporting And Trafficking API</a> . <a href="dfareporting_v3_1.placements.html">placements</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#generatetags">generatetags(profileId, campaignId=None, tagFormats=None, placementIds=None)</a></code></p>
79<p class="firstline">Generates tags for a placement.</p>
80<p class="toc_element">
81  <code><a href="#get">get(profileId, id)</a></code></p>
82<p class="firstline">Gets one placement by ID.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(profileId, body)</a></code></p>
85<p class="firstline">Inserts a new placement.</p>
86<p class="toc_element">
87  <code><a href="#list">list(profileId, siteIds=None, paymentSource=None, pricingTypes=None, campaignIds=None, advertiserIds=None, sizeIds=None, pageToken=None, maxStartDate=None, sortOrder=None, maxEndDate=None, placementStrategyIds=None, contentCategoryIds=None, archived=None, maxResults=None, minStartDate=None, compatibilities=None, searchString=None, minEndDate=None, directorySiteIds=None, sortField=None, ids=None, groupIds=None)</a></code></p>
88<p class="firstline">Retrieves a list of placements, possibly filtered. This method supports paging.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(profileId, id, body)</a></code></p>
94<p class="firstline">Updates an existing placement. This method supports patch semantics.</p>
95<p class="toc_element">
96  <code><a href="#update">update(profileId, body)</a></code></p>
97<p class="firstline">Updates an existing placement.</p>
98<h3>Method Details</h3>
99<div class="method">
100    <code class="details" id="generatetags">generatetags(profileId, campaignId=None, tagFormats=None, placementIds=None)</code>
101  <pre>Generates tags for a placement.
102
103Args:
104  profileId: string, User profile ID associated with this request. (required)
105  campaignId: string, Generate placements belonging to this campaign. This is a required field.
106  tagFormats: string, Tag formats to generate for these placements.
107
108Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements. (repeated)
109    Allowed values
110      PLACEMENT_TAG_CLICK_COMMANDS -
111      PLACEMENT_TAG_IFRAME_ILAYER -
112      PLACEMENT_TAG_IFRAME_JAVASCRIPT -
113      PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY -
114      PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH -
115      PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3 -
116      PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4 -
117      PLACEMENT_TAG_INTERNAL_REDIRECT -
118      PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT -
119      PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY -
120      PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT -
121      PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT -
122      PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY -
123      PLACEMENT_TAG_JAVASCRIPT -
124      PLACEMENT_TAG_JAVASCRIPT_LEGACY -
125      PLACEMENT_TAG_STANDARD -
126      PLACEMENT_TAG_TRACKING -
127      PLACEMENT_TAG_TRACKING_IFRAME -
128      PLACEMENT_TAG_TRACKING_JAVASCRIPT -
129  placementIds: string, Generate tags for these placements. (repeated)
130
131Returns:
132  An object of the form:
133
134    { # Placement GenerateTags Response
135    "kind": "dfareporting#placementsGenerateTagsResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementsGenerateTagsResponse".
136    "placementTags": [ # Set of generated tags for the specified placements.
137      { # Placement Tag
138        "tagDatas": [ # Tags generated for this placement.
139          { # Placement Tag Data
140            "clickTag": "A String", # Tag string to record a click.
141            "impressionTag": "A String", # Tag string for serving an ad.
142            "creativeId": "A String", # Creative associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING.
143            "adId": "A String", # Ad associated with this placement tag. Applicable only when format is PLACEMENT_TAG_TRACKING.
144            "format": "A String", # TagData tag format of this tag.
145          },
146        ],
147        "placementId": "A String", # Placement ID
148      },
149    ],
150  }</pre>
151</div>
152
153<div class="method">
154    <code class="details" id="get">get(profileId, id)</code>
155  <pre>Gets one placement by ID.
156
157Args:
158  profileId: string, User profile ID associated with this request. (required)
159  id: string, Placement ID. (required)
160
161Returns:
162  An object of the form:
163
164    { # Contains properties of a placement.
165      "comment": "A String", # Comments for this placement.
166      "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
167      "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
168      "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
169      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
170        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
171        "value": "A String", # The value of the dimension.
172        "dimensionName": "A String", # The name of the dimension.
173        "etag": "A String", # The eTag of this response for caching purposes.
174        "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.
175        "id": "A String", # The ID associated with the value if available.
176      },
177      "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
178      "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
179      "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
180      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
181        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
182        "value": "A String", # The value of the dimension.
183        "dimensionName": "A String", # The name of the dimension.
184        "etag": "A String", # The eTag of this response for caching purposes.
185        "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.
186        "id": "A String", # The ID associated with the value if available.
187      },
188      "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
189      "accountId": "A String", # Account ID of this placement. This field can be left blank.
190      "archived": True or False, # Whether this placement is archived.
191      "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
192        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
193          "skippable": True or False, # Whether the user can skip creatives served to this placement.
194          "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
195          "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
196            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
197            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
198          },
199          "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
200            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
201            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
202          },
203        },
204        "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
205        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
206          "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
207          "companionsDisabled": True or False, # Whether companions are disabled for this placement.
208          "imageOnly": True or False, # Whether to serve only static images as companions.
209          "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
210            { # Represents the dimensions of ads, placements, creatives, or creative assets.
211              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
212              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
213              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
214              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
215              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
216            },
217          ],
218        },
219        "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
220        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
221          "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
222          "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
223            42,
224          ],
225        },
226      },
227      "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
228        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
229      },
230      "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
231          # Acceptable values are:
232          # - "PLACEMENT_TAG_STANDARD"
233          # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
234          # - "PLACEMENT_TAG_IFRAME_ILAYER"
235          # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
236          # - "PLACEMENT_TAG_JAVASCRIPT"
237          # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
238          # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
239          # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
240          # - "PLACEMENT_TAG_CLICK_COMMANDS"
241          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
242          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
243          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
244          # - "PLACEMENT_TAG_TRACKING"
245          # - "PLACEMENT_TAG_TRACKING_IFRAME"
246          # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
247        "A String",
248      ],
249      "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
250      "tagSetting": { # Tag Settings # Tag settings for this placement.
251        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
252        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
253        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
254        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
255      },
256      "contentCategoryId": "A String", # ID of the content category assigned to this placement.
257      "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
258      "externalId": "A String", # External ID for this placement.
259      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
260        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
261        "value": "A String", # The value of the dimension.
262        "dimensionName": "A String", # The name of the dimension.
263        "etag": "A String", # The eTag of this response for caching purposes.
264        "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.
265        "id": "A String", # The ID associated with the value if available.
266      },
267      "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
268        "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
269        "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
270        "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
271        "id": "A String", # ID of this size. This is a read-only, auto-generated field.
272        "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
273      },
274      "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
275      "status": "A String", # Third-party placement status.
276      "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
277        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
278        "value": "A String", # The value of the dimension.
279        "dimensionName": "A String", # The name of the dimension.
280        "etag": "A String", # The eTag of this response for caching purposes.
281        "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.
282        "id": "A String", # The ID associated with the value if available.
283      },
284      "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
285      "placementGroupId": "A String", # ID of this placement's group, if applicable.
286      "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
287        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
288      },
289      "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
290      "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
291        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
292        "value": "A String", # The value of the dimension.
293        "dimensionName": "A String", # The name of the dimension.
294        "etag": "A String", # The eTag of this response for caching purposes.
295        "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.
296        "id": "A String", # The ID associated with the value if available.
297      },
298      "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
299      "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
300      "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
301        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
302        "value": "A String", # The value of the dimension.
303        "dimensionName": "A String", # The name of the dimension.
304        "etag": "A String", # The eTag of this response for caching purposes.
305        "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.
306        "id": "A String", # The ID associated with the value if available.
307      },
308      "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
309      "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
310      "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
311      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
312        "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.
313        "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.
314      },
315      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
316        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
317      },
318      "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
319        "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
320        "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
321        "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
322        "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
323        "capCostOption": "A String", # Placement cap cost option.
324        "pricingPeriods": [ # Pricing periods for this placement.
325          { # Pricing Period
326            "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
327            "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
328            "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
329            "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
330            "pricingComment": "A String", # Comments for this pricing period.
331          },
332        ],
333        "pricingType": "A String", # Placement pricing type. This field is required on insertion.
334        "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
335        "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
336      },
337      "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
338          #
339          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
340    }</pre>
341</div>
342
343<div class="method">
344    <code class="details" id="insert">insert(profileId, body)</code>
345  <pre>Inserts a new placement.
346
347Args:
348  profileId: string, User profile ID associated with this request. (required)
349  body: object, The request body. (required)
350    The object takes the form of:
351
352{ # Contains properties of a placement.
353    "comment": "A String", # Comments for this placement.
354    "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
355    "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
356    "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
357    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
358      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
359      "value": "A String", # The value of the dimension.
360      "dimensionName": "A String", # The name of the dimension.
361      "etag": "A String", # The eTag of this response for caching purposes.
362      "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.
363      "id": "A String", # The ID associated with the value if available.
364    },
365    "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
366    "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
367    "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
368    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
369      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
370      "value": "A String", # The value of the dimension.
371      "dimensionName": "A String", # The name of the dimension.
372      "etag": "A String", # The eTag of this response for caching purposes.
373      "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.
374      "id": "A String", # The ID associated with the value if available.
375    },
376    "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
377    "accountId": "A String", # Account ID of this placement. This field can be left blank.
378    "archived": True or False, # Whether this placement is archived.
379    "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
380      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
381        "skippable": True or False, # Whether the user can skip creatives served to this placement.
382        "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
383        "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
384          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
385          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
386        },
387        "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
388          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
389          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
390        },
391      },
392      "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
393      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
394        "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
395        "companionsDisabled": True or False, # Whether companions are disabled for this placement.
396        "imageOnly": True or False, # Whether to serve only static images as companions.
397        "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
398          { # Represents the dimensions of ads, placements, creatives, or creative assets.
399            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
400            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
401            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
402            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
403            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
404          },
405        ],
406      },
407      "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
408      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
409        "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
410        "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
411          42,
412        ],
413      },
414    },
415    "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
416      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
417    },
418    "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
419        # Acceptable values are:
420        # - "PLACEMENT_TAG_STANDARD"
421        # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
422        # - "PLACEMENT_TAG_IFRAME_ILAYER"
423        # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
424        # - "PLACEMENT_TAG_JAVASCRIPT"
425        # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
426        # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
427        # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
428        # - "PLACEMENT_TAG_CLICK_COMMANDS"
429        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
430        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
431        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
432        # - "PLACEMENT_TAG_TRACKING"
433        # - "PLACEMENT_TAG_TRACKING_IFRAME"
434        # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
435      "A String",
436    ],
437    "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
438    "tagSetting": { # Tag Settings # Tag settings for this placement.
439      "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
440      "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
441      "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
442      "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
443    },
444    "contentCategoryId": "A String", # ID of the content category assigned to this placement.
445    "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
446    "externalId": "A String", # External ID for this placement.
447    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
448      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
449      "value": "A String", # The value of the dimension.
450      "dimensionName": "A String", # The name of the dimension.
451      "etag": "A String", # The eTag of this response for caching purposes.
452      "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.
453      "id": "A String", # The ID associated with the value if available.
454    },
455    "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
456      "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
457      "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
458      "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
459      "id": "A String", # ID of this size. This is a read-only, auto-generated field.
460      "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
461    },
462    "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
463    "status": "A String", # Third-party placement status.
464    "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
465      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
466      "value": "A String", # The value of the dimension.
467      "dimensionName": "A String", # The name of the dimension.
468      "etag": "A String", # The eTag of this response for caching purposes.
469      "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.
470      "id": "A String", # The ID associated with the value if available.
471    },
472    "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
473    "placementGroupId": "A String", # ID of this placement's group, if applicable.
474    "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
475      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
476    },
477    "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
478    "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
479      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
480      "value": "A String", # The value of the dimension.
481      "dimensionName": "A String", # The name of the dimension.
482      "etag": "A String", # The eTag of this response for caching purposes.
483      "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.
484      "id": "A String", # The ID associated with the value if available.
485    },
486    "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
487    "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
488    "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
489      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
490      "value": "A String", # The value of the dimension.
491      "dimensionName": "A String", # The name of the dimension.
492      "etag": "A String", # The eTag of this response for caching purposes.
493      "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.
494      "id": "A String", # The ID associated with the value if available.
495    },
496    "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
497    "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
498    "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
499    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
500      "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.
501      "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.
502    },
503    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
504      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
505    },
506    "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
507      "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
508      "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
509      "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
510      "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
511      "capCostOption": "A String", # Placement cap cost option.
512      "pricingPeriods": [ # Pricing periods for this placement.
513        { # Pricing Period
514          "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
515          "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
516          "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
517          "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
518          "pricingComment": "A String", # Comments for this pricing period.
519        },
520      ],
521      "pricingType": "A String", # Placement pricing type. This field is required on insertion.
522      "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
523      "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
524    },
525    "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
526        #
527        # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
528  }
529
530
531Returns:
532  An object of the form:
533
534    { # Contains properties of a placement.
535      "comment": "A String", # Comments for this placement.
536      "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
537      "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
538      "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
539      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
540        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
541        "value": "A String", # The value of the dimension.
542        "dimensionName": "A String", # The name of the dimension.
543        "etag": "A String", # The eTag of this response for caching purposes.
544        "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.
545        "id": "A String", # The ID associated with the value if available.
546      },
547      "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
548      "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
549      "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
550      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
551        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
552        "value": "A String", # The value of the dimension.
553        "dimensionName": "A String", # The name of the dimension.
554        "etag": "A String", # The eTag of this response for caching purposes.
555        "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.
556        "id": "A String", # The ID associated with the value if available.
557      },
558      "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
559      "accountId": "A String", # Account ID of this placement. This field can be left blank.
560      "archived": True or False, # Whether this placement is archived.
561      "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
562        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
563          "skippable": True or False, # Whether the user can skip creatives served to this placement.
564          "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
565          "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
566            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
567            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
568          },
569          "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
570            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
571            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
572          },
573        },
574        "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
575        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
576          "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
577          "companionsDisabled": True or False, # Whether companions are disabled for this placement.
578          "imageOnly": True or False, # Whether to serve only static images as companions.
579          "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
580            { # Represents the dimensions of ads, placements, creatives, or creative assets.
581              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
582              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
583              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
584              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
585              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
586            },
587          ],
588        },
589        "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
590        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
591          "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
592          "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
593            42,
594          ],
595        },
596      },
597      "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
598        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
599      },
600      "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
601          # Acceptable values are:
602          # - "PLACEMENT_TAG_STANDARD"
603          # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
604          # - "PLACEMENT_TAG_IFRAME_ILAYER"
605          # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
606          # - "PLACEMENT_TAG_JAVASCRIPT"
607          # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
608          # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
609          # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
610          # - "PLACEMENT_TAG_CLICK_COMMANDS"
611          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
612          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
613          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
614          # - "PLACEMENT_TAG_TRACKING"
615          # - "PLACEMENT_TAG_TRACKING_IFRAME"
616          # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
617        "A String",
618      ],
619      "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
620      "tagSetting": { # Tag Settings # Tag settings for this placement.
621        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
622        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
623        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
624        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
625      },
626      "contentCategoryId": "A String", # ID of the content category assigned to this placement.
627      "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
628      "externalId": "A String", # External ID for this placement.
629      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
630        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
631        "value": "A String", # The value of the dimension.
632        "dimensionName": "A String", # The name of the dimension.
633        "etag": "A String", # The eTag of this response for caching purposes.
634        "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.
635        "id": "A String", # The ID associated with the value if available.
636      },
637      "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
638        "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
639        "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
640        "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
641        "id": "A String", # ID of this size. This is a read-only, auto-generated field.
642        "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
643      },
644      "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
645      "status": "A String", # Third-party placement status.
646      "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
647        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
648        "value": "A String", # The value of the dimension.
649        "dimensionName": "A String", # The name of the dimension.
650        "etag": "A String", # The eTag of this response for caching purposes.
651        "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.
652        "id": "A String", # The ID associated with the value if available.
653      },
654      "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
655      "placementGroupId": "A String", # ID of this placement's group, if applicable.
656      "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
657        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
658      },
659      "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
660      "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
661        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
662        "value": "A String", # The value of the dimension.
663        "dimensionName": "A String", # The name of the dimension.
664        "etag": "A String", # The eTag of this response for caching purposes.
665        "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.
666        "id": "A String", # The ID associated with the value if available.
667      },
668      "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
669      "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
670      "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
671        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
672        "value": "A String", # The value of the dimension.
673        "dimensionName": "A String", # The name of the dimension.
674        "etag": "A String", # The eTag of this response for caching purposes.
675        "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.
676        "id": "A String", # The ID associated with the value if available.
677      },
678      "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
679      "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
680      "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
681      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
682        "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.
683        "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.
684      },
685      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
686        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
687      },
688      "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
689        "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
690        "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
691        "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
692        "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
693        "capCostOption": "A String", # Placement cap cost option.
694        "pricingPeriods": [ # Pricing periods for this placement.
695          { # Pricing Period
696            "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
697            "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
698            "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
699            "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
700            "pricingComment": "A String", # Comments for this pricing period.
701          },
702        ],
703        "pricingType": "A String", # Placement pricing type. This field is required on insertion.
704        "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
705        "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
706      },
707      "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
708          #
709          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
710    }</pre>
711</div>
712
713<div class="method">
714    <code class="details" id="list">list(profileId, siteIds=None, paymentSource=None, pricingTypes=None, campaignIds=None, advertiserIds=None, sizeIds=None, pageToken=None, maxStartDate=None, sortOrder=None, maxEndDate=None, placementStrategyIds=None, contentCategoryIds=None, archived=None, maxResults=None, minStartDate=None, compatibilities=None, searchString=None, minEndDate=None, directorySiteIds=None, sortField=None, ids=None, groupIds=None)</code>
715  <pre>Retrieves a list of placements, possibly filtered. This method supports paging.
716
717Args:
718  profileId: string, User profile ID associated with this request. (required)
719  siteIds: string, Select only placements that are associated with these sites. (repeated)
720  paymentSource: string, Select only placements with this payment source.
721    Allowed values
722      PLACEMENT_AGENCY_PAID -
723      PLACEMENT_PUBLISHER_PAID -
724  pricingTypes: string, Select only placements with these pricing types. (repeated)
725    Allowed values
726      PRICING_TYPE_CPA -
727      PRICING_TYPE_CPC -
728      PRICING_TYPE_CPM -
729      PRICING_TYPE_CPM_ACTIVEVIEW -
730      PRICING_TYPE_FLAT_RATE_CLICKS -
731      PRICING_TYPE_FLAT_RATE_IMPRESSIONS -
732  campaignIds: string, Select only placements that belong to these campaigns. (repeated)
733  advertiserIds: string, Select only placements that belong to these advertisers. (repeated)
734  sizeIds: string, Select only placements that are associated with these sizes. (repeated)
735  pageToken: string, Value of the nextPageToken from the previous result page.
736  maxStartDate: string, Select only placements or placement groups whose start date is on or before the specified maxStartDate. The date should be formatted as "yyyy-MM-dd".
737  sortOrder: string, Order of sorted results.
738    Allowed values
739      ASCENDING -
740      DESCENDING -
741  maxEndDate: string, Select only placements or placement groups whose end date is on or before the specified maxEndDate. The date should be formatted as "yyyy-MM-dd".
742  placementStrategyIds: string, Select only placements that are associated with these placement strategies. (repeated)
743  contentCategoryIds: string, Select only placements that are associated with these content categories. (repeated)
744  archived: boolean, Select only archived placements. Don't set this field to select both archived and non-archived placements.
745  maxResults: integer, Maximum number of results to return.
746  minStartDate: string, Select only placements or placement groups whose start date is on or after the specified minStartDate. The date should be formatted as "yyyy-MM-dd".
747  compatibilities: string, Select only placements that are associated with these compatibilities. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. (repeated)
748    Allowed values
749      APP -
750      APP_INTERSTITIAL -
751      DISPLAY -
752      DISPLAY_INTERSTITIAL -
753      IN_STREAM_AUDIO -
754      IN_STREAM_VIDEO -
755  searchString: string, Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, "placement*2015" will return placements with names like "placement June 2015", "placement May 2015", or simply "placements 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 "placement" will match placements with name "my placement", "placement 2015", or simply "placement".
756  minEndDate: string, Select only placements or placement groups whose end date is on or after the specified minEndDate. The date should be formatted as "yyyy-MM-dd".
757  directorySiteIds: string, Select only placements that are associated with these directory sites. (repeated)
758  sortField: string, Field by which to sort the list.
759    Allowed values
760      ID -
761      NAME -
762  ids: string, Select only placements with these IDs. (repeated)
763  groupIds: string, Select only placements that belong to these placement groups. (repeated)
764
765Returns:
766  An object of the form:
767
768    { # Placement List Response
769    "nextPageToken": "A String", # Pagination token to be used for the next list operation.
770    "kind": "dfareporting#placementsListResponse", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placementsListResponse".
771    "placements": [ # Placement collection.
772      { # Contains properties of a placement.
773          "comment": "A String", # Comments for this placement.
774          "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
775          "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
776          "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
777          "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. 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          "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
786          "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
787          "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
788          "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
789            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
790            "value": "A String", # The value of the dimension.
791            "dimensionName": "A String", # The name of the dimension.
792            "etag": "A String", # The eTag of this response for caching purposes.
793            "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.
794            "id": "A String", # The ID associated with the value if available.
795          },
796          "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
797          "accountId": "A String", # Account ID of this placement. This field can be left blank.
798          "archived": True or False, # Whether this placement is archived.
799          "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
800            "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
801              "skippable": True or False, # Whether the user can skip creatives served to this placement.
802              "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
803              "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
804                "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
805                "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
806              },
807              "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
808                "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
809                "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
810              },
811            },
812            "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
813            "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
814              "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
815              "companionsDisabled": True or False, # Whether companions are disabled for this placement.
816              "imageOnly": True or False, # Whether to serve only static images as companions.
817              "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
818                { # Represents the dimensions of ads, placements, creatives, or creative assets.
819                  "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
820                  "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
821                  "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
822                  "id": "A String", # ID of this size. This is a read-only, auto-generated field.
823                  "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
824                },
825              ],
826            },
827            "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
828            "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
829              "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
830              "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
831                42,
832              ],
833            },
834          },
835          "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
836            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
837          },
838          "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
839              # Acceptable values are:
840              # - "PLACEMENT_TAG_STANDARD"
841              # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
842              # - "PLACEMENT_TAG_IFRAME_ILAYER"
843              # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
844              # - "PLACEMENT_TAG_JAVASCRIPT"
845              # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
846              # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
847              # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
848              # - "PLACEMENT_TAG_CLICK_COMMANDS"
849              # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
850              # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
851              # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
852              # - "PLACEMENT_TAG_TRACKING"
853              # - "PLACEMENT_TAG_TRACKING_IFRAME"
854              # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
855            "A String",
856          ],
857          "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
858          "tagSetting": { # Tag Settings # Tag settings for this placement.
859            "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
860            "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
861            "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
862            "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
863          },
864          "contentCategoryId": "A String", # ID of the content category assigned to this placement.
865          "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
866          "externalId": "A String", # External ID for this placement.
867          "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
868            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
869            "value": "A String", # The value of the dimension.
870            "dimensionName": "A String", # The name of the dimension.
871            "etag": "A String", # The eTag of this response for caching purposes.
872            "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.
873            "id": "A String", # The ID associated with the value if available.
874          },
875          "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
876            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
877            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
878            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
879            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
880            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
881          },
882          "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
883          "status": "A String", # Third-party placement status.
884          "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
885            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
886            "value": "A String", # The value of the dimension.
887            "dimensionName": "A String", # The name of the dimension.
888            "etag": "A String", # The eTag of this response for caching purposes.
889            "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.
890            "id": "A String", # The ID associated with the value if available.
891          },
892          "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
893          "placementGroupId": "A String", # ID of this placement's group, if applicable.
894          "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
895            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
896          },
897          "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
898          "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
899            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
900            "value": "A String", # The value of the dimension.
901            "dimensionName": "A String", # The name of the dimension.
902            "etag": "A String", # The eTag of this response for caching purposes.
903            "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.
904            "id": "A String", # The ID associated with the value if available.
905          },
906          "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
907          "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
908          "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
909            "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
910            "value": "A String", # The value of the dimension.
911            "dimensionName": "A String", # The name of the dimension.
912            "etag": "A String", # The eTag of this response for caching purposes.
913            "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.
914            "id": "A String", # The ID associated with the value if available.
915          },
916          "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
917          "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
918          "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
919          "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
920            "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.
921            "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.
922          },
923          "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
924            "time": "A String", # Timestamp of the last change in milliseconds since epoch.
925          },
926          "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
927            "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
928            "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
929            "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
930            "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
931            "capCostOption": "A String", # Placement cap cost option.
932            "pricingPeriods": [ # Pricing periods for this placement.
933              { # Pricing Period
934                "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
935                "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
936                "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
937                "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
938                "pricingComment": "A String", # Comments for this pricing period.
939              },
940            ],
941            "pricingType": "A String", # Placement pricing type. This field is required on insertion.
942            "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
943            "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
944          },
945          "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
946              #
947              # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
948        },
949    ],
950  }</pre>
951</div>
952
953<div class="method">
954    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
955  <pre>Retrieves the next page of results.
956
957Args:
958  previous_request: The request for the previous page. (required)
959  previous_response: The response from the request for the previous page. (required)
960
961Returns:
962  A request object that you can call 'execute()' on to request the next
963  page. Returns None if there are no more items in the collection.
964    </pre>
965</div>
966
967<div class="method">
968    <code class="details" id="patch">patch(profileId, id, body)</code>
969  <pre>Updates an existing placement. This method supports patch semantics.
970
971Args:
972  profileId: string, User profile ID associated with this request. (required)
973  id: string, Placement ID. (required)
974  body: object, The request body. (required)
975    The object takes the form of:
976
977{ # Contains properties of a placement.
978    "comment": "A String", # Comments for this placement.
979    "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
980    "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
981    "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
982    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
983      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
984      "value": "A String", # The value of the dimension.
985      "dimensionName": "A String", # The name of the dimension.
986      "etag": "A String", # The eTag of this response for caching purposes.
987      "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.
988      "id": "A String", # The ID associated with the value if available.
989    },
990    "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
991    "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
992    "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
993    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
994      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
995      "value": "A String", # The value of the dimension.
996      "dimensionName": "A String", # The name of the dimension.
997      "etag": "A String", # The eTag of this response for caching purposes.
998      "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.
999      "id": "A String", # The ID associated with the value if available.
1000    },
1001    "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
1002    "accountId": "A String", # Account ID of this placement. This field can be left blank.
1003    "archived": True or False, # Whether this placement is archived.
1004    "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
1005      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
1006        "skippable": True or False, # Whether the user can skip creatives served to this placement.
1007        "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
1008        "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
1009          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1010          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1011        },
1012        "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
1013          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1014          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1015        },
1016      },
1017      "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
1018      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
1019        "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
1020        "companionsDisabled": True or False, # Whether companions are disabled for this placement.
1021        "imageOnly": True or False, # Whether to serve only static images as companions.
1022        "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
1023          { # Represents the dimensions of ads, placements, creatives, or creative assets.
1024            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1025            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1026            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1027            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1028            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1029          },
1030        ],
1031      },
1032      "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
1033      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
1034        "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
1035        "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
1036          42,
1037        ],
1038      },
1039    },
1040    "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
1041      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1042    },
1043    "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
1044        # Acceptable values are:
1045        # - "PLACEMENT_TAG_STANDARD"
1046        # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
1047        # - "PLACEMENT_TAG_IFRAME_ILAYER"
1048        # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
1049        # - "PLACEMENT_TAG_JAVASCRIPT"
1050        # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
1051        # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
1052        # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
1053        # - "PLACEMENT_TAG_CLICK_COMMANDS"
1054        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
1055        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
1056        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
1057        # - "PLACEMENT_TAG_TRACKING"
1058        # - "PLACEMENT_TAG_TRACKING_IFRAME"
1059        # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
1060      "A String",
1061    ],
1062    "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
1063    "tagSetting": { # Tag Settings # Tag settings for this placement.
1064      "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
1065      "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
1066      "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
1067      "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
1068    },
1069    "contentCategoryId": "A String", # ID of the content category assigned to this placement.
1070    "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
1071    "externalId": "A String", # External ID for this placement.
1072    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
1073      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1074      "value": "A String", # The value of the dimension.
1075      "dimensionName": "A String", # The name of the dimension.
1076      "etag": "A String", # The eTag of this response for caching purposes.
1077      "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.
1078      "id": "A String", # The ID associated with the value if available.
1079    },
1080    "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
1081      "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1082      "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1083      "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1084      "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1085      "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1086    },
1087    "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
1088    "status": "A String", # Third-party placement status.
1089    "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
1090      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1091      "value": "A String", # The value of the dimension.
1092      "dimensionName": "A String", # The name of the dimension.
1093      "etag": "A String", # The eTag of this response for caching purposes.
1094      "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.
1095      "id": "A String", # The ID associated with the value if available.
1096    },
1097    "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
1098    "placementGroupId": "A String", # ID of this placement's group, if applicable.
1099    "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
1100      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1101    },
1102    "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1103    "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
1104      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1105      "value": "A String", # The value of the dimension.
1106      "dimensionName": "A String", # The name of the dimension.
1107      "etag": "A String", # The eTag of this response for caching purposes.
1108      "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.
1109      "id": "A String", # The ID associated with the value if available.
1110    },
1111    "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
1112    "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
1113    "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
1114      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1115      "value": "A String", # The value of the dimension.
1116      "dimensionName": "A String", # The name of the dimension.
1117      "etag": "A String", # The eTag of this response for caching purposes.
1118      "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.
1119      "id": "A String", # The ID associated with the value if available.
1120    },
1121    "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
1122    "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
1123    "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
1124    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
1125      "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.
1126      "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.
1127    },
1128    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
1129      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1130    },
1131    "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
1132      "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
1133      "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
1134      "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
1135      "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
1136      "capCostOption": "A String", # Placement cap cost option.
1137      "pricingPeriods": [ # Pricing periods for this placement.
1138        { # Pricing Period
1139          "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
1140          "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
1141          "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1142          "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
1143          "pricingComment": "A String", # Comments for this pricing period.
1144        },
1145      ],
1146      "pricingType": "A String", # Placement pricing type. This field is required on insertion.
1147      "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1148      "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
1149    },
1150    "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
1151        #
1152        # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
1153  }
1154
1155
1156Returns:
1157  An object of the form:
1158
1159    { # Contains properties of a placement.
1160      "comment": "A String", # Comments for this placement.
1161      "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
1162      "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
1163      "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
1164      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
1165        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1166        "value": "A String", # The value of the dimension.
1167        "dimensionName": "A String", # The name of the dimension.
1168        "etag": "A String", # The eTag of this response for caching purposes.
1169        "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.
1170        "id": "A String", # The ID associated with the value if available.
1171      },
1172      "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
1173      "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
1174      "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1175      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1176        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1177        "value": "A String", # The value of the dimension.
1178        "dimensionName": "A String", # The name of the dimension.
1179        "etag": "A String", # The eTag of this response for caching purposes.
1180        "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.
1181        "id": "A String", # The ID associated with the value if available.
1182      },
1183      "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
1184      "accountId": "A String", # Account ID of this placement. This field can be left blank.
1185      "archived": True or False, # Whether this placement is archived.
1186      "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
1187        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
1188          "skippable": True or False, # Whether the user can skip creatives served to this placement.
1189          "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
1190          "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
1191            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1192            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1193          },
1194          "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
1195            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1196            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1197          },
1198        },
1199        "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
1200        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
1201          "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
1202          "companionsDisabled": True or False, # Whether companions are disabled for this placement.
1203          "imageOnly": True or False, # Whether to serve only static images as companions.
1204          "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
1205            { # Represents the dimensions of ads, placements, creatives, or creative assets.
1206              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1207              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1208              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1209              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1210              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1211            },
1212          ],
1213        },
1214        "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
1215        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
1216          "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
1217          "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
1218            42,
1219          ],
1220        },
1221      },
1222      "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
1223        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1224      },
1225      "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
1226          # Acceptable values are:
1227          # - "PLACEMENT_TAG_STANDARD"
1228          # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
1229          # - "PLACEMENT_TAG_IFRAME_ILAYER"
1230          # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
1231          # - "PLACEMENT_TAG_JAVASCRIPT"
1232          # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
1233          # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
1234          # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
1235          # - "PLACEMENT_TAG_CLICK_COMMANDS"
1236          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
1237          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
1238          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
1239          # - "PLACEMENT_TAG_TRACKING"
1240          # - "PLACEMENT_TAG_TRACKING_IFRAME"
1241          # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
1242        "A String",
1243      ],
1244      "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
1245      "tagSetting": { # Tag Settings # Tag settings for this placement.
1246        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
1247        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
1248        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
1249        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
1250      },
1251      "contentCategoryId": "A String", # ID of the content category assigned to this placement.
1252      "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
1253      "externalId": "A String", # External ID for this placement.
1254      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
1255        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1256        "value": "A String", # The value of the dimension.
1257        "dimensionName": "A String", # The name of the dimension.
1258        "etag": "A String", # The eTag of this response for caching purposes.
1259        "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.
1260        "id": "A String", # The ID associated with the value if available.
1261      },
1262      "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
1263        "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1264        "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1265        "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1266        "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1267        "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1268      },
1269      "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
1270      "status": "A String", # Third-party placement status.
1271      "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
1272        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1273        "value": "A String", # The value of the dimension.
1274        "dimensionName": "A String", # The name of the dimension.
1275        "etag": "A String", # The eTag of this response for caching purposes.
1276        "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.
1277        "id": "A String", # The ID associated with the value if available.
1278      },
1279      "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
1280      "placementGroupId": "A String", # ID of this placement's group, if applicable.
1281      "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
1282        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1283      },
1284      "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1285      "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
1286        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1287        "value": "A String", # The value of the dimension.
1288        "dimensionName": "A String", # The name of the dimension.
1289        "etag": "A String", # The eTag of this response for caching purposes.
1290        "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.
1291        "id": "A String", # The ID associated with the value if available.
1292      },
1293      "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
1294      "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
1295      "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
1296        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1297        "value": "A String", # The value of the dimension.
1298        "dimensionName": "A String", # The name of the dimension.
1299        "etag": "A String", # The eTag of this response for caching purposes.
1300        "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.
1301        "id": "A String", # The ID associated with the value if available.
1302      },
1303      "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
1304      "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
1305      "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
1306      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
1307        "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.
1308        "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.
1309      },
1310      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
1311        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1312      },
1313      "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
1314        "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
1315        "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
1316        "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
1317        "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
1318        "capCostOption": "A String", # Placement cap cost option.
1319        "pricingPeriods": [ # Pricing periods for this placement.
1320          { # Pricing Period
1321            "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
1322            "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
1323            "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1324            "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
1325            "pricingComment": "A String", # Comments for this pricing period.
1326          },
1327        ],
1328        "pricingType": "A String", # Placement pricing type. This field is required on insertion.
1329        "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1330        "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
1331      },
1332      "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
1333          #
1334          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
1335    }</pre>
1336</div>
1337
1338<div class="method">
1339    <code class="details" id="update">update(profileId, body)</code>
1340  <pre>Updates an existing placement.
1341
1342Args:
1343  profileId: string, User profile ID associated with this request. (required)
1344  body: object, The request body. (required)
1345    The object takes the form of:
1346
1347{ # Contains properties of a placement.
1348    "comment": "A String", # Comments for this placement.
1349    "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
1350    "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
1351    "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
1352    "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
1353      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1354      "value": "A String", # The value of the dimension.
1355      "dimensionName": "A String", # The name of the dimension.
1356      "etag": "A String", # The eTag of this response for caching purposes.
1357      "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.
1358      "id": "A String", # The ID associated with the value if available.
1359    },
1360    "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
1361    "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
1362    "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1363    "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1364      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1365      "value": "A String", # The value of the dimension.
1366      "dimensionName": "A String", # The name of the dimension.
1367      "etag": "A String", # The eTag of this response for caching purposes.
1368      "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.
1369      "id": "A String", # The ID associated with the value if available.
1370    },
1371    "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
1372    "accountId": "A String", # Account ID of this placement. This field can be left blank.
1373    "archived": True or False, # Whether this placement is archived.
1374    "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
1375      "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
1376        "skippable": True or False, # Whether the user can skip creatives served to this placement.
1377        "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
1378        "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
1379          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1380          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1381        },
1382        "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
1383          "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1384          "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1385        },
1386      },
1387      "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
1388      "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
1389        "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
1390        "companionsDisabled": True or False, # Whether companions are disabled for this placement.
1391        "imageOnly": True or False, # Whether to serve only static images as companions.
1392        "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
1393          { # Represents the dimensions of ads, placements, creatives, or creative assets.
1394            "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1395            "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1396            "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1397            "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1398            "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1399          },
1400        ],
1401      },
1402      "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
1403      "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
1404        "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
1405        "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
1406          42,
1407        ],
1408      },
1409    },
1410    "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
1411      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1412    },
1413    "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
1414        # Acceptable values are:
1415        # - "PLACEMENT_TAG_STANDARD"
1416        # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
1417        # - "PLACEMENT_TAG_IFRAME_ILAYER"
1418        # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
1419        # - "PLACEMENT_TAG_JAVASCRIPT"
1420        # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
1421        # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
1422        # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
1423        # - "PLACEMENT_TAG_CLICK_COMMANDS"
1424        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
1425        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
1426        # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
1427        # - "PLACEMENT_TAG_TRACKING"
1428        # - "PLACEMENT_TAG_TRACKING_IFRAME"
1429        # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
1430      "A String",
1431    ],
1432    "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
1433    "tagSetting": { # Tag Settings # Tag settings for this placement.
1434      "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
1435      "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
1436      "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
1437      "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
1438    },
1439    "contentCategoryId": "A String", # ID of the content category assigned to this placement.
1440    "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
1441    "externalId": "A String", # External ID for this placement.
1442    "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
1443      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1444      "value": "A String", # The value of the dimension.
1445      "dimensionName": "A String", # The name of the dimension.
1446      "etag": "A String", # The eTag of this response for caching purposes.
1447      "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.
1448      "id": "A String", # The ID associated with the value if available.
1449    },
1450    "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
1451      "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1452      "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1453      "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1454      "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1455      "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1456    },
1457    "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
1458    "status": "A String", # Third-party placement status.
1459    "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
1460      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1461      "value": "A String", # The value of the dimension.
1462      "dimensionName": "A String", # The name of the dimension.
1463      "etag": "A String", # The eTag of this response for caching purposes.
1464      "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.
1465      "id": "A String", # The ID associated with the value if available.
1466    },
1467    "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
1468    "placementGroupId": "A String", # ID of this placement's group, if applicable.
1469    "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
1470      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1471    },
1472    "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1473    "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
1474      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1475      "value": "A String", # The value of the dimension.
1476      "dimensionName": "A String", # The name of the dimension.
1477      "etag": "A String", # The eTag of this response for caching purposes.
1478      "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.
1479      "id": "A String", # The ID associated with the value if available.
1480    },
1481    "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
1482    "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
1483    "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
1484      "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1485      "value": "A String", # The value of the dimension.
1486      "dimensionName": "A String", # The name of the dimension.
1487      "etag": "A String", # The eTag of this response for caching purposes.
1488      "matchType": "A String", # Determines how the 'value' field is matched when filtering. If not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable length character sequences, and it can be escaped with a backslash. Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
1489      "id": "A String", # The ID associated with the value if available.
1490    },
1491    "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
1492    "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
1493    "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
1494    "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
1495      "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.
1496      "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.
1497    },
1498    "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
1499      "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1500    },
1501    "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
1502      "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
1503      "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
1504      "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
1505      "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
1506      "capCostOption": "A String", # Placement cap cost option.
1507      "pricingPeriods": [ # Pricing periods for this placement.
1508        { # Pricing Period
1509          "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
1510          "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
1511          "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1512          "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
1513          "pricingComment": "A String", # Comments for this pricing period.
1514        },
1515      ],
1516      "pricingType": "A String", # Placement pricing type. This field is required on insertion.
1517      "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1518      "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
1519    },
1520    "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
1521        #
1522        # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
1523  }
1524
1525
1526Returns:
1527  An object of the form:
1528
1529    { # Contains properties of a placement.
1530      "comment": "A String", # Comments for this placement.
1531      "videoActiveViewOptOut": True or False, # Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level -- the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.
1532      "campaignId": "A String", # Campaign ID of this placement. This field is a required field on insertion.
1533      "paymentSource": "A String", # Payment source for this placement. This is a required field that is read-only after insertion.
1534      "directorySiteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the directory site. This is a read-only, auto-generated field.
1535        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1536        "value": "A String", # The value of the dimension.
1537        "dimensionName": "A String", # The name of the dimension.
1538        "etag": "A String", # The eTag of this response for caching purposes.
1539        "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.
1540        "id": "A String", # The ID associated with the value if available.
1541      },
1542      "advertiserId": "A String", # Advertiser ID of this placement. This field can be left blank.
1543      "keyName": "A String", # Key name of this placement. This is a read-only, auto-generated field.
1544      "directorySiteId": "A String", # Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1545      "advertiserIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the advertiser. This is a read-only, auto-generated field.
1546        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1547        "value": "A String", # The value of the dimension.
1548        "dimensionName": "A String", # The name of the dimension.
1549        "etag": "A String", # The eTag of this response for caching purposes.
1550        "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.
1551        "id": "A String", # The ID associated with the value if available.
1552      },
1553      "id": "A String", # ID of this placement. This is a read-only, auto-generated field.
1554      "accountId": "A String", # Account ID of this placement. This field can be left blank.
1555      "archived": True or False, # Whether this placement is archived.
1556      "videoSettings": { # Video Settings # A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.
1557        "skippableSettings": { # Skippable Settings # Settings for the skippability of video creatives served to this placement. If this object is provided, the creative-level skippable settings will be overridden.
1558          "skippable": True or False, # Whether the user can skip creatives served to this placement.
1559          "kind": "dfareporting#skippableSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#skippableSetting".
1560          "skipOffset": { # Video Offset # Amount of time to play videos served to this placement before the skip button should appear. Applicable when skippable is true.
1561            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1562            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1563          },
1564          "progressOffset": { # Video Offset # Amount of time to play videos served to this placement before counting a view. Applicable when skippable is true.
1565            "offsetPercentage": 42, # Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.
1566            "offsetSeconds": 42, # Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive.
1567          },
1568        },
1569        "kind": "dfareporting#videoSettings", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#videoSettings".
1570        "companionSettings": { # Companion Settings # Settings for the companion creatives of video creatives served to this placement.
1571          "kind": "dfareporting#companionSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#companionSetting".
1572          "companionsDisabled": True or False, # Whether companions are disabled for this placement.
1573          "imageOnly": True or False, # Whether to serve only static images as companions.
1574          "enabledSizes": [ # Whitelist of companion sizes to be served to this placement. Set this list to null or empty to serve all companion sizes.
1575            { # Represents the dimensions of ads, placements, creatives, or creative assets.
1576              "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1577              "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1578              "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1579              "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1580              "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1581            },
1582          ],
1583        },
1584        "orientation": "A String", # Orientation of a video placement. If this value is set, placement will return assets matching the specified orientation.
1585        "transcodeSettings": { # Transcode Settings # Settings for the transcodes of video creatives served to this placement. If this object is provided, the creative-level transcode settings will be overridden.
1586          "kind": "dfareporting#transcodeSetting", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#transcodeSetting".
1587          "enabledVideoFormats": [ # Whitelist of video formats to be served to this placement. Set this list to null or empty to serve all video formats.
1588            42,
1589          ],
1590        },
1591      },
1592      "publisherUpdateInfo": { # Modification timestamp. # Information about the last publisher update. This is a read-only field.
1593        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1594      },
1595      "tagFormats": [ # Tag formats to generate for this placement. This field is required on insertion.
1596          # Acceptable values are:
1597          # - "PLACEMENT_TAG_STANDARD"
1598          # - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
1599          # - "PLACEMENT_TAG_IFRAME_ILAYER"
1600          # - "PLACEMENT_TAG_INTERNAL_REDIRECT"
1601          # - "PLACEMENT_TAG_JAVASCRIPT"
1602          # - "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
1603          # - "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
1604          # - "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
1605          # - "PLACEMENT_TAG_CLICK_COMMANDS"
1606          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
1607          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"
1608          # - "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"
1609          # - "PLACEMENT_TAG_TRACKING"
1610          # - "PLACEMENT_TAG_TRACKING_IFRAME"
1611          # - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
1612        "A String",
1613      ],
1614      "paymentApproved": True or False, # Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.
1615      "tagSetting": { # Tag Settings # Tag settings for this placement.
1616        "includeClickThroughUrls": True or False, # Whether static landing page URLs should be included in the tags. This setting applies only to placements.
1617        "includeClickTracking": True or False, # Whether click-tracking string should be included in the tags.
1618        "additionalKeyValues": "A String", # Additional key-values to be included in tags. Each key-value pair must be of the form key=value, and pairs must be separated by a semicolon (;). Keys and values must not contain commas. For example, id=2;color=red is a valid value for this field.
1619        "keywordOption": "A String", # Option specifying how keywords are embedded in ad tags. This setting can be used to specify whether keyword placeholders are inserted in placement tags for this site. Publishers can then add keywords to those placeholders.
1620      },
1621      "contentCategoryId": "A String", # ID of the content category assigned to this placement.
1622      "adBlockingOptOut": True or False, # Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.
1623      "externalId": "A String", # External ID for this placement.
1624      "idDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of this placement. This is a read-only, auto-generated field.
1625        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1626        "value": "A String", # The value of the dimension.
1627        "dimensionName": "A String", # The name of the dimension.
1628        "etag": "A String", # The eTag of this response for caching purposes.
1629        "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.
1630        "id": "A String", # The ID associated with the value if available.
1631      },
1632      "size": { # Represents the dimensions of ads, placements, creatives, or creative assets. # Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.
1633        "width": 42, # Width of this size. Acceptable values are 0 to 32767, inclusive.
1634        "kind": "dfareporting#size", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#size".
1635        "iab": True or False, # IAB standard size. This is a read-only, auto-generated field.
1636        "id": "A String", # ID of this size. This is a read-only, auto-generated field.
1637        "height": 42, # Height of this size. Acceptable values are 0 to 32767, inclusive.
1638      },
1639      "sslRequired": True or False, # Whether creatives assigned to this placement must be SSL-compliant.
1640      "status": "A String", # Third-party placement status.
1641      "campaignIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the campaign. This is a read-only, auto-generated field.
1642        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1643        "value": "A String", # The value of the dimension.
1644        "dimensionName": "A String", # The name of the dimension.
1645        "etag": "A String", # The eTag of this response for caching purposes.
1646        "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.
1647        "id": "A String", # The ID associated with the value if available.
1648      },
1649      "primary": True or False, # Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock's primaryPlacementId field to the ID of this placement.
1650      "placementGroupId": "A String", # ID of this placement's group, if applicable.
1651      "createInfo": { # Modification timestamp. # Information about the creation of this placement. This is a read-only field.
1652        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1653      },
1654      "siteId": "A String", # Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.
1655      "siteIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the site. This is a read-only, auto-generated field.
1656        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1657        "value": "A String", # The value of the dimension.
1658        "dimensionName": "A String", # The name of the dimension.
1659        "etag": "A String", # The eTag of this response for caching purposes.
1660        "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.
1661        "id": "A String", # The ID associated with the value if available.
1662      },
1663      "compatibility": "A String", # Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.
1664      "placementStrategyId": "A String", # ID of the placement strategy assigned to this placement.
1665      "placementGroupIdDimensionValue": { # Represents a DimensionValue resource. # Dimension value for the ID of the placement group. This is a read-only, auto-generated field.
1666        "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
1667        "value": "A String", # The value of the dimension.
1668        "dimensionName": "A String", # The name of the dimension.
1669        "etag": "A String", # The eTag of this response for caching purposes.
1670        "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.
1671        "id": "A String", # The ID associated with the value if available.
1672      },
1673      "kind": "dfareporting#placement", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#placement".
1674      "subaccountId": "A String", # Subaccount ID of this placement. This field can be left blank.
1675      "name": "A String", # Name of this placement.This is a required field and must be less than 256 characters long.
1676      "lookbackConfiguration": { # Lookback configuration settings. # Lookback window settings for this placement.
1677        "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.
1678        "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.
1679      },
1680      "lastModifiedInfo": { # Modification timestamp. # Information about the most recent modification of this placement. This is a read-only field.
1681        "time": "A String", # Timestamp of the last change in milliseconds since epoch.
1682      },
1683      "pricingSchedule": { # Pricing Schedule # Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.
1684        "startDate": "A String", # Placement start date. This date must be later than, or the same day as, the campaign start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error. This field is required on insertion.
1685        "endDate": "A String", # Placement end date. This date must be later than, or the same day as, the placement start date, but not later than the campaign end date. If, for example, you set 6/25/2015 as both the start and end dates, the effective placement 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 field is required on insertion.
1686        "flighted": True or False, # Whether this placement is flighted. If true, pricing periods will be computed automatically.
1687        "disregardOverdelivery": True or False, # Whether cap costs are ignored by ad serving.
1688        "capCostOption": "A String", # Placement cap cost option.
1689        "pricingPeriods": [ # Pricing periods for this placement.
1690          { # Pricing Period
1691            "units": "A String", # Units of this pricing period. Acceptable values are 0 to 10000000000, inclusive.
1692            "rateOrCostNanos": "A String", # Rate or cost of this pricing period in nanos (i.e., multipled by 1000000000). Acceptable values are 0 to 1000000000000000000, inclusive.
1693            "startDate": "A String", # Pricing period start date. This date must be later than, or the same day as, the placement start date. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1694            "endDate": "A String", # Pricing period end date. This date must be later than, or the same day as, the pricing period start date, but not later than the placement end date. The period end date can be the same date as the period start date. If, for example, you set 6/25/2015 as both the start and end dates, the effective pricing period 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.
1695            "pricingComment": "A String", # Comments for this pricing period.
1696          },
1697        ],
1698        "pricingType": "A String", # Placement pricing type. This field is required on insertion.
1699        "testingStartDate": "A String", # Testing start date of this placement. The hours, minutes, and seconds of the start date should not be set, as doing so will result in an error.
1700        "floodlightActivityId": "A String", # Floodlight activity ID associated with this placement. This field should be set when placement pricing type is set to PRICING_TYPE_CPA.
1701      },
1702      "vpaidAdapterChoice": "A String", # VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.
1703          #
1704          # Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.
1705    }</pre>
1706</div>
1707
1708</body></html>