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-customchannels"><strong><a href="adsense.v1.1.adunits.customchannels.html">customchannels</a></strong></a> = methodResource(self)</dt><dd><tt>A collection resource.</tt></dd></dl> |
| 18 | |
| 19 | <dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets the specified ad unit in the specified ad client.<br> |
| 20 | <br> |
| 21 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 22 | pp: string, A parameter<br> |
| 23 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 24 | adClientId: string, Ad client for which to get the ad unit. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 25 | strict: string, A parameter<br> |
| 26 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 27 | adUnitId: string, Ad unit to retrieve. (required)<br> |
| 28 | <br> |
| 29 | Returns:<br> |
| 30 | An object of the form<br> |
| 31 | <br> |
| 32 | {<br> |
| 33 | "status": "A String", # Status of this ad unit. Possible values are:<br> |
| 34 | # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.<br> |
| 35 | #<br> |
| 36 | # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.<br> |
| 37 | #<br> |
| 38 | # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.<br> |
| 39 | "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.<br> |
| 40 | "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.<br> |
| 41 | "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> |
| 42 | "name": "A String", # Name of this ad unit.<br> |
| 43 | }</tt></dd></dl> |
| 44 | |
| 45 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>List all ad units in the specified ad client for this AdSense account.<br> |
| 46 | <br> |
| 47 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 48 | pp: string, A parameter<br> |
| 49 | trace: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 50 | 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> |
| 51 | includeInactive: boolean, Whether to include inactive ad units. Default: true.<br> |
| 52 | adClientId: string, Ad client for which to list ad units. (required)<br> |
| 53 | maxResults: integer, The maximum number of ad units to include in the response, used for paging.<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 54 | strict: string, A parameter<br> |
| 55 | userip: string, A parameter<br> |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 56 | <br> |
| 57 | Returns:<br> |
| 58 | An object of the form<br> |
| 59 | <br> |
| 60 | {<br> |
| 61 | "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> |
| 62 | "items": [ # The ad units returned in this list response.<br> |
| 63 | {<br> |
| 64 | "status": "A String", # Status of this ad unit. Possible values are:<br> |
| 65 | # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.<br> |
| 66 | #<br> |
| 67 | # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.<br> |
| 68 | #<br> |
| 69 | # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.<br> |
| 70 | "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.<br> |
| 71 | "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.<br> |
| 72 | "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> |
| 73 | "name": "A String", # Name of this ad unit.<br> |
| 74 | },<br> |
| 75 | ],<br> |
| 76 | "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.<br> |
| 77 | "etag": "A String", # ETag of this response for caching purposes.<br> |
| 78 | }</tt></dd></dl> |
| 79 | |
| 80 | <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> |
| 81 | <br> |
| 82 | Args:<br> |
| 83 | previous_request: The request for the previous page.<br> |
| 84 | previous_response: The response from the request for the previous page.<br> |
| 85 | <br> |
| 86 | Returns:<br> |
| 87 | A request object that you can call 'execute()' on to request the next<br> |
| 88 | page. Returns None if there are no more items in the collection.</tt></dd></dl> |
| 89 | |
| 90 | <hr> |
| 91 | Data descriptors defined here:<br> |
| 92 | <dl><dt><strong>__dict__</strong></dt> |
| 93 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 94 | </dl> |
| 95 | <dl><dt><strong>__weakref__</strong></dt> |
| 96 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 97 | </dl> |
| 98 | </td></tr></table> |
| 99 | </body></html> |