Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: class Resource</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | <p> |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 7 | <tr bgcolor="#ffc8d8"> |
| 8 | <td colspan=3 valign=bottom> <br> |
| 9 | <font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 10 | |
| 11 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 12 | <td colspan=2><tt>A class for interacting with a resource.<br> </tt></td></tr> |
| 13 | <tr><td> </td> |
| 14 | <td width="100%">Methods defined here:<br> |
| 15 | <dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl> |
| 16 | |
| 17 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>List all ad clients in this AdSense account.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.<br> |
Joe Gregorio | b417caf | 2011-12-08 12:04:24 -0500 | [diff] [blame] | 21 | maxResults: integer, The maximum number of ad clients to include in the response, used for paging.<br> |
| 22 | <br> |
| 23 | Returns:<br> |
| 24 | An object of the form<br> |
| 25 | <br> |
| 26 | {<br> |
| 27 | "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.<br> |
| 28 | "items": [ # The ad clients returned in this list response.<br> |
| 29 | {<br> |
| 30 | "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.<br> |
| 31 | "kind": "adsense#adClient", # Kind of resource this is, in this case adsense#adClient.<br> |
| 32 | "id": "A String", # Unique identifier of this ad client.<br> |
| 33 | "supportsReporting": True or False, # Whether this ad client supports being reported on.<br> |
| 34 | },<br> |
| 35 | ],<br> |
| 36 | "kind": "adsense#adClients", # Kind of list this is, in this case adsense#adClients.<br> |
| 37 | "etag": "A String", # ETag of this response for caching purposes.<br> |
| 38 | }</tt></dd></dl> |
Joe Gregorio | 761c456 | 2011-10-28 14:36:24 -0400 | [diff] [blame] | 39 | |
| 40 | <dl><dt><a name="Resource-list_next"><strong>list_next</strong></a> = methodNext(self, previous_request, previous_response)</dt><dd><tt>Retrieves the next page of results.<br> |
| 41 | <br> |
| 42 | Args:<br> |
| 43 | previous_request: The request for the previous page.<br> |
| 44 | previous_response: The response from the request for the previous page.<br> |
| 45 | <br> |
| 46 | Returns:<br> |
| 47 | A request object that you can call 'execute()' on to request the next<br> |
| 48 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 49 | |
| 50 | <hr> |
| 51 | Data descriptors defined here:<br> |
| 52 | <dl><dt><strong>__dict__</strong></dt> |
| 53 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 54 | </dl> |
| 55 | <dl><dt><strong>__weakref__</strong></dt> |
| 56 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 57 | </dl> |
| 58 | </td></tr></table> |
| 59 | </body></html> |