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 the status for a single creative.<br> |
| 18 | <br> |
| 19 | Args:<br> |
| 20 | adgroupId: string, The adgroup this creative belongs to. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 21 | trace: string, A parameter<br> |
| 22 | pp: string, A parameter<br> |
| 23 | strict: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 24 | buyerCreativeId: string, The buyer-specific id for this creative. (required)<br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 25 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 26 | accountId: integer, The id for the account that will serve this creative. (required)<br> |
| 27 | <br> |
| 28 | Returns:<br> |
| 29 | An object of the form<br> |
| 30 | <br> |
| 31 | {<br> |
| 32 | "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.<br> |
| 33 | 42,<br> |
| 34 | ],<br> |
| 35 | "advertiserName": "A String", # The name of the company being advertised in the creative.<br> |
| 36 | "adgroupId": "A String", # The pretargeting adgroup id that this creative will be associated with.<br> |
| 37 | "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.<br> |
| 38 | "width": 42, # Ad width.<br> |
| 39 | "attribute": [ # All attributes for the ads that may be shown from this snippet.<br> |
| 40 | 42,<br> |
| 41 | ],<br> |
| 42 | "kind": "adexchangebuyer#creative", # Resource type.<br> |
| 43 | "height": 42, # Ad height.<br> |
| 44 | "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.<br> |
| 45 | "A String",<br> |
| 46 | ],<br> |
| 47 | "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.<br> |
| 48 | "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.<br> |
| 49 | "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.<br> |
| 50 | "clickThroughUrl": [ # The set of destination urls for the snippet.<br> |
| 51 | "A String",<br> |
| 52 | ],<br> |
| 53 | "vendorType": [ # All vendor types for the ads that may be shown from this snippet.<br> |
| 54 | 42,<br> |
| 55 | ],<br> |
| 56 | "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.<br> |
| 57 | "A String",<br> |
| 58 | ],<br> |
| 59 | "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.<br> |
| 60 | 42,<br> |
| 61 | ],<br> |
| 62 | "accountId": 42, # Account id.<br> |
| 63 | }</tt></dd></dl> |
| 64 | |
| 65 | <dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Submit a new creative.<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 | "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.<br> |
| 73 | 42,<br> |
| 74 | ],<br> |
| 75 | "advertiserName": "A String", # The name of the company being advertised in the creative.<br> |
| 76 | "adgroupId": "A String", # The pretargeting adgroup id that this creative will be associated with.<br> |
| 77 | "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.<br> |
| 78 | "width": 42, # Ad width.<br> |
| 79 | "attribute": [ # All attributes for the ads that may be shown from this snippet.<br> |
| 80 | 42,<br> |
| 81 | ],<br> |
| 82 | "kind": "adexchangebuyer#creative", # Resource type.<br> |
| 83 | "height": 42, # Ad height.<br> |
| 84 | "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.<br> |
| 85 | "A String",<br> |
| 86 | ],<br> |
| 87 | "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.<br> |
| 88 | "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.<br> |
| 89 | "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.<br> |
| 90 | "clickThroughUrl": [ # The set of destination urls for the snippet.<br> |
| 91 | "A String",<br> |
| 92 | ],<br> |
| 93 | "vendorType": [ # All vendor types for the ads that may be shown from this snippet.<br> |
| 94 | 42,<br> |
| 95 | ],<br> |
| 96 | "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.<br> |
| 97 | "A String",<br> |
| 98 | ],<br> |
| 99 | "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.<br> |
| 100 | 42,<br> |
| 101 | ],<br> |
| 102 | "accountId": 42, # Account id.<br> |
| 103 | }<br> |
| 104 | <br> |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 105 | pp: string, A parameter<br> |
| 106 | trace: string, A parameter<br> |
| 107 | strict: string, A parameter<br> |
| 108 | userip: string, A parameter<br> |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 109 | <br> |
| 110 | Returns:<br> |
| 111 | An object of the form<br> |
| 112 | <br> |
| 113 | {<br> |
| 114 | "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.<br> |
| 115 | 42,<br> |
| 116 | ],<br> |
| 117 | "advertiserName": "A String", # The name of the company being advertised in the creative.<br> |
| 118 | "adgroupId": "A String", # The pretargeting adgroup id that this creative will be associated with.<br> |
| 119 | "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.<br> |
| 120 | "width": 42, # Ad width.<br> |
| 121 | "attribute": [ # All attributes for the ads that may be shown from this snippet.<br> |
| 122 | 42,<br> |
| 123 | ],<br> |
| 124 | "kind": "adexchangebuyer#creative", # Resource type.<br> |
| 125 | "height": 42, # Ad height.<br> |
| 126 | "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.<br> |
| 127 | "A String",<br> |
| 128 | ],<br> |
| 129 | "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.<br> |
| 130 | "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.<br> |
| 131 | "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.<br> |
| 132 | "clickThroughUrl": [ # The set of destination urls for the snippet.<br> |
| 133 | "A String",<br> |
| 134 | ],<br> |
| 135 | "vendorType": [ # All vendor types for the ads that may be shown from this snippet.<br> |
| 136 | 42,<br> |
| 137 | ],<br> |
| 138 | "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.<br> |
| 139 | "A String",<br> |
| 140 | ],<br> |
| 141 | "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.<br> |
| 142 | 42,<br> |
| 143 | ],<br> |
| 144 | "accountId": 42, # Account id.<br> |
| 145 | }</tt></dd></dl> |
| 146 | |
Joe Gregorio | 6621203 | 2012-06-14 09:10:14 -0400 | [diff] [blame] | 147 | <dl><dt><a name="Resource-list"><strong>list</strong></a> = method(self, **kwargs)</dt><dd><tt>Retrieves a list of the authenticated user's active creatives.<br> |
| 148 | <br> |
| 149 | Args:<br> |
| 150 | pp: string, A parameter<br> |
| 151 | trace: string, A parameter<br> |
| 152 | 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. Optional.<br> |
| 153 | maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional.<br> |
| 154 | strict: string, A parameter<br> |
| 155 | userip: string, A parameter<br> |
| 156 | <br> |
| 157 | Returns:<br> |
| 158 | An object of the form<br> |
| 159 | <br> |
| 160 | {<br> |
| 161 | "items": [ # A list of creatives.<br> |
| 162 | {<br> |
| 163 | "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.<br> |
| 164 | 42,<br> |
| 165 | ],<br> |
| 166 | "advertiserName": "A String", # The name of the company being advertised in the creative.<br> |
| 167 | "adgroupId": "A String", # The pretargeting adgroup id that this creative will be associated with.<br> |
| 168 | "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.<br> |
| 169 | "width": 42, # Ad width.<br> |
| 170 | "attribute": [ # All attributes for the ads that may be shown from this snippet.<br> |
| 171 | 42,<br> |
| 172 | ],<br> |
| 173 | "kind": "adexchangebuyer#creative", # Resource type.<br> |
| 174 | "height": 42, # Ad height.<br> |
| 175 | "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.<br> |
| 176 | "A String",<br> |
| 177 | ],<br> |
| 178 | "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.<br> |
| 179 | "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.<br> |
| 180 | "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.<br> |
| 181 | "clickThroughUrl": [ # The set of destination urls for the snippet.<br> |
| 182 | "A String",<br> |
| 183 | ],<br> |
| 184 | "vendorType": [ # All vendor types for the ads that may be shown from this snippet.<br> |
| 185 | 42,<br> |
| 186 | ],<br> |
| 187 | "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.<br> |
| 188 | "A String",<br> |
| 189 | ],<br> |
| 190 | "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.<br> |
| 191 | 42,<br> |
| 192 | ],<br> |
| 193 | "accountId": 42, # Account id.<br> |
| 194 | },<br> |
| 195 | ],<br> |
| 196 | "kind": "adexchangebuyer#creativesList", # Resource type.<br> |
| 197 | }</tt></dd></dl> |
| 198 | |
Joe Gregorio | 4189954 | 2012-04-23 09:02:05 -0400 | [diff] [blame] | 199 | <hr> |
| 200 | Data descriptors defined here:<br> |
| 201 | <dl><dt><strong>__dict__</strong></dt> |
| 202 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 203 | </dl> |
| 204 | <dl><dt><strong>__weakref__</strong></dt> |
| 205 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 206 | </dl> |
| 207 | </td></tr></table> |
| 208 | </body></html> |