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 direct deal by ID.<br> |
| 18 | <br> |
| 19 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 20 | pp: string, A parameter<br> |
| 21 | trace: string, A parameter<br> |
| 22 | strict: string, A parameter<br> |
| 23 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 24 | id: string, The direct deal id (required)<br> |
| 25 | <br> |
| 26 | Returns:<br> |
| 27 | An object of the form<br> |
| 28 | <br> |
| 29 | {<br> |
| 30 | "advertiser": "A String", # The name of the advertiser this deal is for.<br> |
| 31 | "kind": "adexchangebuyer#directDeal", # Resource type.<br> |
| 32 | "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.<br> |
| 33 | "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code.<br> |
| 34 | "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.<br> |
| 35 | "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.<br> |
| 36 | "sellerNetwork": "A String", # The name of the publisher offering this direct deal.<br> |
| 37 | "id": "A String", # Deal id.<br> |
| 38 | "accountId": 42, # The account id of the buyer this deal is for.<br> |
| 39 | }</tt></dd></dl> |
| 40 | |
| 41 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves the authenticated user's list of direct deals.<br> |
| 42 | <br> |
| 43 | Args:<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 44 | pp: string, A parameter<br> |
| 45 | trace: string, A parameter<br> |
| 46 | strict: string, A parameter<br> |
| 47 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 48 | <br> |
| 49 | Returns:<br> |
| 50 | An object of the form<br> |
| 51 | <br> |
| 52 | {<br> |
| 53 | "kind": "adexchangebuyer#directDealsList", # Resource type.<br> |
| 54 | "directDeals": [ # A list of direct deals relevant for your account.<br> |
| 55 | {<br> |
| 56 | "advertiser": "A String", # The name of the advertiser this deal is for.<br> |
| 57 | "kind": "adexchangebuyer#directDeal", # Resource type.<br> |
| 58 | "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.<br> |
| 59 | "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code.<br> |
| 60 | "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.<br> |
| 61 | "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.<br> |
| 62 | "sellerNetwork": "A String", # The name of the publisher offering this direct deal.<br> |
| 63 | "id": "A String", # Deal id.<br> |
| 64 | "accountId": 42, # The account id of the buyer this deal is for.<br> |
| 65 | },<br> |
| 66 | ],<br> |
| 67 | }</tt></dd></dl> |
| 68 | |
| 69 | <hr> |
| 70 | Data descriptors defined here:<br> |
| 71 | <dl><dt><strong>__dict__</strong></dt> |
| 72 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 73 | </dl> |
| 74 | <dl><dt><strong>__weakref__</strong></dt> |
| 75 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 76 | </dl> |
| 77 | </td></tr></table> |
| 78 | </body></html> |