Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [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 units in the specified custom channel.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.<br> |
| 21 | includeInactive: boolean, Whether to include inactive ad units. Default: true.<br> |
| 22 | customChannelId: string, Custom channel for which to list ad units. (required)<br> |
| 23 | adClientId: string, Ad client which contains the custom channel. (required)<br> |
| 24 | maxResults: integer, The maximum number of ad units to include in the response, used for paging.<br> |
| 25 | accountId: string, Account to which the ad client belongs. (required)<br> |
| 26 | <br> |
| 27 | Returns:<br> |
| 28 | An object of the form<br> |
| 29 | <br> |
| 30 | {<br> |
| 31 | "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.<br> |
| 32 | "items": [ # The ad units returned in this list response.<br> |
| 33 | {<br> |
| 34 | "status": "A String", # Status of this ad unit. Possible values are:<br> |
| 35 | # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.<br> |
| 36 | #<br> |
| 37 | # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.<br> |
| 38 | #<br> |
| 39 | # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.<br> |
| 40 | "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.<br> |
| 41 | "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.<br> |
| 42 | "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.<br> |
| 43 | "name": "A String", # Name of this ad unit.<br> |
| 44 | },<br> |
| 45 | ],<br> |
| 46 | "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.<br> |
| 47 | "etag": "A String", # ETag of this response for caching purposes.<br> |
| 48 | }</tt></dd></dl> |
| 49 | |
| 50 | <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> |
| 51 | <br> |
| 52 | Args:<br> |
| 53 | previous_request: The request for the previous page.<br> |
| 54 | previous_response: The response from the request for the previous page.<br> |
| 55 | <br> |
| 56 | Returns:<br> |
| 57 | A request object that you can call 'execute()' on to request the next<br> |
| 58 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 59 | |
| 60 | <hr> |
| 61 | Data descriptors defined here:<br> |
| 62 | <dl><dt><strong>__dict__</strong></dt> |
| 63 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 64 | </dl> |
| 65 | <dl><dt><strong>__weakref__</strong></dt> |
| 66 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 67 | </dl> |
| 68 | </td></tr></table> |
| 69 | </body></html> |