Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -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-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Gets one account by ID.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | id: integer, The account id (required)<br> |
| 21 | <br> |
| 22 | Returns:<br> |
| 23 | An object of the form<br> |
| 24 | <br> |
| 25 | {<br> |
| 26 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 27 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 28 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 29 | {<br> |
| 30 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 31 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 32 | },<br> |
| 33 | ],<br> |
| 34 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 35 | "id": 42, # Account id.<br> |
| 36 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 37 | }</tt></dd></dl> |
| 38 | |
| 39 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the authenticated user's list of accounts.<br> |
| 40 | <br> |
| 41 | Args:<br> |
| 42 | <br> |
| 43 | Returns:<br> |
| 44 | An object of the form<br> |
| 45 | <br> |
| 46 | {<br> |
| 47 | "items": [ # A list of accounts.<br> |
| 48 | {<br> |
| 49 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 50 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 51 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 52 | {<br> |
| 53 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 54 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 55 | },<br> |
| 56 | ],<br> |
| 57 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 58 | "id": 42, # Account id.<br> |
| 59 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 60 | },<br> |
| 61 | ],<br> |
| 62 | "kind": "adexchangebuyer#accountsList", # Resource type.<br> |
| 63 | }</tt></dd></dl> |
| 64 | |
| 65 | <dl><dt><a name="Resource-patch"><strong>patch</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing account. This method supports patch semantics.<br> |
| 66 | <br> |
| 67 | Args:<br> |
| 68 | body: object, The request body. (required)<br> |
| 69 | The object takes the form of:<br> |
| 70 | <br> |
| 71 | {<br> |
| 72 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 73 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 74 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 75 | {<br> |
| 76 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 77 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 78 | },<br> |
| 79 | ],<br> |
| 80 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 81 | "id": 42, # Account id.<br> |
| 82 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 83 | }<br> |
| 84 | <br> |
| 85 | id: integer, The account id (required)<br> |
| 86 | <br> |
| 87 | Returns:<br> |
| 88 | An object of the form<br> |
| 89 | <br> |
| 90 | {<br> |
| 91 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 92 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 93 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 94 | {<br> |
| 95 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 96 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 97 | },<br> |
| 98 | ],<br> |
| 99 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 100 | "id": 42, # Account id.<br> |
| 101 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 102 | }</tt></dd></dl> |
| 103 | |
| 104 | <dl><dt><a name="Resource-update"><strong>update</strong></a> = method(self, **kwargs)</dt><dd><tt>Updates an existing account.<br> |
| 105 | <br> |
| 106 | Args:<br> |
| 107 | body: object, The request body. (required)<br> |
| 108 | The object takes the form of:<br> |
| 109 | <br> |
| 110 | {<br> |
| 111 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 112 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 113 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 114 | {<br> |
| 115 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 116 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 117 | },<br> |
| 118 | ],<br> |
| 119 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 120 | "id": 42, # Account id.<br> |
| 121 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 122 | }<br> |
| 123 | <br> |
| 124 | id: integer, The account id (required)<br> |
| 125 | <br> |
| 126 | Returns:<br> |
| 127 | An object of the form<br> |
| 128 | <br> |
| 129 | {<br> |
| 130 | "kind": "adexchangebuyer#account", # Resource type.<br> |
| 131 | "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.<br> |
| 132 | "bidderLocation": [ # Your bidder locations that have distinct URLs.<br> |
| 133 | {<br> |
| 134 | "url": "A String", # The URL to which the Ad Exchange will send bid requests.<br> |
| 135 | "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.<br> |
| 136 | },<br> |
| 137 | ],<br> |
| 138 | "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.<br> |
| 139 | "id": 42, # Account id.<br> |
| 140 | "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.<br> |
| 141 | }</tt></dd></dl> |
| 142 | |
| 143 | <hr> |
| 144 | Data descriptors defined here:<br> |
| 145 | <dl><dt><strong>__dict__</strong></dt> |
| 146 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 147 | </dl> |
| 148 | <dl><dt><strong>__weakref__</strong></dt> |
| 149 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 150 | </dl> |
| 151 | </td></tr></table> |
| 152 | </body></html> |