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