Skip to content

Commit 967d773

Browse files
feat(adsense): update the api
#### adsense:v2 The following keys were added: - resources.accounts.resources.adclients.methods.get (Total Keys: 11) - resources.accounts.resources.reports.methods.getSaved (Total Keys: 11)
1 parent dca888e commit 967d773

10 files changed

+254
-104
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ <h2>Instance Methods</h2>
9090
<code><a href="#listLinkedCustomChannels">listLinkedCustomChannels(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
9191
<p class="firstline">Lists all the custom channels available for an ad unit.</p>
9292
<p class="toc_element">
93-
<code><a href="#listLinkedCustomChannels_next">listLinkedCustomChannels_next(previous_request, previous_response)</a></code></p>
93+
<code><a href="#listLinkedCustomChannels_next">listLinkedCustomChannels_next()</a></code></p>
9494
<p class="firstline">Retrieves the next page of results.</p>
9595
<p class="toc_element">
96-
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
96+
<code><a href="#list_next">list_next()</a></code></p>
9797
<p class="firstline">Retrieves the next page of results.</p>
9898
<h3>Method Details</h3>
9999
<div class="method">
@@ -208,31 +208,31 @@ <h3>Method Details</h3>
208208
</div>
209209

210210
<div class="method">
211-
<code class="details" id="listLinkedCustomChannels_next">listLinkedCustomChannels_next(previous_request, previous_response)</code>
211+
<code class="details" id="listLinkedCustomChannels_next">listLinkedCustomChannels_next()</code>
212212
<pre>Retrieves the next page of results.
213213

214-
Args:
215-
previous_request: The request for the previous page. (required)
216-
previous_response: The response from the request for the previous page. (required)
214+
Args:
215+
previous_request: The request for the previous page. (required)
216+
previous_response: The response from the request for the previous page. (required)
217217

218-
Returns:
219-
A request object that you can call &#x27;execute()&#x27; on to request the next
220-
page. Returns None if there are no more items in the collection.
221-
</pre>
218+
Returns:
219+
A request object that you can call &#x27;execute()&#x27; on to request the next
220+
page. Returns None if there are no more items in the collection.
221+
</pre>
222222
</div>
223223

224224
<div class="method">
225-
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
225+
<code class="details" id="list_next">list_next()</code>
226226
<pre>Retrieves the next page of results.
227227

228-
Args:
229-
previous_request: The request for the previous page. (required)
230-
previous_response: The response from the request for the previous page. (required)
228+
Args:
229+
previous_request: The request for the previous page. (required)
230+
previous_response: The response from the request for the previous page. (required)
231231

232-
Returns:
233-
A request object that you can call &#x27;execute()&#x27; on to request the next
234-
page. Returns None if there are no more items in the collection.
235-
</pre>
232+
Returns:
233+
A request object that you can call &#x27;execute()&#x27; on to request the next
234+
page. Returns None if there are no more items in the collection.
235+
</pre>
236236
</div>
237237

238238
</body></html>

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ <h2>Instance Methods</h2>
8787
<code><a href="#listLinkedAdUnits">listLinkedAdUnits(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
8888
<p class="firstline">Lists all the ad units available for a custom channel.</p>
8989
<p class="toc_element">
90-
<code><a href="#listLinkedAdUnits_next">listLinkedAdUnits_next(previous_request, previous_response)</a></code></p>
90+
<code><a href="#listLinkedAdUnits_next">listLinkedAdUnits_next()</a></code></p>
9191
<p class="firstline">Retrieves the next page of results.</p>
9292
<p class="toc_element">
93-
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
93+
<code><a href="#list_next">list_next()</a></code></p>
9494
<p class="firstline">Retrieves the next page of results.</p>
9595
<h3>Method Details</h3>
9696
<div class="method">
@@ -181,31 +181,31 @@ <h3>Method Details</h3>
181181
</div>
182182

183183
<div class="method">
184-
<code class="details" id="listLinkedAdUnits_next">listLinkedAdUnits_next(previous_request, previous_response)</code>
184+
<code class="details" id="listLinkedAdUnits_next">listLinkedAdUnits_next()</code>
185185
<pre>Retrieves the next page of results.
186186

187-
Args:
188-
previous_request: The request for the previous page. (required)
189-
previous_response: The response from the request for the previous page. (required)
187+
Args:
188+
previous_request: The request for the previous page. (required)
189+
previous_response: The response from the request for the previous page. (required)
190190

191-
Returns:
192-
A request object that you can call &#x27;execute()&#x27; on to request the next
193-
page. Returns None if there are no more items in the collection.
194-
</pre>
191+
Returns:
192+
A request object that you can call &#x27;execute()&#x27; on to request the next
193+
page. Returns None if there are no more items in the collection.
194+
</pre>
195195
</div>
196196

197197
<div class="method">
198-
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
198+
<code class="details" id="list_next">list_next()</code>
199199
<pre>Retrieves the next page of results.
200200

201-
Args:
202-
previous_request: The request for the previous page. (required)
203-
previous_response: The response from the request for the previous page. (required)
201+
Args:
202+
previous_request: The request for the previous page. (required)
203+
previous_response: The response from the request for the previous page. (required)
204204

205-
Returns:
206-
A request object that you can call &#x27;execute()&#x27; on to request the next
207-
page. Returns None if there are no more items in the collection.
208-
</pre>
205+
Returns:
206+
A request object that you can call &#x27;execute()&#x27; on to request the next
207+
page. Returns None if there are no more items in the collection.
208+
</pre>
209209
</div>
210210

211211
</body></html>

docs/dyn/adsense_v2.accounts.adclients.html

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,46 @@ <h2>Instance Methods</h2>
9292
<p class="toc_element">
9393
<code><a href="#close">close()</a></code></p>
9494
<p class="firstline">Close httplib2 connections.</p>
95+
<p class="toc_element">
96+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97+
<p class="firstline">Gets the ad client from the given resource name.</p>
9598
<p class="toc_element">
9699
<code><a href="#getAdcode">getAdcode(name, x__xgafv=None)</a></code></p>
97100
<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>
98101
<p class="toc_element">
99102
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
100103
<p class="firstline">Lists all the ad clients available in an account.</p>
101104
<p class="toc_element">
102-
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
105+
<code><a href="#list_next">list_next()</a></code></p>
103106
<p class="firstline">Retrieves the next page of results.</p>
104107
<h3>Method Details</h3>
105108
<div class="method">
106109
<code class="details" id="close">close()</code>
107110
<pre>Close httplib2 connections.</pre>
108111
</div>
109112

113+
<div class="method">
114+
<code class="details" id="get">get(name, x__xgafv=None)</code>
115+
<pre>Gets the ad client from the given resource name.
116+
117+
Args:
118+
name: string, Required. The name of the ad client to retrieve. Format: accounts/{account}/adclients/{adclient} (required)
119+
x__xgafv: string, V1 error format.
120+
Allowed values
121+
1 - v1 error format
122+
2 - v2 error format
123+
124+
Returns:
125+
An object of the form:
126+
127+
{ # Representation of an ad client. An ad client represents a user&#x27;s subscription with a specific AdSense product.
128+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
129+
&quot;productCode&quot;: &quot;A String&quot;, # Output only. Reporting product code of the ad client. For example, &quot;AFC&quot; for AdSense for Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client supports reporting.
130+
&quot;reportingDimensionId&quot;: &quot;A String&quot;, # 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.
131+
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the ad client.
132+
}</pre>
133+
</div>
134+
110135
<div class="method">
111136
<code class="details" id="getAdcode">getAdcode(name, x__xgafv=None)</code>
112137
<pre>Gets the AdSense code for a given ad client. This returns what was previously known as the &#x27;auto ad code&#x27;. 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).
@@ -148,7 +173,7 @@ <h3>Method Details</h3>
148173
&quot;adClients&quot;: [ # The ad clients returned in this list response.
149174
{ # Representation of an ad client. An ad client represents a user&#x27;s subscription with a specific AdSense product.
150175
&quot;name&quot;: &quot;A String&quot;, # Resource name of the ad client. Format: accounts/{account}/adclients/{adclient}
151-
&quot;productCode&quot;: &quot;A String&quot;, # Output only. Product code of the ad client. For example, &quot;AFC&quot; for AdSense for Content.
176+
&quot;productCode&quot;: &quot;A String&quot;, # Output only. Reporting product code of the ad client. For example, &quot;AFC&quot; for AdSense for Content. Corresponds to the `PRODUCT_CODE` dimension, and present only if the ad client supports reporting.
152177
&quot;reportingDimensionId&quot;: &quot;A String&quot;, # 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.
153178
&quot;state&quot;: &quot;A String&quot;, # Output only. State of the ad client.
154179
},
@@ -158,17 +183,17 @@ <h3>Method Details</h3>
158183
</div>
159184

160185
<div class="method">
161-
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
186+
<code class="details" id="list_next">list_next()</code>
162187
<pre>Retrieves the next page of results.
163188

164-
Args:
165-
previous_request: The request for the previous page. (required)
166-
previous_response: The response from the request for the previous page. (required)
189+
Args:
190+
previous_request: The request for the previous page. (required)
191+
previous_response: The response from the request for the previous page. (required)
167192

168-
Returns:
169-
A request object that you can call &#x27;execute()&#x27; on to request the next
170-
page. Returns None if there are no more items in the collection.
171-
</pre>
193+
Returns:
194+
A request object that you can call &#x27;execute()&#x27; on to request the next
195+
page. Returns None if there are no more items in the collection.
196+
</pre>
172197
</div>
173198

174199
</body></html>

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

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,42 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
80+
<p class="toc_element">
81+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82+
<p class="firstline">Gets information about the selected url channel.</p>
8083
<p class="toc_element">
8184
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
8285
<p class="firstline">Lists active url channels.</p>
8386
<p class="toc_element">
84-
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
87+
<code><a href="#list_next">list_next()</a></code></p>
8588
<p class="firstline">Retrieves the next page of results.</p>
8689
<h3>Method Details</h3>
8790
<div class="method">
8891
<code class="details" id="close">close()</code>
8992
<pre>Close httplib2 connections.</pre>
9093
</div>
9194

95+
<div class="method">
96+
<code class="details" id="get">get(name, x__xgafv=None)</code>
97+
<pre>Gets information about the selected url channel.
98+
99+
Args:
100+
name: string, Required. The name of the url channel to retrieve. Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel} (required)
101+
x__xgafv: string, V1 error format.
102+
Allowed values
103+
1 - v1 error format
104+
2 - v2 error format
105+
106+
Returns:
107+
An object of the form:
108+
109+
{ # Representation of a URL channel. URL channels allow you to track the performance of particular pages in your site; see [URL channels](https://support.google.com/adsense/answer/2923836) for more information.
110+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the URL channel. Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel}
111+
&quot;reportingDimensionId&quot;: &quot;A String&quot;, # Output only. Unique ID of the custom channel as used in the `URL_CHANNEL_ID` reporting dimension.
112+
&quot;uriPattern&quot;: &quot;A String&quot;, # URI pattern of the channel. Does not include &quot;http://&quot; or &quot;https://&quot;. Example: www.example.com/home
113+
}</pre>
114+
</div>
115+
92116
<div class="method">
93117
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
94118
<pre>Lists active url channels.
@@ -118,17 +142,17 @@ <h3>Method Details</h3>
118142
</div>
119143

120144
<div class="method">
121-
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
145+
<code class="details" id="list_next">list_next()</code>
122146
<pre>Retrieves the next page of results.
123147

124-
Args:
125-
previous_request: The request for the previous page. (required)
126-
previous_response: The response from the request for the previous page. (required)
148+
Args:
149+
previous_request: The request for the previous page. (required)
150+
previous_response: The response from the request for the previous page. (required)
127151

128-
Returns:
129-
A request object that you can call &#x27;execute()&#x27; on to request the next
130-
page. Returns None if there are no more items in the collection.
131-
</pre>
152+
Returns:
153+
A request object that you can call &#x27;execute()&#x27; on to request the next
154+
page. Returns None if there are no more items in the collection.
155+
</pre>
132156
</div>
133157

134158
</body></html>

docs/dyn/adsense_v2.accounts.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ <h2>Instance Methods</h2>
112112
<code><a href="#listChildAccounts">listChildAccounts(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
113113
<p class="firstline">Lists all accounts directly managed by the given AdSense account.</p>
114114
<p class="toc_element">
115-
<code><a href="#listChildAccounts_next">listChildAccounts_next(previous_request, previous_response)</a></code></p>
115+
<code><a href="#listChildAccounts_next">listChildAccounts_next()</a></code></p>
116116
<p class="firstline">Retrieves the next page of results.</p>
117117
<p class="toc_element">
118-
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
118+
<code><a href="#list_next">list_next()</a></code></p>
119119
<p class="firstline">Retrieves the next page of results.</p>
120120
<h3>Method Details</h3>
121121
<div class="method">
@@ -227,31 +227,31 @@ <h3>Method Details</h3>
227227
</div>
228228

229229
<div class="method">
230-
<code class="details" id="listChildAccounts_next">listChildAccounts_next(previous_request, previous_response)</code>
230+
<code class="details" id="listChildAccounts_next">listChildAccounts_next()</code>
231231
<pre>Retrieves the next page of results.
232232

233-
Args:
234-
previous_request: The request for the previous page. (required)
235-
previous_response: The response from the request for the previous page. (required)
233+
Args:
234+
previous_request: The request for the previous page. (required)
235+
previous_response: The response from the request for the previous page. (required)
236236

237-
Returns:
238-
A request object that you can call &#x27;execute()&#x27; on to request the next
239-
page. Returns None if there are no more items in the collection.
240-
</pre>
237+
Returns:
238+
A request object that you can call &#x27;execute()&#x27; on to request the next
239+
page. Returns None if there are no more items in the collection.
240+
</pre>
241241
</div>
242242

243243
<div class="method">
244-
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
244+
<code class="details" id="list_next">list_next()</code>
245245
<pre>Retrieves the next page of results.
246246

247-
Args:
248-
previous_request: The request for the previous page. (required)
249-
previous_response: The response from the request for the previous page. (required)
247+
Args:
248+
previous_request: The request for the previous page. (required)
249+
previous_response: The response from the request for the previous page. (required)
250250

251-
Returns:
252-
A request object that you can call &#x27;execute()&#x27; on to request the next
253-
page. Returns None if there are no more items in the collection.
254-
</pre>
251+
Returns:
252+
A request object that you can call &#x27;execute()&#x27; on to request the next
253+
page. Returns None if there are no more items in the collection.
254+
</pre>
255255
</div>
256256

257257
</body></html>

docs/dyn/adsense_v2.accounts.reports.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ <h2>Instance Methods</h2>
8888
<p class="toc_element">
8989
<code><a href="#generateCsv">generateCsv(account, currencyCode=None, dateRange=None, dimensions=None, endDate_day=None, endDate_month=None, endDate_year=None, filters=None, languageCode=None, limit=None, metrics=None, orderBy=None, reportingTimeZone=None, startDate_day=None, startDate_month=None, startDate_year=None, x__xgafv=None)</a></code></p>
9090
<p class="firstline">Generates a csv formatted ad hoc report.</p>
91+
<p class="toc_element">
92+
<code><a href="#getSaved">getSaved(name, x__xgafv=None)</a></code></p>
93+
<p class="firstline">Gets the saved report from the given resource name.</p>
9194
<h3>Method Details</h3>
9295
<div class="method">
9396
<code class="details" id="close">close()</code>
@@ -399,4 +402,24 @@ <h3>Method Details</h3>
399402
}</pre>
400403
</div>
401404

405+
<div class="method">
406+
<code class="details" id="getSaved">getSaved(name, x__xgafv=None)</code>
407+
<pre>Gets the saved report from the given resource name.
408+
409+
Args:
410+
name: string, Required. The name of the saved report to retrieve. Format: accounts/{account}/reports/{report} (required)
411+
x__xgafv: string, V1 error format.
412+
Allowed values
413+
1 - v1 error format
414+
2 - v2 error format
415+
416+
Returns:
417+
An object of the form:
418+
419+
{ # Representation of a saved report.
420+
&quot;name&quot;: &quot;A String&quot;, # Resource name of the report. Format: accounts/{account}/reports/{report}
421+
&quot;title&quot;: &quot;A String&quot;, # Report title as specified by publisher.
422+
}</pre>
423+
</div>
424+
402425
</body></html>

0 commit comments

Comments
 (0)