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="adsense_v2.html">AdSense Management API</a> . <a href="adsense_v2.accounts.html">accounts</a> . <a href="adsense_v2.accounts.adclients.html">adclients</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="adsense_v2.accounts.adclients.adunits.html">adunits()</a></code> 79</p> 80<p class="firstline">Returns the adunits Resource.</p> 81 82<p class="toc_element"> 83 <code><a href="adsense_v2.accounts.adclients.customchannels.html">customchannels()</a></code> 84</p> 85<p class="firstline">Returns the customchannels Resource.</p> 86 87<p class="toc_element"> 88 <code><a href="adsense_v2.accounts.adclients.urlchannels.html">urlchannels()</a></code> 89</p> 90<p class="firstline">Returns the urlchannels Resource.</p> 91 92<p class="toc_element"> 93 <code><a href="#close">close()</a></code></p> 94<p class="firstline">Close httplib2 connections.</p> 95<p class="toc_element"> 96 <code><a href="#getAdcode">getAdcode(name, x__xgafv=None)</a></code></p> 97<p class="firstline">Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634).</p> 98<p class="toc_element"> 99 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> 100<p class="firstline">Lists all the ad clients available in an account.</p> 101<p class="toc_element"> 102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 103<p class="firstline">Retrieves the next page of results.</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="getAdcode">getAdcode(name, x__xgafv=None)</code> 112 <pre>Gets the AdSense code for a given ad client. This returns what was previously known as the 'auto ad code'. This is only supported for ad clients with a product_code of AFC. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634). 113 114Args: 115 name: string, Required. Name of the ad client for which to get the adcode. Format: accounts/{account}/adclients/{adclient} (required) 116 x__xgafv: string, V1 error format. 117 Allowed values 118 1 - v1 error format 119 2 - v2 error format 120 121Returns: 122 An object of the form: 123 124 { # Representation of the AdSense code for a given ad client. For more information, see [About the AdSense code](https://support.google.com/adsense/answer/9274634). 125 "adCode": "A String", # Output only. The AdSense code snippet to add to the head of an HTML page. 126 "ampBody": "A String", # Output only. The AdSense code snippet to add to the body of an AMP page. 127 "ampHead": "A String", # Output only. The AdSense code snippet to add to the head of an AMP page. 128}</pre> 129</div> 130 131<div class="method"> 132 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> 133 <pre>Lists all the ad clients available in an account. 134 135Args: 136 parent: string, Required. The account which owns the collection of ad clients. Format: accounts/{account} (required) 137 pageSize: integer, The maximum number of ad clients to include in the response, used for paging. If unspecified, at most 10000 ad clients will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000. 138 pageToken: string, A page token, received from a previous `ListAdClients` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAdClients` must match the call that provided the page token. 139 x__xgafv: string, V1 error format. 140 Allowed values 141 1 - v1 error format 142 2 - v2 error format 143 144Returns: 145 An object of the form: 146 147 { # Response definition for the ad client list rpc. 148 "adClients": [ # The ad clients returned in this list response. 149 { # Representation of an ad client. An ad client represents a user's subscription with a specific AdSense product. 150 "name": "A String", # Resource name of the ad client. Format: accounts/{account}/adclients/{adclient} 151 "productCode": "A String", # Output only. Product code of the ad client. For example, "AFC" for AdSense for Content. 152 "reportingDimensionId": "A String", # Output only. Unique ID of the ad client as used in the `AD_CLIENT_ID` reporting dimension. Present only if the ad client supports reporting. 153 }, 154 ], 155 "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of the results, set the next request's "page_token" value to this. 156}</pre> 157</div> 158 159<div class="method"> 160 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 161 <pre>Retrieves the next page of results. 162 163Args: 164 previous_request: The request for the previous page. (required) 165 previous_response: The response from the request for the previous page. (required) 166 167Returns: 168 A request object that you can call 'execute()' on to request the next 169 page. Returns None if there are no more items in the collection. 170 </pre> 171</div> 172 173</body></html>