Debian Codegraph @

docs/dyn/merchantapi_accounts_v1beta.accounts.programs.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="merchantapi_accounts_v1beta.html">Merchant API</a> . <a href="merchantapi_accounts_v1beta.accounts.html">accounts</a> . <a href="merchantapi_accounts_v1beta.accounts.programs.html">programs</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="merchantapi_accounts_v1beta.accounts.programs.checkoutSettings.html">checkoutSettings()</a></code>
79 </p>
80 <p class="firstline">Returns the checkoutSettings Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="#close">close()</a></code></p>
84 <p class="firstline">Close httplib2 connections.</p>
85 <p class="toc_element">
86 <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p>
87 <p class="firstline">Disable participation in the specified program for the account.</p>
88 <p class="toc_element">
89 <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p>
90 <p class="firstline">Enable participation in the specified program for the account.</p>
91 <p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93 <p class="firstline">Retrieves the specified program for the account.</p>
94 <p class="toc_element">
95 <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
96 <p class="firstline">Retrieves all programs for the account.</p>
97 <p class="toc_element">
98 <code><a href="#list_next">list_next()</a></code></p>
99 <p class="firstline">Retrieves the next page of results.</p>
100 <h3>Method Details</h3>
101 <div class="method">
102 <code class="details" id="close">close()</code>
103 <pre>Close httplib2 connections.</pre>
104 </div>
105
106 <div class="method">
107 <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code>
108 <pre>Disable participation in the specified program for the account.
109
110 Args:
111 name: string, Required. The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. (required)
112 body: object, The request body.
113 The object takes the form of:
114
115 { # Request message for the DisableProgram method.
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 { # Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business&#x27;s store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `checkout` * `free-listings` * `product-ratings` * `shopping-ads` * `youtube-affiliate` * `youtube-shopping-checkout`
127 &quot;activeRegionCodes&quot;: [ # Output only. The regions in which the account is actively participating in the program. Active regions are defined as those where all program requirements affecting the regions have been met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
128 &quot;A String&quot;,
129 ],
130 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a Merchant Center help page describing the program.
131 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}`
132 &quot;state&quot;: &quot;A String&quot;, # Output only. The participation state of the account in the program.
133 &quot;unmetRequirements&quot;: [ # Output only. The requirements that the account has not yet satisfied that are affecting participation in the program.
134 { # Defines a requirement specified for participation in the program.
135 &quot;affectedRegionCodes&quot;: [ # Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
136 &quot;A String&quot;,
137 ],
138 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a help page describing the requirement.
139 &quot;title&quot;: &quot;A String&quot;, # Output only. Name of the requirement.
140 },
141 ],
142 }</pre>
143 </div>
144
145 <div class="method">
146 <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code>
147 <pre>Enable participation in the specified program for the account.
148
149 Args:
150 name: string, Required. The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. (required)
151 body: object, The request body.
152 The object takes the form of:
153
154 { # Request message for the EnableProgram method.
155 }
156
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162 Returns:
163 An object of the form:
164
165 { # Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business&#x27;s store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `checkout` * `free-listings` * `product-ratings` * `shopping-ads` * `youtube-affiliate` * `youtube-shopping-checkout`
166 &quot;activeRegionCodes&quot;: [ # Output only. The regions in which the account is actively participating in the program. Active regions are defined as those where all program requirements affecting the regions have been met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
167 &quot;A String&quot;,
168 ],
169 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a Merchant Center help page describing the program.
170 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}`
171 &quot;state&quot;: &quot;A String&quot;, # Output only. The participation state of the account in the program.
172 &quot;unmetRequirements&quot;: [ # Output only. The requirements that the account has not yet satisfied that are affecting participation in the program.
173 { # Defines a requirement specified for participation in the program.
174 &quot;affectedRegionCodes&quot;: [ # Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
175 &quot;A String&quot;,
176 ],
177 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a help page describing the requirement.
178 &quot;title&quot;: &quot;A String&quot;, # Output only. Name of the requirement.
179 },
180 ],
181 }</pre>
182 </div>
183
184 <div class="method">
185 <code class="details" id="get">get(name, x__xgafv=None)</code>
186 <pre>Retrieves the specified program for the account.
187
188 Args:
189 name: string, Required. The name of the program to retrieve. Format: `accounts/{account}/programs/{program}`. For example, `accounts/123456/programs/free-listings`. (required)
190 x__xgafv: string, V1 error format.
191 Allowed values
192 1 - v1 error format
193 2 - v2 error format
194
195 Returns:
196 An object of the form:
197
198 { # Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business&#x27;s store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `checkout` * `free-listings` * `product-ratings` * `shopping-ads` * `youtube-affiliate` * `youtube-shopping-checkout`
199 &quot;activeRegionCodes&quot;: [ # Output only. The regions in which the account is actively participating in the program. Active regions are defined as those where all program requirements affecting the regions have been met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
200 &quot;A String&quot;,
201 ],
202 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a Merchant Center help page describing the program.
203 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}`
204 &quot;state&quot;: &quot;A String&quot;, # Output only. The participation state of the account in the program.
205 &quot;unmetRequirements&quot;: [ # Output only. The requirements that the account has not yet satisfied that are affecting participation in the program.
206 { # Defines a requirement specified for participation in the program.
207 &quot;affectedRegionCodes&quot;: [ # Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
208 &quot;A String&quot;,
209 ],
210 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a help page describing the requirement.
211 &quot;title&quot;: &quot;A String&quot;, # Output only. Name of the requirement.
212 },
213 ],
214 }</pre>
215 </div>
216
217 <div class="method">
218 <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
219 <pre>Retrieves all programs for the account.
220
221 Args:
222 parent: string, Required. The name of the account for which to retrieve all programs. Format: `accounts/{account}` (required)
223 pageSize: integer, Optional. The maximum number of programs to return in a single response. If unspecified (or 0), a default size of 1000 is used. The maximum value is 1000; values above 1000 will be coerced to 1000.
224 pageToken: string, Optional. A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page.
225 x__xgafv: string, V1 error format.
226 Allowed values
227 1 - v1 error format
228 2 - v2 error format
229
230 Returns:
231 An object of the form:
232
233 { # Response message for the ListPrograms method.
234 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
235 &quot;programs&quot;: [ # The programs for the given account.
236 { # Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to a Merchant Center accounts. A typical example of this is the [Free product listings](https://support.google.com/merchants/answer/13889434) program, which enables products from a business&#x27;s store to be shown across Google for free. The following list is the available set of program resource IDs accessible through the API: * `checkout` * `free-listings` * `product-ratings` * `shopping-ads` * `youtube-affiliate` * `youtube-shopping-checkout`
237 &quot;activeRegionCodes&quot;: [ # Output only. The regions in which the account is actively participating in the program. Active regions are defined as those where all program requirements affecting the regions have been met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
238 &quot;A String&quot;,
239 ],
240 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a Merchant Center help page describing the program.
241 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the program. Format: `accounts/{account}/programs/{program}`
242 &quot;state&quot;: &quot;A String&quot;, # Output only. The participation state of the account in the program.
243 &quot;unmetRequirements&quot;: [ # Output only. The requirements that the account has not yet satisfied that are affecting participation in the program.
244 { # Defines a requirement specified for participation in the program.
245 &quot;affectedRegionCodes&quot;: [ # Output only. The regions that are currently affected by this requirement not being met. Region codes are defined by [CLDR](https://cldr.unicode.org/). This is either a country where the program applies specifically to that country or `001` when the program applies globally.
246 &quot;A String&quot;,
247 ],
248 &quot;documentationUri&quot;: &quot;A String&quot;, # Output only. The URL of a help page describing the requirement.
249 &quot;title&quot;: &quot;A String&quot;, # Output only. Name of the requirement.
250 },
251 ],
252 },
253 ],
254 }</pre>
255 </div>
256
257 <div class="method">
258 <code class="details" id="list_next">list_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 </body></html>