Debian Codegraph @

docs/dyn/adsense_v2.accounts.adclients.adunits.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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="adsense_v2.html">AdSense Management API</a> . <a href="adsense_v2.accounts.html">accounts</a> . <a href="adsense_v2.accounts.adclients.html">adclients</a> . <a href="adsense_v2.accounts.adclients.adunits.html">adunits</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="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an "AFC" product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566</p>
83 <p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets an ad unit from a specified account and ad client.</p>
86 <p class="toc_element">
87 <code><a href="#getAdcode">getAdcode(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Lists all ad units under a specified account and ad client.</p>
92 <p class="toc_element">
93 <code><a href="#listLinkedCustomChannels">listLinkedCustomChannels(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Lists all the custom channels available for an ad unit.</p>
95 <p class="toc_element">
96 <code><a href="#listLinkedCustomChannels_next">listLinkedCustomChannels_next()</a></code></p>
97 <p class="firstline">Retrieves the next page of results.</p>
98 <p class="toc_element">
99 <code><a href="#list_next">list_next()</a></code></p>
100 <p class="firstline">Retrieves the next page of results.</p>
101 <p class="toc_element">
102 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
103 <p class="firstline">Updates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566</p>
104 <h3>Method Details</h3>
105 <div class="method">
106 <code class="details" id="close">close()</code>
107 <pre>Close httplib2 connections.</pre>
108 </div>
109
110 <div class="method">
111 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
112 <pre>Creates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. Note that ad units can only be created for ad clients with an &quot;AFC&quot; product code. For more info see the [AdClient resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, this method can only be used to create `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566
113
114 Args:
115 parent: string, Required. Ad client to create an ad unit under. Format: accounts/{account}/adclients/{adclient} (required)
116 body: object, The request body.
117 The object takes the form of:
118
119 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
120 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
121 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
122 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
123 },
124 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
125 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
126 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
127 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
128 }
129
130 x__xgafv: string, V1 error format.
131 Allowed values
132 1 - v1 error format
133 2 - v2 error format
134
135 Returns:
136 An object of the form:
137
138 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
139 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
140 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
141 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
142 },
143 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
144 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
145 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
146 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
147 }</pre>
148 </div>
149
150 <div class="method">
151 <code class="details" id="get">get(name, x__xgafv=None)</code>
152 <pre>Gets an ad unit from a specified account and ad client.
153
154 Args:
155 name: string, Required. AdUnit to get information about. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} (required)
156 x__xgafv: string, V1 error format.
157 Allowed values
158 1 - v1 error format
159 2 - v2 error format
160
161 Returns:
162 An object of the form:
163
164 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
165 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
166 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
167 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
168 },
169 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
170 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
171 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
172 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
173 }</pre>
174 </div>
175
176 <div class="method">
177 <code class="details" id="getAdcode">getAdcode(name, x__xgafv=None)</code>
178 <pre>Gets the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).
179
180 Args:
181 name: string, Required. Name of the adunit for which to get the adcode. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} (required)
182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
186
187 Returns:
188 An object of the form:
189
190 { # Representation of the ad unit code for a given ad unit. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634) and [Where to place the ad code in your HTML](https://support.google.com/adsense/answer/9190028).
191 &quot;adCode&quot;: &quot;A String&quot;, # Output only. The code snippet to add to the body of an HTML page.
192 }</pre>
193 </div>
194
195 <div class="method">
196 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
197 <pre>Lists all ad units under a specified account and ad client.
198
199 Args:
200 parent: string, Required. The ad client which owns the collection of ad units. Format: accounts/{account}/adclients/{adclient} (required)
201 pageSize: integer, The maximum number of ad units to include in the response, used for paging. If unspecified, at most 10000 ad units will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
202 pageToken: string, A page token, received from a previous `ListAdUnits` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdUnits` must match the call that provided the page token.
203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
207
208 Returns:
209 An object of the form:
210
211 { # Response definition for the adunit list rpc.
212 &quot;adUnits&quot;: [ # The ad units returned in the list response.
213 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
214 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
215 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
216 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
217 },
218 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
219 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
220 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
221 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
222 },
223 ],
224 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token used to page through ad units. To retrieve the next page of the results, set the next request&#x27;s &quot;page_token&quot; value to this.
225 }</pre>
226 </div>
227
228 <div class="method">
229 <code class="details" id="listLinkedCustomChannels">listLinkedCustomChannels(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
230 <pre>Lists all the custom channels available for an ad unit.
231
232 Args:
233 parent: string, Required. The ad unit which owns the collection of custom channels. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} (required)
234 pageSize: integer, The maximum number of custom channels to include in the response, used for paging. If unspecified, at most 10000 custom channels will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
235 pageToken: string, A page token, received from a previous `ListLinkedCustomChannels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListLinkedCustomChannels` must match the call that provided the page token.
236 x__xgafv: string, V1 error format.
237 Allowed values
238 1 - v1 error format
239 2 - v2 error format
240
241 Returns:
242 An object of the form:
243
244 { # Response definition for the custom channels linked to an adunit list rpc.
245 &quot;customChannels&quot;: [ # The custom channels returned in this list response.
246 { # Representation of a custom channel.
247 &quot;active&quot;: True or False, # Whether the custom channel is active and collecting data. See https://support.google.com/adsense/answer/10077192.
248 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the custom channel.
249 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the custom channel. Format: accounts/{account}/adclients/{adclient}/customchannels/{customchannel}
250 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the custom channel as used in the `CUSTOM_CHANNEL_ID` reporting dimension.
251 },
252 ],
253 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token used to page through alerts. To retrieve the next page of the results, set the next request&#x27;s &quot;page_token&quot; value to this.
254 }</pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="listLinkedCustomChannels_next">listLinkedCustomChannels_next()</code>
259 <pre>Retrieves the next page of results.
260
261 Args:
262 previous_request: The request for the previous page. (required)
263 previous_response: The response from the request for the previous page. (required)
264
265 Returns:
266 A request object that you can call &#x27;execute()&#x27; on to request the next
267 page. Returns None if there are no more items in the collection.
268 </pre>
269 </div>
270
271 <div class="method">
272 <code class="details" id="list_next">list_next()</code>
273 <pre>Retrieves the next page of results.
274
275 Args:
276 previous_request: The request for the previous page. (required)
277 previous_response: The response from the request for the previous page. (required)
278
279 Returns:
280 A request object that you can call &#x27;execute()&#x27; on to request the next
281 page. Returns None if there are no more items in the collection.
282 </pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
287 <pre>Updates an ad unit. This method can be called only by a restricted set of projects, which are usually owned by [AdSense for Platforms](https://developers.google.com/adsense/platforms/) publishers. Contact your account manager if you need to use this method. For now, this method can only be used to update `DISPLAY` ad units. See: https://support.google.com/adsense/answer/9183566
288
289 Args:
290 name: string, Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} (required)
291 body: object, The request body.
292 The object takes the form of:
293
294 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
295 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
296 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
297 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
298 },
299 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
300 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
301 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
302 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
303 }
304
305 updateMask: string, The list of fields to update. If empty, a full update is performed.
306 x__xgafv: string, V1 error format.
307 Allowed values
308 1 - v1 error format
309 2 - v2 error format
310
311 Returns:
312 An object of the form:
313
314 { # Representation of an ad unit. An ad unit represents a saved ad unit with a specific set of ad settings that have been customized within an account.
315 &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC). # Required. Settings specific to content ads (AFC).
316 &quot;size&quot;: &quot;A String&quot;, # Required. Size of the ad unit. e.g. &quot;728x90&quot;, &quot;1x3&quot; (for responsive ad units).
317 &quot;type&quot;: &quot;A String&quot;, # Required. Type of the ad unit.
318 },
319 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the ad unit, as provided when the ad unit was created.
320 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the ad unit. Format: accounts/{account}/adclients/{adclient}/adunits/{adunit}
321 &quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the ad unit as used in the `AD_UNIT_ID` reporting dimension.
322 &quot;state&quot;: &quot;A String&quot;, # Required. State of the ad unit.
323 }</pre>
324 </div>
325
326 </body></html>