blob: 6c0a122341d8fecb0cd53deba8d1bf92ef5752c8 [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<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="displayvideo_v1.html">Display & Video 360 API</a> . <a href="displayvideo_v1.advertisers.html">advertisers</a> . <a href="displayvideo_v1.advertisers.insertionOrders.html">insertionOrders</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(advertiserId, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070079<p class="firstline">Creates a new insertion order. Returns the newly created insertion order if successful.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070080<p class="toc_element">
81 <code><a href="#delete">delete(advertiserId, insertionOrderId, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070082<p class="firstline">Deletes an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070083<p class="toc_element">
84 <code><a href="#get">get(advertiserId, insertionOrderId, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085<p class="firstline">Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070086<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070087 <code><a href="#list">list(advertiserId, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Lists insertion orders in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, insertion orders with `ENTITY_STATUS_ARCHIVED` will not be included in the results.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070089<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(advertiserId, insertionOrderId, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070094<p class="firstline">Updates an existing insertion order. Returns the updated insertion order if successful.</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070095<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="create">create(advertiserId, body=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070098 <pre>Creates a new insertion order. Returns the newly created insertion order if successful.
Bu Sun Kim65020912020-05-20 12:08:20 -070099
100Args:
101 advertiserId: string, Output only. The unique ID of the advertiser the insertion order belongs to. (required)
102 body: object, The request body.
103 The object takes the form of:
104
105{ # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
107 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
108 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
109 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
110 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
111 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700112 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700113 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
114 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
115 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
116 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
117 },
118 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
119 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
120 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
121 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
122 },
123 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
124 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
125 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700126 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
128 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
129 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
130 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
131 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700132 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700133 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
134 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
135 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
136 { # Settings that control the budget of a single budget segment.
137 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
138 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
139 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
140 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
141 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
142 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
143 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
144 },
145 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
146 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
147 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
148 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
149 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700151 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700153 ],
154 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
155 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
156 },
157 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
158 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
159 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
160 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
161 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
162 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
163 },
164 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
165 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
166 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
167 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
168 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
169 },
170 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
171 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
172 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
173 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
174 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
175 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
176 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 },
178 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700179 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
180 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
181 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700182
183 x__xgafv: string, V1 error format.
184 Allowed values
185 1 - v1 error format
186 2 - v2 error format
187
188Returns:
189 An object of the form:
190
191 { # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700192 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
193 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
194 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
195 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
196 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
197 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700198 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700199 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
200 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
201 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
202 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
203 },
204 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
205 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
206 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
207 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
208 },
209 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
210 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
211 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700212 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700213 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
214 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
215 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
216 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
217 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700218 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
220 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
221 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
222 { # Settings that control the budget of a single budget segment.
223 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
224 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
225 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
226 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
227 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
228 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
229 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
230 },
231 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
232 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
233 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
234 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
235 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700237 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700239 ],
240 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
241 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
242 },
243 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
244 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
245 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
246 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
247 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
248 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
249 },
250 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
251 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
252 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
253 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
254 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
255 },
256 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
257 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
258 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
259 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
260 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
261 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
262 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700263 },
264 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700265 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
266 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
267 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700268</div>
269
270<div class="method">
271 <code class="details" id="delete">delete(advertiserId, insertionOrderId, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700272 <pre>Deletes an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist. The insertion order should be archived first, i.e. set entity_status to `ENTITY_STATUS_ARCHIVED`, to be able to delete it.
Bu Sun Kim65020912020-05-20 12:08:20 -0700273
274Args:
275 advertiserId: string, The ID of the advertiser this insertion order belongs to. (required)
276 insertionOrderId: string, The ID of the insertion order we need to delete. (required)
277 x__xgafv: string, V1 error format.
278 Allowed values
279 1 - v1 error format
280 2 - v2 error format
281
282Returns:
283 An object of the form:
284
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700285 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 }</pre>
287</div>
288
289<div class="method">
290 <code class="details" id="get">get(advertiserId, insertionOrderId, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700291 <pre>Gets an insertion order. Returns error code `NOT_FOUND` if the insertion order does not exist.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292
293Args:
294 advertiserId: string, Required. The ID of the advertiser this insertion order belongs to. (required)
295 insertionOrderId: string, Required. The ID of the insertion order to fetch. (required)
296 x__xgafv: string, V1 error format.
297 Allowed values
298 1 - v1 error format
299 2 - v2 error format
300
301Returns:
302 An object of the form:
303
304 { # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700305 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
306 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
307 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
308 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
309 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
310 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700311 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700312 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
313 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
314 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
315 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
316 },
317 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
318 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
319 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
320 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
321 },
322 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
323 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
324 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700325 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700326 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
327 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
328 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
329 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
330 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700331 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700332 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
333 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
334 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
335 { # Settings that control the budget of a single budget segment.
336 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
337 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
338 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
339 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
340 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
341 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
342 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
343 },
344 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
345 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
346 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
347 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
348 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700349 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700350 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700352 ],
353 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
354 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
355 },
356 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
357 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
358 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
359 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
360 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
361 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
362 },
363 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
364 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
365 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
366 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
367 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
368 },
369 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
370 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
371 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
372 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
373 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
374 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
375 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 },
377 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700378 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
379 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
380 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700381</div>
382
383<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700384 <code class="details" id="list">list(advertiserId, pageSize=None, pageToken=None, filter=None, orderBy=None, x__xgafv=None)</code>
385 <pre>Lists insertion orders in an advertiser. The order is defined by the order_by parameter. If a filter by entity_status is not specified, insertion orders with `ENTITY_STATUS_ARCHIVED` will not be included in the results.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386
387Args:
388 advertiserId: string, Required. The ID of the advertiser to list insertion orders for. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700389 pageSize: integer, Requested page size. Must be between `1` and `100`. If unspecified will default to `100`. Returns error code `INVALID_ARGUMENT` if an invalid value is specified.
390 pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of next_page_token returned from the previous call to `ListInsertionOrders` method. If not specified, the first page of results will be returned.
391 filter: string, Allows filtering by insertion order properties. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * The operator must be `EQUALS (=)`. * Supported fields: - `campaignId` - `entityStatus` Examples: * All insertion orders under a campaign: `campaignId=&quot;1234&quot;` * All `ENTITY_STATUS_ACTIVE` or `ENTITY_STATUS_PAUSED` insertion orders under an advertiser: `(entityStatus=&quot;ENTITY_STATUS_ACTIVE&quot; OR entityStatus=&quot;ENTITY_STATUS_PAUSED&quot;)` The length of this field should be no more than 500 characters.
392 orderBy: string, Field by which to sort the list. Acceptable values are: * &quot;displayName&quot; (default) * &quot;entityStatus&quot; The default sorting order is ascending. To specify descending order for a field, a suffix &quot;desc&quot; should be added to the field name. Example: `displayName desc`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700393 x__xgafv: string, V1 error format.
394 Allowed values
395 1 - v1 error format
396 2 - v2 error format
397
398Returns:
399 An object of the form:
400
401 {
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700402 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token to retrieve the next page of results. Pass this value in the page_token field in the subsequent call to `ListInsertionOrders` method to retrieve the next page of results.
403 &quot;insertionOrders&quot;: [ # The list of insertion orders. This list will be absent if empty.
Bu Sun Kim65020912020-05-20 12:08:20 -0700404 { # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700405 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
406 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
407 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
408 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
409 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
410 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700411 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
413 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
414 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
415 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
416 },
417 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
418 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
419 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
420 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
421 },
422 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
423 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
424 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700425 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700426 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
427 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
428 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
429 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
430 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700431 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700432 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
433 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
434 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
435 { # Settings that control the budget of a single budget segment.
436 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
437 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
438 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
439 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
440 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
441 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
442 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
443 },
444 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
445 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
446 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
447 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
448 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700450 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700452 ],
453 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
454 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
455 },
456 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
457 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
458 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
459 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
460 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
461 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
462 },
463 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
464 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
465 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
466 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
467 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
468 },
469 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
470 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
471 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
472 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
473 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
474 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
475 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700476 },
477 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700478 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
479 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
Bu Sun Kim65020912020-05-20 12:08:20 -0700480 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700482 }</pre>
483</div>
484
485<div class="method">
486 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
487 <pre>Retrieves the next page of results.
488
489Args:
490 previous_request: The request for the previous page. (required)
491 previous_response: The response from the request for the previous page. (required)
492
493Returns:
494 A request object that you can call &#x27;execute()&#x27; on to request the next
495 page. Returns None if there are no more items in the collection.
496 </pre>
497</div>
498
499<div class="method">
500 <code class="details" id="patch">patch(advertiserId, insertionOrderId, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700501 <pre>Updates an existing insertion order. Returns the updated insertion order if successful.
Bu Sun Kim65020912020-05-20 12:08:20 -0700502
503Args:
504 advertiserId: string, Output only. The unique ID of the advertiser the insertion order belongs to. (required)
505 insertionOrderId: string, Output only. The unique ID of the insertion order. Assigned by the system. (required)
506 body: object, The request body.
507 The object takes the form of:
508
509{ # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700510 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
511 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
512 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
513 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
514 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
515 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700516 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700517 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
518 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
519 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
520 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
521 },
522 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
523 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
524 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
525 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
526 },
527 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
528 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
529 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700530 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700531 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
532 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
533 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
534 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
535 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700536 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700537 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
538 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
539 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
540 { # Settings that control the budget of a single budget segment.
541 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
542 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
543 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
544 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
545 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
546 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
547 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
548 },
549 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
550 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
551 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
552 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
553 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700554 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700555 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700556 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700557 ],
558 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
559 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
560 },
561 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
562 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
563 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
564 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
565 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
566 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
567 },
568 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
569 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
570 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
571 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
572 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
573 },
574 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
575 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
576 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
577 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
578 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
579 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
580 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700581 },
582 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700583 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
584 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
585 }
Bu Sun Kim65020912020-05-20 12:08:20 -0700586
587 updateMask: string, Required. The mask to control which fields to update.
588 x__xgafv: string, V1 error format.
589 Allowed values
590 1 - v1 error format
591 2 - v2 error format
592
593Returns:
594 An object of the form:
595
596 { # A single insertion order.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700597 &quot;entityStatus&quot;: &quot;A String&quot;, # Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only `ENTITY_STATUS_DRAFT` is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to `ENTITY_STATUS_ACTIVE` after creation. * An insertion order cannot be changed back to `ENTITY_STATUS_DRAFT` status from any other status. * An insertion order cannot be set to `ENTITY_STATUS_ACTIVE` if its parent campaign is not active.
598 &quot;frequencyCap&quot;: { # Settings that control the number of times a user may be shown with the same ad during a given time period. # Required. The frequency capping setting of the insertion order.
599 &quot;timeUnit&quot;: &quot;A String&quot;, # The time unit in which the frequency cap will be applied. Applicable when unlimited is `false`.
600 &quot;unlimited&quot;: True or False, # Whether unlimited frequency capping is applied. When this field is set to `true`, the remaining frequency cap fields are not applicable.
601 &quot;maxImpressions&quot;: 42, # The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0. Applicable when unlimited is `false`.
602 &quot;timeUnitCount&quot;: 42, # The number of time_unit the frequency cap will last. Applicable when unlimited is `false`. The following restrictions apply based on the value of time_unit: * `TIME_UNIT_LIFETIME` - this field is output only and will default to 1 * `TIME_UNIT_MONTHS` - must be between 1 and 2 * `TIME_UNIT_WEEKS` - must be between 1 and 4 * `TIME_UNIT_DAYS` - must be between 1 and 6 * `TIME_UNIT_HOURS` - must be between 1 and 23 * `TIME_UNIT_MINUTES` - must be between 1 and 59
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700603 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700604 &quot;bidStrategy&quot;: { # Settings that control the bid strategy. Bid strategy determines the bid price. # Optional. The bidding strategy of the insertion order. By default, fixed_bid is set.
605 &quot;maximizeSpendAutoBid&quot;: { # A strategy that automatically adjusts the bid to optimize a specified performance goal while spending the full budget. # A strategy that automatically adjusts the bid to optimize to your performance goal while spending the full budget. At insertion order level, the markup_type of line items cannot be set to `PARTNER_REVENUE_MODEL_MARKUP_TYPE_CPM`. In addition, when performance_goal_type is one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_AV_VIEWED` , the line_item_type of the insertion order line items must be either: * `LINE_ITEM_TYPE_DISPLAY_DEFAULT` * `LINE_ITEM_TYPE_VIDEO_DEFAULT` , and when performance_goal_type is either: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CIVA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_IVO_TEN` the line_item_type of the insertion order line items must be `LINE_ITEM_TYPE_VIDEO_DEFAULT`.
606 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy tries to minimize while spending the full budget. `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` is not supported for this strategy.
607 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. For example, 1500000 represents 1.5 standard units of the currency.
608 },
609 &quot;performanceGoalAutoBid&quot;: { # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. # A strategy that automatically adjusts the bid to meet or beat a specified performance goal. It is to be used only for a line item entity.
610 &quot;maxAverageCpmBidAmountMicros&quot;: &quot;A String&quot;, # The maximum average CPM that may be bid, in micros of the advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency. Not applicable when performance_goal_type is set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`. For example, 1500000 represents 1.5 standard units of the currency.
611 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # Required. The performance goal the bidding strategy will attempt to meet or beat, in micros of the advertiser&#x27;s currency or in micro of the ROAS (Return On Advertising Spend) value which is also based on advertiser&#x27;s currency. Must be greater than or equal to a billable unit of the given currency and smaller or equal to upper bounds. Each performance_goal_type has its upper bound: * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA`, upper bound is 10000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, upper bound is 1000.00 USD. * when performance_goal_type is `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`, upper bound is 1000.00 and lower bound is 0.01. Example: If set to `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM`, the bid price will be based on the probability that each available impression will be viewable. For example, if viewable CPM target is $2 and an impression is 40% likely to be viewable, the bid price will be $0.80 CPM (40% of $2). For example, 1500000 represents 1.5 standard units of the currency or ROAS value.
612 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal that the bidding strategy will try to meet or beat. For line item level usage, the value must be one of: * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPA` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CPC` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_VIEWABLE_CPM` * `BIDDING_STRATEGY_PERFORMANCE_GOAL_TYPE_CUSTOM_ALGO`.
613 },
614 &quot;fixedBid&quot;: { # A strategy that uses a fixed bidding price. # A strategy that uses a fixed bid price.
615 &quot;bidAmountMicros&quot;: &quot;A String&quot;, # The fixed bid amount, in micros of the advertiser&#x27;s currency. For insertion order entity, bid_amount_micros should be set as 0. For line item entity, bid_amount_micros must be greater than or equal to billable unit of the given currency and smaller than or equal to the upper limit 1000000000. For example, 1500000 represents 1.5 standard units of the currency.
616 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700617 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700618 &quot;pacing&quot;: { # Settings that control the rate at which a budget is spent. # Required. The budget spending speed setting of the insertion order.
619 &quot;pacingPeriod&quot;: &quot;A String&quot;, # Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via auto_budget_allocation, this field is output only and defaults to `PACING_PERIOD_FLIGHT`.
620 &quot;dailyMaxImpressions&quot;: &quot;A String&quot;, # Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
621 &quot;pacingType&quot;: &quot;A String&quot;, # Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
622 &quot;dailyMaxMicros&quot;: &quot;A String&quot;, # Maximum currency amount to spend every day in micros of advertiser&#x27;s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency&#x27;s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700623 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700624 &quot;advertiserId&quot;: &quot;A String&quot;, # Output only. The unique ID of the advertiser the insertion order belongs to.
625 &quot;budget&quot;: { # Settings that control how insertion order budget is allocated. # Required. The budget allocation settings of the insertion order.
626 &quot;budgetSegments&quot;: [ # Required. The list of budget segments. Use a budget segment to specify a specific budget for a given period of time an insertion order is running.
627 { # Settings that control the budget of a single budget segment.
628 &quot;budgetAmountMicros&quot;: &quot;A String&quot;, # Required. The budget amount the insertion order will spend for the given date_range. The amount is in micros. Must be greater than 0. For example, 500000000 represents 500 standard units of the currency.
629 &quot;campaignBudgetId&quot;: &quot;A String&quot;, # The ID of the campaign budget linked to this insertion order budget segment.
630 &quot;dateRange&quot;: { # A date range. # Required. The start and end date settings of the budget segment. They are resolved relative to the parent advertiser&#x27;s time zone. * When creating a new budget segment, both `start_date` and `end_date` must be in the future. * An existing budget segment with a `start_date` in the past has a mutable `end_date` but an immutable `start_date`. * `end_date` must be the `start_date` or later, both before the year 2037.
631 &quot;endDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The upper bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
632 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
633 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
634 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
635 },
636 &quot;startDate&quot;: { # Represents a whole or partial calendar date, e.g. a birthday. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. This can represent: * A full date, with non-zero year, month and day values * A month and day value, with a zero year, e.g. an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, e.g. a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`. # The lower bound of the date range, inclusive. Must specify a positive value for `year`, `month`, and `day`.
637 &quot;month&quot;: 42, # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month and day.
638 &quot;year&quot;: 42, # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year.
639 &quot;day&quot;: 42, # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if specifying a year by itself or a year and month where the day is not significant.
640 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700641 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700642 &quot;description&quot;: &quot;A String&quot;, # The budget segment description. It can be used to enter Purchase Order information for each budget segment and have that information printed on the invoices. Must be UTF-8 encoded with a length of no more than 80 characters.
Bu Sun Kim65020912020-05-20 12:08:20 -0700643 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700644 ],
645 &quot;budgetUnit&quot;: &quot;A String&quot;, # Required. Immutable. The budget unit specifies whether the budget is currency based or impression based.
646 &quot;automationType&quot;: &quot;A String&quot;, # The type of automation used to manage bid and budget for the insertion order. If this field is unspecified in creation, the value defaults to `INSERTION_ORDER_AUTOMATION_TYPE_NONE`.
647 },
648 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the insertion order was last updated. Assigned by the system.
649 &quot;insertionOrderId&quot;: &quot;A String&quot;, # Output only. The unique ID of the insertion order. Assigned by the system.
650 &quot;campaignId&quot;: &quot;A String&quot;, # Required. Immutable. The unique ID of the campaign that the insertion order belongs to.
651 &quot;integrationDetails&quot;: { # Integration details of an entry. # Additional integration details of the insertion order.
652 &quot;integrationCode&quot;: &quot;A String&quot;, # An external identifier to be associated with the entry. The integration code will show up together with the entry in many places in the system, for example, reporting. Must be UTF-8 encoded with a length of no more than 500 characters.
653 &quot;details&quot;: &quot;A String&quot;, # Additional details of the entry in string format. Must be UTF-8 encoded with a length of no more than 1000 characters.
654 },
655 &quot;performanceGoal&quot;: { # Settings that control the performance goal of a campaign or insertion order. # Required. Performance goal of the insertion order.
656 &quot;performanceGoalType&quot;: &quot;A String&quot;, # Required. The type of the performance goal.
657 &quot;performanceGoalAmountMicros&quot;: &quot;A String&quot;, # The goal amount, in micros of the advertiser&#x27;s currency. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CPM` * `PERFORMANCE_GOAL_TYPE_CPC` * `PERFORMANCE_GOAL_TYPE_CPA` * `PERFORMANCE_GOAL_TYPE_CPIAVC` For example 1500000 represents 1.5 standard units of the currency.
658 &quot;performanceGoalString&quot;: &quot;A String&quot;, # A key performance indicator (KPI) string, which can be empty. Must be UTF-8 encoded with a length of no more than 100 characters. Applicable when performance_goal_type is set to `PERFORMANCE_GOAL_TYPE_OTHER`.
659 &quot;performanceGoalPercentageMicros&quot;: &quot;A String&quot;, # The decimal representation of the goal percentage in micros. Applicable when performance_goal_type is one of: * `PERFORMANCE_GOAL_TYPE_CTR` * `PERFORMANCE_GOAL_TYPE_VIEWABILITY` For example, 70000 represents 7% (decimal 0.07).
660 },
661 &quot;partnerCosts&quot;: [ # The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.
662 { # Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
663 &quot;feeAmount&quot;: &quot;A String&quot;, # The CPM fee amount in micros of advertiser&#x27;s currency. Applicable when the fee_type is `PARTNER_FEE_TYPE_CPM_FEE`. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser&#x27;s currency, set this field to 1500000.
664 &quot;invoiceType&quot;: &quot;A String&quot;, # The invoice type for this partner cost. * Required when cost_type is one of: - `PARTNER_COST_TYPE_ADLOOX` - `PARTNER_COST_TYPE_DOUBLE_VERIFY` - `PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE`. * Output only for other types.
665 &quot;feePercentageMillis&quot;: &quot;A String&quot;, # The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is `PARTNER_FEE_TYPE_MEDIA_FEE`. Must be greater than or equal to 0. For example: 100 represents 0.1%.
666 &quot;costType&quot;: &quot;A String&quot;, # Required. The type of the partner cost.
667 &quot;feeType&quot;: &quot;A String&quot;, # Required. The fee type for this partner cost.
Bu Sun Kim65020912020-05-20 12:08:20 -0700668 },
669 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700670 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.
671 &quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of the insertion order.
672 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700673</div>
674
675</body></html>