Debian Codegraph @

docs/dyn/adsenseplatform_v1.platforms.accounts.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="adsenseplatform_v1.html">AdSense Platform API</a> . <a href="adsenseplatform_v1.platforms.html">platforms</a> . <a href="adsenseplatform_v1.platforms.accounts.html">accounts</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="adsenseplatform_v1.platforms.accounts.events.html">events()</a></code>
79 </p>
80 <p class="firstline">Returns the events Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="adsenseplatform_v1.platforms.accounts.sites.html">sites()</a></code>
84 </p>
85 <p class="firstline">Returns the sites Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close(name, body=None, x__xgafv=None)</a></code></p>
89 <p class="firstline">Closes a sub-account.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Creates a sub-account.</p>
93 <p class="toc_element">
94 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Gets information about the selected sub-account.</p>
96 <p class="toc_element">
97 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Lists a partial view of sub-accounts for a specific parent account.</p>
99 <p class="toc_element">
100 <code><a href="#list_next">list_next()</a></code></p>
101 <p class="firstline">Retrieves the next page of results.</p>
102 <p class="toc_element">
103 <code><a href="#lookup">lookup(parent, creationRequestId=None, x__xgafv=None)</a></code></p>
104 <p class="firstline">Looks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.</p>
105 <h3>Method Details</h3>
106 <div class="method">
107 <code class="details" id="close">close(name, body=None, x__xgafv=None)</code>
108 <pre>Closes a sub-account.
109
110 Args:
111 name: string, Required. Account to close. Format: platforms/{platform}/accounts/{account_id} (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # Request definition for the account close rpc.
116 }
117
118 x__xgafv: string, V1 error format.
119 Allowed values
120 1 - v1 error format
121 2 - v2 error format
122
123 Returns:
124 An object of the form:
125
126 { # Response definition for the account close rpc.
127 }</pre>
128 </div>
129
130 <div class="method">
131 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
132 <pre>Creates a sub-account.
133
134 Args:
135 parent: string, Required. Platform to create an account for. Format: platforms/{platform} (required)
136 body: object, The request body.
137 The object takes the form of:
138
139 { # Representation of an Account.
140 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of the account.
141 &quot;creationRequestId&quot;: &quot;A String&quot;, # Required. An opaque token that uniquely identifies the account among all the platform&#x27;s accounts. This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user. This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error.
142 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this account.
143 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the account. Format: platforms/pub-[0-9]+/accounts/pub-[0-9]+
144 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.
145 &quot;state&quot;: &quot;A String&quot;, # Output only. Approval state of the account.
146 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The IANA TZ timezone code of this account. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is used for reporting. It is recommended to set it to the same value for all child accounts.
147 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
148 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
149 },
150 }
151
152 x__xgafv: string, V1 error format.
153 Allowed values
154 1 - v1 error format
155 2 - v2 error format
156
157 Returns:
158 An object of the form:
159
160 { # Representation of an Account.
161 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of the account.
162 &quot;creationRequestId&quot;: &quot;A String&quot;, # Required. An opaque token that uniquely identifies the account among all the platform&#x27;s accounts. This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user. This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error.
163 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this account.
164 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the account. Format: platforms/pub-[0-9]+/accounts/pub-[0-9]+
165 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.
166 &quot;state&quot;: &quot;A String&quot;, # Output only. Approval state of the account.
167 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The IANA TZ timezone code of this account. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is used for reporting. It is recommended to set it to the same value for all child accounts.
168 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
169 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
170 },
171 }</pre>
172 </div>
173
174 <div class="method">
175 <code class="details" id="get">get(name, x__xgafv=None)</code>
176 <pre>Gets information about the selected sub-account.
177
178 Args:
179 name: string, Required. Account to get information about. Format: platforms/{platform}/accounts/{account_id} (required)
180 x__xgafv: string, V1 error format.
181 Allowed values
182 1 - v1 error format
183 2 - v2 error format
184
185 Returns:
186 An object of the form:
187
188 { # Representation of an Account.
189 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of the account.
190 &quot;creationRequestId&quot;: &quot;A String&quot;, # Required. An opaque token that uniquely identifies the account among all the platform&#x27;s accounts. This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user. This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error.
191 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this account.
192 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the account. Format: platforms/pub-[0-9]+/accounts/pub-[0-9]+
193 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.
194 &quot;state&quot;: &quot;A String&quot;, # Output only. Approval state of the account.
195 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The IANA TZ timezone code of this account. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is used for reporting. It is recommended to set it to the same value for all child accounts.
196 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
197 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
198 },
199 }</pre>
200 </div>
201
202 <div class="method">
203 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
204 <pre>Lists a partial view of sub-accounts for a specific parent account.
205
206 Args:
207 parent: string, Required. Platform who parents the accounts. Format: platforms/{platform} (required)
208 pageSize: integer, Optional. The maximum number of accounts to include in the response, used for paging. If unspecified, at most 10000 accounts will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.
209 pageToken: string, Optional. A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page.
210 x__xgafv: string, V1 error format.
211 Allowed values
212 1 - v1 error format
213 2 - v2 error format
214
215 Returns:
216 An object of the form:
217
218 { # Response definition for the list accounts rpc.
219 &quot;accounts&quot;: [ # The Accounts returned in the list response. Represented by a partial view of the Account resource, populating `name` and `creation_request_id`.
220 { # Representation of an Account.
221 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Creation time of the account.
222 &quot;creationRequestId&quot;: &quot;A String&quot;, # Required. An opaque token that uniquely identifies the account among all the platform&#x27;s accounts. This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user. This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error.
223 &quot;displayName&quot;: &quot;A String&quot;, # Display name of this account.
224 &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the account. Format: platforms/pub-[0-9]+/accounts/pub-[0-9]+
225 &quot;regionCode&quot;: &quot;A String&quot;, # Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code.
226 &quot;state&quot;: &quot;A String&quot;, # Output only. Approval state of the account.
227 &quot;timeZone&quot;: { # Represents a time zone from the [IANA Time Zone Database](https://www.iana.org/time-zones). # Required. The IANA TZ timezone code of this account. For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. This field is used for reporting. It is recommended to set it to the same value for all child accounts.
228 &quot;id&quot;: &quot;A String&quot;, # IANA Time Zone Database time zone. For example &quot;America/New_York&quot;.
229 &quot;version&quot;: &quot;A String&quot;, # Optional. IANA Time Zone Database version number. For example &quot;2019a&quot;.
230 },
231 },
232 ],
233 &quot;nextPageToken&quot;: &quot;A String&quot;, # Continuation token used to page through accounts. To retrieve the next page of the results, set the next request&#x27;s &quot;page_token&quot; value to this.
234 }</pre>
235 </div>
236
237 <div class="method">
238 <code class="details" id="list_next">list_next()</code>
239 <pre>Retrieves the next page of results.
240
241 Args:
242 previous_request: The request for the previous page. (required)
243 previous_response: The response from the request for the previous page. (required)
244
245 Returns:
246 A request object that you can call &#x27;execute()&#x27; on to request the next
247 page. Returns None if there are no more items in the collection.
248 </pre>
249 </div>
250
251 <div class="method">
252 <code class="details" id="lookup">lookup(parent, creationRequestId=None, x__xgafv=None)</code>
253 <pre>Looks up information about a sub-account for a specified creation_request_id. If no account exists for the given creation_request_id, returns 404.
254
255 Args:
256 parent: string, Required. Platform who parents the account. Format: platforms/{platform} (required)
257 creationRequestId: string, Optional. The creation_request_id provided when calling createAccount.
258 x__xgafv: string, V1 error format.
259 Allowed values
260 1 - v1 error format
261 2 - v2 error format
262
263 Returns:
264 An object of the form:
265
266 { # Response definition for the lookup account rpc.
267 &quot;name&quot;: &quot;A String&quot;, # The name of the Account Format: platforms/{platform}/accounts/{account_id}
268 }</pre>
269 </div>
270
271 </body></html>