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="adsensehost_v4_1.html">AdSense Host API</a> . <a href="adsensehost_v4_1.accounts.html">accounts</a> . <a href="adsensehost_v4_1.accounts.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="#delete">delete(accountId, adClientId, adUnitId)</a></code></p>
82<p class="firstline">Delete the specified ad unit from the specified publisher AdSense account.</p>
83<p class="toc_element">
84  <code><a href="#get">get(accountId, adClientId, adUnitId)</a></code></p>
85<p class="firstline">Get the specified host ad unit in this AdSense account.</p>
86<p class="toc_element">
87  <code><a href="#getAdCode">getAdCode(accountId, adClientId, adUnitId, hostCustomChannelId=None)</a></code></p>
88<p class="firstline">Get ad code for the specified ad unit, attaching the specified host custom channels.</p>
89<p class="toc_element">
90  <code><a href="#insert">insert(accountId, adClientId, body=None)</a></code></p>
91<p class="firstline">Insert the supplied ad unit into the specified publisher AdSense account.</p>
92<p class="toc_element">
93  <code><a href="#list">list(accountId, adClientId, includeInactive=None, maxResults=None, pageToken=None)</a></code></p>
94<p class="firstline">List all ad units in the specified publisher's AdSense account.</p>
95<p class="toc_element">
96  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99  <code><a href="#patch">patch(accountId, adClientId, adUnitId, body=None)</a></code></p>
100<p class="firstline">Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.</p>
101<p class="toc_element">
102  <code><a href="#update">update(accountId, adClientId, body=None)</a></code></p>
103<p class="firstline">Update the supplied ad unit in the specified publisher AdSense account.</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="delete">delete(accountId, adClientId, adUnitId)</code>
112  <pre>Delete the specified ad unit from the specified publisher AdSense account.
113
114Args:
115  accountId: string, Account which contains the ad unit. (required)
116  adClientId: string, Ad client for which to get ad unit. (required)
117  adUnitId: string, Ad unit to delete. (required)
118
119Returns:
120  An object of the form:
121
122    {
123  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
124  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
125    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
126      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
127      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
128      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
129    },
130    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
131    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
132  },
133  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
134    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
135      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
136      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
137      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
138      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
139      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
140    },
141    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
142    &quot;font&quot;: { # The font which is included in the style.
143      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
144      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
145    },
146    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
147  },
148  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
149  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
150  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
151    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
152    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
153    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
154    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
155  },
156  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
157  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
158      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
159      #
160      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
161      #
162      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
163}</pre>
164</div>
165
166<div class="method">
167    <code class="details" id="get">get(accountId, adClientId, adUnitId)</code>
168  <pre>Get the specified host ad unit in this AdSense account.
169
170Args:
171  accountId: string, Account which contains the ad unit. (required)
172  adClientId: string, Ad client for which to get ad unit. (required)
173  adUnitId: string, Ad unit to get. (required)
174
175Returns:
176  An object of the form:
177
178    {
179  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
180  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
181    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
182      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
183      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
184      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
185    },
186    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
187    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
188  },
189  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
190    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
191      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
192      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
193      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
194      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
195      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
196    },
197    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
198    &quot;font&quot;: { # The font which is included in the style.
199      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
200      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
201    },
202    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
203  },
204  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
205  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
206  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
207    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
208    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
209    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
210    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
211  },
212  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
213  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
214      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
215      #
216      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
217      #
218      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
219}</pre>
220</div>
221
222<div class="method">
223    <code class="details" id="getAdCode">getAdCode(accountId, adClientId, adUnitId, hostCustomChannelId=None)</code>
224  <pre>Get ad code for the specified ad unit, attaching the specified host custom channels.
225
226Args:
227  accountId: string, Account which contains the ad client. (required)
228  adClientId: string, Ad client with contains the ad unit. (required)
229  adUnitId: string, Ad unit to get the code for. (required)
230  hostCustomChannelId: string, Host custom channel to attach to the ad code. (repeated)
231
232Returns:
233  An object of the form:
234
235    {
236  &quot;adCode&quot;: &quot;A String&quot;, # The ad code snippet.
237  &quot;kind&quot;: &quot;adsensehost#adCode&quot;, # Kind this is, in this case adsensehost#adCode.
238}</pre>
239</div>
240
241<div class="method">
242    <code class="details" id="insert">insert(accountId, adClientId, body=None)</code>
243  <pre>Insert the supplied ad unit into the specified publisher AdSense account.
244
245Args:
246  accountId: string, Account which will contain the ad unit. (required)
247  adClientId: string, Ad client into which to insert the ad unit. (required)
248  body: object, The request body.
249    The object takes the form of:
250
251{
252  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
253  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
254    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
255      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
256      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
257      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
258    },
259    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
260    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
261  },
262  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
263    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
264      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
265      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
266      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
267      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
268      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
269    },
270    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
271    &quot;font&quot;: { # The font which is included in the style.
272      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
273      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
274    },
275    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
276  },
277  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
278  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
279  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
280    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
281    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
282    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
283    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
284  },
285  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
286  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
287      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
288      #
289      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
290      #
291      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
292}
293
294
295Returns:
296  An object of the form:
297
298    {
299  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
300  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
301    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
302      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
303      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
304      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
305    },
306    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
307    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
308  },
309  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
310    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
311      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
312      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
313      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
314      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
315      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
316    },
317    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
318    &quot;font&quot;: { # The font which is included in the style.
319      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
320      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
321    },
322    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
323  },
324  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
325  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
326  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
327    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
328    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
329    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
330    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
331  },
332  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
333  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
334      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
335      #
336      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
337      #
338      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
339}</pre>
340</div>
341
342<div class="method">
343    <code class="details" id="list">list(accountId, adClientId, includeInactive=None, maxResults=None, pageToken=None)</code>
344  <pre>List all ad units in the specified publisher&#x27;s AdSense account.
345
346Args:
347  accountId: string, Account which contains the ad client. (required)
348  adClientId: string, Ad client for which to list ad units. (required)
349  includeInactive: boolean, Whether to include inactive ad units. Default: true.
350  maxResults: integer, The maximum number of ad units to include in the response, used for paging.
351  pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of &quot;nextPageToken&quot; from the previous response.
352
353Returns:
354  An object of the form:
355
356    {
357  &quot;etag&quot;: &quot;A String&quot;, # ETag of this response for caching purposes.
358  &quot;items&quot;: [ # The ad units returned in this list response.
359    {
360      &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
361      &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
362        &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
363          &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
364          &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
365          &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
366        },
367        &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
368        &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
369      },
370      &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
371        &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
372          &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
373          &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
374          &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
375          &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
376          &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
377        },
378        &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
379        &quot;font&quot;: { # The font which is included in the style.
380          &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
381          &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
382        },
383        &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
384      },
385      &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
386      &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
387      &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
388        &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
389        &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
390        &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
391        &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
392      },
393      &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
394      &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
395          # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
396          #
397          # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
398          #
399          # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
400    },
401  ],
402  &quot;kind&quot;: &quot;adsensehost#adUnits&quot;, # Kind of list this is, in this case adsensehost#adUnits.
403  &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token used to page through ad units. To retrieve the next page of results, set the next request&#x27;s &quot;pageToken&quot; value to this.
404}</pre>
405</div>
406
407<div class="method">
408    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
409  <pre>Retrieves the next page of results.
410
411Args:
412  previous_request: The request for the previous page. (required)
413  previous_response: The response from the request for the previous page. (required)
414
415Returns:
416  A request object that you can call &#x27;execute()&#x27; on to request the next
417  page. Returns None if there are no more items in the collection.
418    </pre>
419</div>
420
421<div class="method">
422    <code class="details" id="patch">patch(accountId, adClientId, adUnitId, body=None)</code>
423  <pre>Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
424
425Args:
426  accountId: string, Account which contains the ad client. (required)
427  adClientId: string, Ad client which contains the ad unit. (required)
428  adUnitId: string, Ad unit to get. (required)
429  body: object, The request body.
430    The object takes the form of:
431
432{
433  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
434  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
435    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
436      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
437      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
438      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
439    },
440    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
441    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
442  },
443  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
444    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
445      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
446      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
447      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
448      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
449      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
450    },
451    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
452    &quot;font&quot;: { # The font which is included in the style.
453      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
454      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
455    },
456    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
457  },
458  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
459  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
460  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
461    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
462    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
463    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
464    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
465  },
466  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
467  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
468      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
469      #
470      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
471      #
472      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
473}
474
475
476Returns:
477  An object of the form:
478
479    {
480  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
481  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
482    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
483      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
484      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
485      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
486    },
487    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
488    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
489  },
490  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
491    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
492      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
493      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
494      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
495      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
496      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
497    },
498    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
499    &quot;font&quot;: { # The font which is included in the style.
500      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
501      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
502    },
503    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
504  },
505  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
506  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
507  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
508    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
509    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
510    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
511    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
512  },
513  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
514  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
515      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
516      #
517      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
518      #
519      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
520}</pre>
521</div>
522
523<div class="method">
524    <code class="details" id="update">update(accountId, adClientId, body=None)</code>
525  <pre>Update the supplied ad unit in the specified publisher AdSense account.
526
527Args:
528  accountId: string, Account which contains the ad client. (required)
529  adClientId: string, Ad client which contains the ad unit. (required)
530  body: object, The request body.
531    The object takes the form of:
532
533{
534  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
535  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
536    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
537      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
538      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
539      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
540    },
541    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
542    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
543  },
544  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
545    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
546      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
547      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
548      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
549      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
550      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
551    },
552    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
553    &quot;font&quot;: { # The font which is included in the style.
554      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
555      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
556    },
557    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
558  },
559  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
560  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
561  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
562    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
563    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
564    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
565    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
566  },
567  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
568  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
569      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
570      #
571      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
572      #
573      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
574}
575
576
577Returns:
578  An object of the form:
579
580    {
581  &quot;code&quot;: &quot;A String&quot;, # Identity code of this ad unit, not necessarily unique across ad clients.
582  &quot;contentAdsSettings&quot;: { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - deprecated).
583    &quot;backupOption&quot;: { # The backup option to be used in instances where no ad is available.
584      &quot;color&quot;: &quot;A String&quot;, # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
585      &quot;type&quot;: &quot;A String&quot;, # Type of the backup option. Possible values are BLANK, COLOR and URL.
586      &quot;url&quot;: &quot;A String&quot;, # URL to use when type is set to URL.
587    },
588    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
589    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
590  },
591  &quot;customStyle&quot;: { # Custom style information specific to this ad unit.
592    &quot;colors&quot;: { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
593      &quot;background&quot;: &quot;A String&quot;, # The color of the ad background.
594      &quot;border&quot;: &quot;A String&quot;, # The color of the ad border.
595      &quot;text&quot;: &quot;A String&quot;, # The color of the ad text.
596      &quot;title&quot;: &quot;A String&quot;, # The color of the ad title.
597      &quot;url&quot;: &quot;A String&quot;, # The color of the ad url.
598    },
599    &quot;corners&quot;: &quot;A String&quot;, # The style of the corners in the ad (deprecated: never populated, ignored).
600    &quot;font&quot;: { # The font which is included in the style.
601      &quot;family&quot;: &quot;A String&quot;, # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
602      &quot;size&quot;: &quot;A String&quot;, # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
603    },
604    &quot;kind&quot;: &quot;adsensehost#adStyle&quot;, # Kind this is, in this case adsensehost#adStyle.
605  },
606  &quot;id&quot;: &quot;A String&quot;, # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
607  &quot;kind&quot;: &quot;adsensehost#adUnit&quot;, # Kind of resource this is, in this case adsensehost#adUnit.
608  &quot;mobileContentAdsSettings&quot;: { # Settings specific to WAP mobile content ads (AFMC - deprecated).
609    &quot;markupLanguage&quot;: &quot;A String&quot;, # The markup language to use for this ad unit.
610    &quot;scriptingLanguage&quot;: &quot;A String&quot;, # The scripting language to use for this ad unit.
611    &quot;size&quot;: &quot;A String&quot;, # Size of this ad unit.
612    &quot;type&quot;: &quot;A String&quot;, # Type of this ad unit.
613  },
614  &quot;name&quot;: &quot;A String&quot;, # Name of this ad unit.
615  &quot;status&quot;: &quot;A String&quot;, # Status of this ad unit. Possible values are:
616      # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
617      #
618      # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
619      #
620      # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
621}</pre>
622</div>
623
624</body></html>