PageRenderTime 66ms CodeModel.GetById 30ms RepoModel.GetById 0ms app.codeStats 1ms

/Lib/google-api-php-client/contrib/Google_GanService.php

https://bitbucket.org/addictionworldwide/google-bundle-for-symfony2
PHP | 1605 lines | 1366 code | 34 blank | 205 comment | 18 complexity | 78df9910ea63e74f3225678f364712d9 MD5 | raw file
Possible License(s): Apache-2.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "advertisers" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $ganService = new Google_GanService(...);
  20. * $advertisers = $ganService->advertisers;
  21. * </code>
  22. */
  23. class Google_AdvertisersServiceResource extends Google_ServiceResource {
  24. /**
  25. * Retrieves data about all advertisers that the requesting advertiser/publisher has access to.
  26. * (advertisers.list)
  27. *
  28. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  29. * @param string $roleId The ID of the requesting advertiser or publisher.
  30. * @param array $optParams Optional parameters.
  31. *
  32. * @opt_param string relationshipStatus Filters out all advertisers for which do not have the given relationship status with the requesting publisher.
  33. * @opt_param double minSevenDayEpc Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  34. * @opt_param string advertiserCategory Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.
  35. * @opt_param double minNinetyDayEpc Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  36. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  37. * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
  38. * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.
  39. * @return Google_Advertisers
  40. */
  41. public function listAdvertisers($role, $roleId, $optParams = array()) {
  42. $params = array('role' => $role, 'roleId' => $roleId);
  43. $params = array_merge($params, $optParams);
  44. $data = $this->__call('list', array($params));
  45. if ($this->useObjects()) {
  46. return new Google_Advertisers($data);
  47. } else {
  48. return $data;
  49. }
  50. }
  51. /**
  52. * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
  53. * to it. Only publishers can lookup advertisers. Advertisers can request information about
  54. * themselves by omitting the advertiserId query parameter. (advertisers.get)
  55. *
  56. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  57. * @param string $roleId The ID of the requesting advertiser or publisher.
  58. * @param array $optParams Optional parameters.
  59. *
  60. * @opt_param string advertiserId The ID of the advertiser to look up. Optional.
  61. * @return Google_Advertiser
  62. */
  63. public function get($role, $roleId, $optParams = array()) {
  64. $params = array('role' => $role, 'roleId' => $roleId);
  65. $params = array_merge($params, $optParams);
  66. $data = $this->__call('get', array($params));
  67. if ($this->useObjects()) {
  68. return new Google_Advertiser($data);
  69. } else {
  70. return $data;
  71. }
  72. }
  73. }
  74. /**
  75. * The "ccOffers" collection of methods.
  76. * Typical usage is:
  77. * <code>
  78. * $ganService = new Google_GanService(...);
  79. * $ccOffers = $ganService->ccOffers;
  80. * </code>
  81. */
  82. class Google_CcOffersServiceResource extends Google_ServiceResource {
  83. /**
  84. * Retrieves credit card offers for the given publisher. (ccOffers.list)
  85. *
  86. * @param string $publisher The ID of the publisher in question.
  87. * @param array $optParams Optional parameters.
  88. *
  89. * @opt_param string advertiser The advertiser ID of a card issuer whose offers to include. Optional, may be repeated.
  90. * @opt_param string projection The set of fields to return.
  91. * @return Google_CcOffers
  92. */
  93. public function listCcOffers($publisher, $optParams = array()) {
  94. $params = array('publisher' => $publisher);
  95. $params = array_merge($params, $optParams);
  96. $data = $this->__call('list', array($params));
  97. if ($this->useObjects()) {
  98. return new Google_CcOffers($data);
  99. } else {
  100. return $data;
  101. }
  102. }
  103. }
  104. /**
  105. * The "events" collection of methods.
  106. * Typical usage is:
  107. * <code>
  108. * $ganService = new Google_GanService(...);
  109. * $events = $ganService->events;
  110. * </code>
  111. */
  112. class Google_EventsServiceResource extends Google_ServiceResource {
  113. /**
  114. * Retrieves event data for a given advertiser/publisher. (events.list)
  115. *
  116. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  117. * @param string $roleId The ID of the requesting advertiser or publisher.
  118. * @param array $optParams Optional parameters.
  119. *
  120. * @opt_param string orderId Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
  121. * @opt_param string sku Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
  122. * @opt_param string eventDateMax Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
  123. * @opt_param string type Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
  124. * @opt_param string linkId Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
  125. * @opt_param string modifyDateMin Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.
  126. * @opt_param string eventDateMin Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
  127. * @opt_param string memberId Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
  128. * @opt_param string maxResults Max number of offers to return in this page. Optional. Defaults to 20.
  129. * @opt_param string advertiserId Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
  130. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  131. * @opt_param string productCategory Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
  132. * @opt_param string chargeType Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
  133. * @opt_param string modifyDateMax Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.
  134. * @opt_param string status Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
  135. * @opt_param string publisherId Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
  136. * @return Google_Events
  137. */
  138. public function listEvents($role, $roleId, $optParams = array()) {
  139. $params = array('role' => $role, 'roleId' => $roleId);
  140. $params = array_merge($params, $optParams);
  141. $data = $this->__call('list', array($params));
  142. if ($this->useObjects()) {
  143. return new Google_Events($data);
  144. } else {
  145. return $data;
  146. }
  147. }
  148. }
  149. /**
  150. * The "links" collection of methods.
  151. * Typical usage is:
  152. * <code>
  153. * $ganService = new Google_GanService(...);
  154. * $links = $ganService->links;
  155. * </code>
  156. */
  157. class Google_LinksServiceResource extends Google_ServiceResource {
  158. /**
  159. * Inserts a new link. (links.insert)
  160. *
  161. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  162. * @param string $roleId The ID of the requesting advertiser or publisher.
  163. * @param Google_Link $postBody
  164. * @param array $optParams Optional parameters.
  165. * @return Google_Link
  166. */
  167. public function insert($role, $roleId, Google_Link $postBody, $optParams = array()) {
  168. $params = array('role' => $role, 'roleId' => $roleId, 'postBody' => $postBody);
  169. $params = array_merge($params, $optParams);
  170. $data = $this->__call('insert', array($params));
  171. if ($this->useObjects()) {
  172. return new Google_Link($data);
  173. } else {
  174. return $data;
  175. }
  176. }
  177. /**
  178. * Retrieves all links that match the query parameters. (links.list)
  179. *
  180. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  181. * @param string $roleId The ID of the requesting advertiser or publisher.
  182. * @param array $optParams Optional parameters.
  183. *
  184. * @opt_param string linkType The type of the link.
  185. * @opt_param string startDateMin The beginning of the start date range.
  186. * @opt_param string assetSize The size of the given asset.
  187. * @opt_param string relationshipStatus The status of the relationship.
  188. * @opt_param string advertiserCategory The advertiser's primary vertical.
  189. * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
  190. * @opt_param string advertiserId Limits the resulting links to the ones belonging to the listed advertisers.
  191. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  192. * @opt_param string startDateMax The end of the start date range.
  193. * @opt_param string promotionType The promotion type.
  194. * @opt_param string authorship The role of the author of the link.
  195. * @return Google_Links
  196. */
  197. public function listLinks($role, $roleId, $optParams = array()) {
  198. $params = array('role' => $role, 'roleId' => $roleId);
  199. $params = array_merge($params, $optParams);
  200. $data = $this->__call('list', array($params));
  201. if ($this->useObjects()) {
  202. return new Google_Links($data);
  203. } else {
  204. return $data;
  205. }
  206. }
  207. /**
  208. * Retrieves data about a single link if the requesting advertiser/publisher has access to it.
  209. * Advertisers can look up their own links. Publishers can look up visible links or links belonging
  210. * to advertisers they are in a relationship with. (links.get)
  211. *
  212. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  213. * @param string $roleId The ID of the requesting advertiser or publisher.
  214. * @param string $linkId The ID of the link to look up.
  215. * @param array $optParams Optional parameters.
  216. * @return Google_Link
  217. */
  218. public function get($role, $roleId, $linkId, $optParams = array()) {
  219. $params = array('role' => $role, 'roleId' => $roleId, 'linkId' => $linkId);
  220. $params = array_merge($params, $optParams);
  221. $data = $this->__call('get', array($params));
  222. if ($this->useObjects()) {
  223. return new Google_Link($data);
  224. } else {
  225. return $data;
  226. }
  227. }
  228. }
  229. /**
  230. * The "publishers" collection of methods.
  231. * Typical usage is:
  232. * <code>
  233. * $ganService = new Google_GanService(...);
  234. * $publishers = $ganService->publishers;
  235. * </code>
  236. */
  237. class Google_PublishersServiceResource extends Google_ServiceResource {
  238. /**
  239. * Retrieves data about all publishers that the requesting advertiser/publisher has access to.
  240. * (publishers.list)
  241. *
  242. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  243. * @param string $roleId The ID of the requesting advertiser or publisher.
  244. * @param array $optParams Optional parameters.
  245. *
  246. * @opt_param string publisherCategory Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
  247. * @opt_param string relationshipStatus Filters out all publishers for which do not have the given relationship status with the requesting publisher.
  248. * @opt_param double minSevenDayEpc Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
  249. * @opt_param double minNinetyDayEpc Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
  250. * @opt_param string pageToken The value of 'nextPageToken' from the previous page. Optional.
  251. * @opt_param string maxResults Max number of items to return in this page. Optional. Defaults to 20.
  252. * @opt_param int minPayoutRank A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
  253. * @return Google_Publishers
  254. */
  255. public function listPublishers($role, $roleId, $optParams = array()) {
  256. $params = array('role' => $role, 'roleId' => $roleId);
  257. $params = array_merge($params, $optParams);
  258. $data = $this->__call('list', array($params));
  259. if ($this->useObjects()) {
  260. return new Google_Publishers($data);
  261. } else {
  262. return $data;
  263. }
  264. }
  265. /**
  266. * Retrieves data about a single advertiser if that the requesting advertiser/publisher has access
  267. * to it. Only advertisers can look up publishers. Publishers can request information about
  268. * themselves by omitting the publisherId query parameter. (publishers.get)
  269. *
  270. * @param string $role The role of the requester. Valid values: 'advertisers' or 'publishers'.
  271. * @param string $roleId The ID of the requesting advertiser or publisher.
  272. * @param array $optParams Optional parameters.
  273. *
  274. * @opt_param string publisherId The ID of the publisher to look up. Optional.
  275. * @return Google_Publisher
  276. */
  277. public function get($role, $roleId, $optParams = array()) {
  278. $params = array('role' => $role, 'roleId' => $roleId);
  279. $params = array_merge($params, $optParams);
  280. $data = $this->__call('get', array($params));
  281. if ($this->useObjects()) {
  282. return new Google_Publisher($data);
  283. } else {
  284. return $data;
  285. }
  286. }
  287. }
  288. /**
  289. * Service definition for Google_Gan (v1beta1).
  290. *
  291. * <p>
  292. * Lets you have programmatic access to your Google Affiliate Network data.
  293. * </p>
  294. *
  295. * <p>
  296. * For more information about this service, see the
  297. * <a href="https://code.google.com/apis/gan/" target="_blank">API Documentation</a>
  298. * </p>
  299. *
  300. * @author Google, Inc.
  301. */
  302. class Google_GanService extends Google_Service {
  303. public $advertisers;
  304. public $ccOffers;
  305. public $events;
  306. public $links;
  307. public $publishers;
  308. /**
  309. * Constructs the internal representation of the Gan service.
  310. *
  311. * @param Google_Client $client
  312. */
  313. public function __construct(Google_Client $client) {
  314. $this->servicePath = 'gan/v1beta1/';
  315. $this->version = 'v1beta1';
  316. $this->serviceName = 'gan';
  317. $client->addService($this->serviceName, $this->version);
  318. $this->advertisers = new Google_AdvertisersServiceResource($this, $this->serviceName, 'advertisers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "advertiserCategory": {"type": "string", "location": "query"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.advertisers.list", "httpMethod": "GET", "path": "{role}/{roleId}/advertisers", "response": {"$ref": "Advertisers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiserId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "id": "gan.advertisers.get", "httpMethod": "GET", "path": "{role}/{roleId}/advertiser", "response": {"$ref": "Advertiser"}}}}', true));
  319. $this->ccOffers = new Google_CcOffersServiceResource($this, $this->serviceName, 'ccOffers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"advertiser": {"repeated": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "summary"], "type": "string", "location": "query"}, "publisher": {"required": true, "type": "string", "location": "path"}}, "id": "gan.ccOffers.list", "httpMethod": "GET", "path": "publishers/{publisher}/ccOffers", "response": {"$ref": "CcOffers"}}}}', true));
  320. $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"orderId": {"type": "string", "location": "query"}, "sku": {"type": "string", "location": "query"}, "eventDateMax": {"type": "string", "location": "query"}, "type": {"enum": ["action", "charge", "transaction"], "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "linkId": {"type": "string", "location": "query"}, "status": {"enum": ["active", "canceled"], "type": "string", "location": "query"}, "eventDateMin": {"type": "string", "location": "query"}, "memberId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserId": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "productCategory": {"type": "string", "location": "query"}, "chargeType": {"enum": ["credit", "debit", "monthly_minimum", "other", "slotting_fee", "tier_bonus"], "type": "string", "location": "query"}, "modifyDateMin": {"type": "string", "location": "query"}, "modifyDateMax": {"type": "string", "location": "query"}, "publisherId": {"type": "string", "location": "query"}}, "id": "gan.events.list", "httpMethod": "GET", "path": "{role}/{roleId}/events", "response": {"$ref": "Events"}}}}', true));
  321. $this->links = new Google_LinksServiceResource($this, $this->serviceName, 'links', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/gan"], "parameters": {"roleId": {"required": true, "type": "string", "location": "path"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}}, "request": {"$ref": "Link"}, "response": {"$ref": "Link"}, "httpMethod": "POST", "path": "{role}/{roleId}/link", "id": "gan.links.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkType": {"enum": ["banner", "text"], "type": "string", "location": "query"}, "startDateMin": {"type": "string", "location": "query"}, "assetSize": {"repeated": true, "type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}, "relationshipStatus": {"enum": ["approved", "available"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "advertiserCategory": {"repeated": true, "enum": ["apparel_accessories", "appliances_electronics", "auto_dealer", "automotive", "babies_kids", "blogs_personal_sites", "books_magazines", "computers", "dating", "department_stores", "education", "employment", "financial_credit_cards", "financial_other", "flowers_gifts", "grocery", "health_beauty", "home_garden", "hosting_domain", "internet_providers", "legal", "media_entertainment", "medical", "movies_games", "music", "nonprofit", "office_supplies", "online_games", "outdoor", "pets", "real_estate", "restaurants", "sport_fitness", "telecom", "ticketing", "toys_hobbies", "travel", "utilities", "wholesale_relationship", "wine_spirits"], "type": "string", "location": "query"}, "advertiserId": {"repeated": true, "type": "string", "location": "query", "format": "int64"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "startDateMax": {"type": "string", "location": "query"}, "promotionType": {"repeated": true, "enum": ["buy_get", "coupon", "free_gift", "free_gift_wrap", "free_shipping", "none", "ongoing", "percent_off", "price_cut", "product_promotion", "sale", "sweepstakes"], "type": "string", "location": "query"}, "authorship": {"enum": ["advertiser", "publisher"], "type": "string", "location": "query"}}, "id": "gan.links.list", "httpMethod": "GET", "path": "{role}/{roleId}/links", "response": {"$ref": "Links"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"linkId": {"required": true, "type": "string", "location": "path", "format": "int64"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.links.get", "httpMethod": "GET", "path": "{role}/{roleId}/link/{linkId}", "response": {"$ref": "Link"}}}}', true));
  322. $this->publishers = new Google_PublishersServiceResource($this, $this->serviceName, 'publishers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"publisherCategory": {"type": "string", "location": "query"}, "relationshipStatus": {"enum": ["approved", "available", "deactivated", "declined", "pending"], "type": "string", "location": "query"}, "minSevenDayEpc": {"type": "number", "location": "query", "format": "double"}, "minNinetyDayEpc": {"type": "number", "location": "query", "format": "double"}, "pageToken": {"type": "string", "location": "query"}, "role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "100", "format": "uint32"}, "roleId": {"required": true, "type": "string", "location": "path"}, "minPayoutRank": {"location": "query", "minimum": "1", "type": "integer", "maximum": "4", "format": "int32"}}, "id": "gan.publishers.list", "httpMethod": "GET", "path": "{role}/{roleId}/publishers", "response": {"$ref": "Publishers"}}, "get": {"scopes": ["https://www.googleapis.com/auth/gan", "https://www.googleapis.com/auth/gan.readonly"], "parameters": {"role": {"required": true, "type": "string", "location": "path", "enum": ["advertisers", "publishers"]}, "publisherId": {"type": "string", "location": "query"}, "roleId": {"required": true, "type": "string", "location": "path"}}, "id": "gan.publishers.get", "httpMethod": "GET", "path": "{role}/{roleId}/publisher", "response": {"$ref": "Publisher"}}}}', true));
  323. }
  324. }
  325. class Google_Advertiser extends Google_Model {
  326. public $category;
  327. public $contactEmail;
  328. public $kind;
  329. public $siteUrl;
  330. public $contactPhone;
  331. public $description;
  332. public $payoutRank;
  333. public $defaultLinkId;
  334. protected $__epcSevenDayAverageType = 'Google_Money';
  335. protected $__epcSevenDayAverageDataType = '';
  336. public $epcSevenDayAverage;
  337. public $commissionDuration;
  338. public $status;
  339. protected $__epcNinetyDayAverageType = 'Google_Money';
  340. protected $__epcNinetyDayAverageDataType = '';
  341. public $epcNinetyDayAverage;
  342. public $allowPublisherCreatedLinks;
  343. protected $__itemType = 'Google_Advertiser';
  344. protected $__itemDataType = '';
  345. public $item;
  346. public $joinDate;
  347. public $logoUrl;
  348. public $id;
  349. public $productFeedsEnabled;
  350. public $name;
  351. public function setCategory($category) {
  352. $this->category = $category;
  353. }
  354. public function getCategory() {
  355. return $this->category;
  356. }
  357. public function setContactEmail($contactEmail) {
  358. $this->contactEmail = $contactEmail;
  359. }
  360. public function getContactEmail() {
  361. return $this->contactEmail;
  362. }
  363. public function setKind($kind) {
  364. $this->kind = $kind;
  365. }
  366. public function getKind() {
  367. return $this->kind;
  368. }
  369. public function setSiteUrl($siteUrl) {
  370. $this->siteUrl = $siteUrl;
  371. }
  372. public function getSiteUrl() {
  373. return $this->siteUrl;
  374. }
  375. public function setContactPhone($contactPhone) {
  376. $this->contactPhone = $contactPhone;
  377. }
  378. public function getContactPhone() {
  379. return $this->contactPhone;
  380. }
  381. public function setDescription($description) {
  382. $this->description = $description;
  383. }
  384. public function getDescription() {
  385. return $this->description;
  386. }
  387. public function setPayoutRank($payoutRank) {
  388. $this->payoutRank = $payoutRank;
  389. }
  390. public function getPayoutRank() {
  391. return $this->payoutRank;
  392. }
  393. public function setDefaultLinkId($defaultLinkId) {
  394. $this->defaultLinkId = $defaultLinkId;
  395. }
  396. public function getDefaultLinkId() {
  397. return $this->defaultLinkId;
  398. }
  399. public function setEpcSevenDayAverage(Google_Money $epcSevenDayAverage) {
  400. $this->epcSevenDayAverage = $epcSevenDayAverage;
  401. }
  402. public function getEpcSevenDayAverage() {
  403. return $this->epcSevenDayAverage;
  404. }
  405. public function setCommissionDuration($commissionDuration) {
  406. $this->commissionDuration = $commissionDuration;
  407. }
  408. public function getCommissionDuration() {
  409. return $this->commissionDuration;
  410. }
  411. public function setStatus($status) {
  412. $this->status = $status;
  413. }
  414. public function getStatus() {
  415. return $this->status;
  416. }
  417. public function setEpcNinetyDayAverage(Google_Money $epcNinetyDayAverage) {
  418. $this->epcNinetyDayAverage = $epcNinetyDayAverage;
  419. }
  420. public function getEpcNinetyDayAverage() {
  421. return $this->epcNinetyDayAverage;
  422. }
  423. public function setAllowPublisherCreatedLinks($allowPublisherCreatedLinks) {
  424. $this->allowPublisherCreatedLinks = $allowPublisherCreatedLinks;
  425. }
  426. public function getAllowPublisherCreatedLinks() {
  427. return $this->allowPublisherCreatedLinks;
  428. }
  429. public function setItem(Google_Advertiser $item) {
  430. $this->item = $item;
  431. }
  432. public function getItem() {
  433. return $this->item;
  434. }
  435. public function setJoinDate($joinDate) {
  436. $this->joinDate = $joinDate;
  437. }
  438. public function getJoinDate() {
  439. return $this->joinDate;
  440. }
  441. public function setLogoUrl($logoUrl) {
  442. $this->logoUrl = $logoUrl;
  443. }
  444. public function getLogoUrl() {
  445. return $this->logoUrl;
  446. }
  447. public function setId($id) {
  448. $this->id = $id;
  449. }
  450. public function getId() {
  451. return $this->id;
  452. }
  453. public function setProductFeedsEnabled($productFeedsEnabled) {
  454. $this->productFeedsEnabled = $productFeedsEnabled;
  455. }
  456. public function getProductFeedsEnabled() {
  457. return $this->productFeedsEnabled;
  458. }
  459. public function setName($name) {
  460. $this->name = $name;
  461. }
  462. public function getName() {
  463. return $this->name;
  464. }
  465. }
  466. class Google_Advertisers extends Google_Model {
  467. public $nextPageToken;
  468. protected $__itemsType = 'Google_Advertiser';
  469. protected $__itemsDataType = 'array';
  470. public $items;
  471. public $kind;
  472. public function setNextPageToken($nextPageToken) {
  473. $this->nextPageToken = $nextPageToken;
  474. }
  475. public function getNextPageToken() {
  476. return $this->nextPageToken;
  477. }
  478. public function setItems($items) {
  479. $this->assertIsArray($items, 'Google_Advertiser', __METHOD__);
  480. $this->items = $items;
  481. }
  482. public function getItems() {
  483. return $this->items;
  484. }
  485. public function setKind($kind) {
  486. $this->kind = $kind;
  487. }
  488. public function getKind() {
  489. return $this->kind;
  490. }
  491. }
  492. class Google_CcOffer extends Google_Model {
  493. public $luggageInsurance;
  494. public $creditLimitMin;
  495. public $cardName;
  496. public $creditLimitMax;
  497. public $gracePeriodDisplay;
  498. public $offerId;
  499. public $rewardUnit;
  500. public $minPurchaseRate;
  501. public $cardBenefits;
  502. protected $__rewardsType = 'Google_CcOfferRewards';
  503. protected $__rewardsDataType = 'array';
  504. public $rewards;
  505. public $offersImmediateCashReward;
  506. public $travelInsurance;
  507. public $returnedPaymentFee;
  508. public $kind;
  509. public $issuer;
  510. public $maxPurchaseRate;
  511. public $minimumFinanceCharge;
  512. public $existingCustomerOnly;
  513. public $annualFeeDisplay;
  514. public $initialSetupAndProcessingFee;
  515. public $issuerId;
  516. public $purchaseRateAdditionalDetails;
  517. public $prohibitedCategories;
  518. public $fraudLiability;
  519. public $cashAdvanceTerms;
  520. public $landingPageUrl;
  521. public $introCashAdvanceTerms;
  522. public $rewardsExpire;
  523. public $introPurchaseTerms;
  524. protected $__defaultFeesType = 'Google_CcOfferDefaultFees';
  525. protected $__defaultFeesDataType = 'array';
  526. public $defaultFees;
  527. public $extendedWarranty;
  528. public $emergencyInsurance;
  529. public $firstYearAnnualFee;
  530. public $trackingUrl;
  531. public $latePaymentFee;
  532. public $overLimitFee;
  533. public $cardType;
  534. public $approvedCategories;
  535. public $rewardPartner;
  536. public $introBalanceTransferTerms;
  537. public $foreignCurrencyTransactionFee;
  538. public $annualFee;
  539. public $issuerWebsite;
  540. public $variableRatesUpdateFrequency;
  541. public $carRentalInsurance;
  542. public $additionalCardBenefits;
  543. public $ageMinimum;
  544. public $balanceComputationMethod;
  545. public $aprDisplay;
  546. public $additionalCardHolderFee;
  547. public $variableRatesLastUpdated;
  548. public $network;
  549. public $purchaseRateType;
  550. public $statementCopyFee;
  551. public $rewardsHaveBlackoutDates;
  552. public $creditRatingDisplay;
  553. public $flightAccidentInsurance;
  554. public $annualRewardMaximum;
  555. public $balanceTransferTerms;
  556. protected $__bonusRewardsType = 'Google_CcOfferBonusRewards';
  557. protected $__bonusRewardsDataType = 'array';
  558. public $bonusRewards;
  559. public $imageUrl;
  560. public $ageMinimumDetails;
  561. public $disclaimer;
  562. public function setLuggageInsurance($luggageInsurance) {
  563. $this->luggageInsurance = $luggageInsurance;
  564. }
  565. public function getLuggageInsurance() {
  566. return $this->luggageInsurance;
  567. }
  568. public function setCreditLimitMin($creditLimitMin) {
  569. $this->creditLimitMin = $creditLimitMin;
  570. }
  571. public function getCreditLimitMin() {
  572. return $this->creditLimitMin;
  573. }
  574. public function setCardName($cardName) {
  575. $this->cardName = $cardName;
  576. }
  577. public function getCardName() {
  578. return $this->cardName;
  579. }
  580. public function setCreditLimitMax($creditLimitMax) {
  581. $this->creditLimitMax = $creditLimitMax;
  582. }
  583. public function getCreditLimitMax() {
  584. return $this->creditLimitMax;
  585. }
  586. public function setGracePeriodDisplay($gracePeriodDisplay) {
  587. $this->gracePeriodDisplay = $gracePeriodDisplay;
  588. }
  589. public function getGracePeriodDisplay() {
  590. return $this->gracePeriodDisplay;
  591. }
  592. public function setOfferId($offerId) {
  593. $this->offerId = $offerId;
  594. }
  595. public function getOfferId() {
  596. return $this->offerId;
  597. }
  598. public function setRewardUnit($rewardUnit) {
  599. $this->rewardUnit = $rewardUnit;
  600. }
  601. public function getRewardUnit() {
  602. return $this->rewardUnit;
  603. }
  604. public function setMinPurchaseRate($minPurchaseRate) {
  605. $this->minPurchaseRate = $minPurchaseRate;
  606. }
  607. public function getMinPurchaseRate() {
  608. return $this->minPurchaseRate;
  609. }
  610. public function setCardBenefits($cardBenefits) {
  611. $this->cardBenefits = $cardBenefits;
  612. }
  613. public function getCardBenefits() {
  614. return $this->cardBenefits;
  615. }
  616. public function setRewards($rewards) {
  617. $this->assertIsArray($rewards, 'Google_CcOfferRewards', __METHOD__);
  618. $this->rewards = $rewards;
  619. }
  620. public function getRewards() {
  621. return $this->rewards;
  622. }
  623. public function setOffersImmediateCashReward($offersImmediateCashReward) {
  624. $this->offersImmediateCashReward = $offersImmediateCashReward;
  625. }
  626. public function getOffersImmediateCashReward() {
  627. return $this->offersImmediateCashReward;
  628. }
  629. public function setTravelInsurance($travelInsurance) {
  630. $this->travelInsurance = $travelInsurance;
  631. }
  632. public function getTravelInsurance() {
  633. return $this->travelInsurance;
  634. }
  635. public function setReturnedPaymentFee($returnedPaymentFee) {
  636. $this->returnedPaymentFee = $returnedPaymentFee;
  637. }
  638. public function getReturnedPaymentFee() {
  639. return $this->returnedPaymentFee;
  640. }
  641. public function setKind($kind) {
  642. $this->kind = $kind;
  643. }
  644. public function getKind() {
  645. return $this->kind;
  646. }
  647. public function setIssuer($issuer) {
  648. $this->issuer = $issuer;
  649. }
  650. public function getIssuer() {
  651. return $this->issuer;
  652. }
  653. public function setMaxPurchaseRate($maxPurchaseRate) {
  654. $this->maxPurchaseRate = $maxPurchaseRate;
  655. }
  656. public function getMaxPurchaseRate() {
  657. return $this->maxPurchaseRate;
  658. }
  659. public function setMinimumFinanceCharge($minimumFinanceCharge) {
  660. $this->minimumFinanceCharge = $minimumFinanceCharge;
  661. }
  662. public function getMinimumFinanceCharge() {
  663. return $this->minimumFinanceCharge;
  664. }
  665. public function setExistingCustomerOnly($existingCustomerOnly) {
  666. $this->existingCustomerOnly = $existingCustomerOnly;
  667. }
  668. public function getExistingCustomerOnly() {
  669. return $this->existingCustomerOnly;
  670. }
  671. public function setAnnualFeeDisplay($annualFeeDisplay) {
  672. $this->annualFeeDisplay = $annualFeeDisplay;
  673. }
  674. public function getAnnualFeeDisplay() {
  675. return $this->annualFeeDisplay;
  676. }
  677. public function setInitialSetupAndProcessingFee($initialSetupAndProcessingFee) {
  678. $this->initialSetupAndProcessingFee = $initialSetupAndProcessingFee;
  679. }
  680. public function getInitialSetupAndProcessingFee() {
  681. return $this->initialSetupAndProcessingFee;
  682. }
  683. public function setIssuerId($issuerId) {
  684. $this->issuerId = $issuerId;
  685. }
  686. public function getIssuerId() {
  687. return $this->issuerId;
  688. }
  689. public function setPurchaseRateAdditionalDetails($purchaseRateAdditionalDetails) {
  690. $this->purchaseRateAdditionalDetails = $purchaseRateAdditionalDetails;
  691. }
  692. public function getPurchaseRateAdditionalDetails() {
  693. return $this->purchaseRateAdditionalDetails;
  694. }
  695. public function setProhibitedCategories($prohibitedCategories) {
  696. $this->prohibitedCategories = $prohibitedCategories;
  697. }
  698. public function getProhibitedCategories() {
  699. return $this->prohibitedCategories;
  700. }
  701. public function setFraudLiability($fraudLiability) {
  702. $this->fraudLiability = $fraudLiability;
  703. }
  704. public function getFraudLiability() {
  705. return $this->fraudLiability;
  706. }
  707. public function setCashAdvanceTerms($cashAdvanceTerms) {
  708. $this->cashAdvanceTerms = $cashAdvanceTerms;
  709. }
  710. public function getCashAdvanceTerms() {
  711. return $this->cashAdvanceTerms;
  712. }
  713. public function setLandingPageUrl($landingPageUrl) {
  714. $this->landingPageUrl = $landingPageUrl;
  715. }
  716. public function getLandingPageUrl() {
  717. return $this->landingPageUrl;
  718. }
  719. public function setIntroCashAdvanceTerms($introCashAdvanceTerms) {
  720. $this->introCashAdvanceTerms = $introCashAdvanceTerms;
  721. }
  722. public function getIntroCashAdvanceTerms() {
  723. return $this->introCashAdvanceTerms;
  724. }
  725. public function setRewardsExpire($rewardsExpire) {
  726. $this->rewardsExpire = $rewardsExpire;
  727. }
  728. public function getRewardsExpire() {
  729. return $this->rewardsExpire;
  730. }
  731. public function setIntroPurchaseTerms($introPurchaseTerms) {
  732. $this->introPurchaseTerms = $introPurchaseTerms;
  733. }
  734. public function getIntroPurchaseTerms() {
  735. return $this->introPurchaseTerms;
  736. }
  737. public function setDefaultFees($defaultFees) {
  738. $this->assertIsArray($defaultFees, 'Google_CcOfferDefaultFees', __METHOD__);
  739. $this->defaultFees = $defaultFees;
  740. }
  741. public function getDefaultFees() {
  742. return $this->defaultFees;
  743. }
  744. public function setExtendedWarranty($extendedWarranty) {
  745. $this->extendedWarranty = $extendedWarranty;
  746. }
  747. public function getExtendedWarranty() {
  748. return $this->extendedWarranty;
  749. }
  750. public function setEmergencyInsurance($emergencyInsurance) {
  751. $this->emergencyInsurance = $emergencyInsurance;
  752. }
  753. public function getEmergencyInsurance() {
  754. return $this->emergencyInsurance;
  755. }
  756. public function setFirstYearAnnualFee($firstYearAnnualFee) {
  757. $this->firstYearAnnualFee = $firstYearAnnualFee;
  758. }
  759. public function getFirstYearAnnualFee() {
  760. return $this->firstYearAnnualFee;
  761. }
  762. public function setTrackingUrl($trackingUrl) {
  763. $this->trackingUrl = $trackingUrl;
  764. }
  765. public function getTrackingUrl() {
  766. return $this->trackingUrl;
  767. }
  768. public function setLatePaymentFee($latePaymentFee) {
  769. $this->latePaymentFee = $latePaymentFee;
  770. }
  771. public function getLatePaymentFee() {
  772. return $this->latePaymentFee;
  773. }
  774. public function setOverLimitFee($overLimitFee) {
  775. $this->overLimitFee = $overLimitFee;
  776. }
  777. public function getOverLimitFee() {
  778. return $this->overLimitFee;
  779. }
  780. public function setCardType($cardType) {
  781. $this->cardType = $cardType;
  782. }
  783. public function getCardType() {
  784. return $this->cardType;
  785. }
  786. public function setApprovedCategories($approvedCategories) {
  787. $this->approvedCategories = $approvedCategories;
  788. }
  789. public function getApprovedCategories() {
  790. return $this->approvedCategories;
  791. }
  792. public function setRewardPartner($rewardPartner) {
  793. $this->rewardPartner = $rewardPartner;
  794. }
  795. public function getRewardPartner() {
  796. return $this->rewardPartner;
  797. }
  798. public function setIntroBalanceTransferTerms($introBalanceTransferTerms) {
  799. $this->introBalanceTransferTerms = $introBalanceTransferTerms;
  800. }
  801. public function getIntroBalanceTransferTerms() {
  802. return $this->introBalanceTransferTerms;
  803. }
  804. public function setForeignCurrencyTransactionFee($foreignCurrencyTransactionFee) {
  805. $this->foreignCurrencyTransactionFee = $foreignCurrencyTransactionFee;
  806. }
  807. public function getForeignCurrencyTransactionFee() {
  808. return $this->foreignCurrencyTransactionFee;
  809. }
  810. public function setAnnualFee($annualFee) {
  811. $this->annualFee = $annualFee;
  812. }
  813. public function getAnnualFee() {
  814. return $this->annualFee;
  815. }
  816. public function setIssuerWebsite($issuerWebsite) {
  817. $this->issuerWebsite = $issuerWebsite;
  818. }
  819. public function getIssuerWebsite() {
  820. return $this->issuerWebsite;
  821. }
  822. public function setVariableRatesUpdateFrequency($variableRatesUpdateFrequency) {
  823. $this->variableRatesUpdateFrequency = $variableRatesUpdateFrequency;
  824. }
  825. public function getVariableRatesUpdateFrequency() {
  826. return $this->variableRatesUpdateFrequency;
  827. }
  828. public function setCarRentalInsurance($carRentalInsurance) {
  829. $this->carRentalInsurance = $carRentalInsurance;
  830. }
  831. public function getCarRentalInsurance() {
  832. return $this->carRentalInsurance;
  833. }
  834. public function setAdditionalCardBenefits($additionalCardBenefits) {
  835. $this->additionalCardBenefits = $additionalCardBenefits;
  836. }
  837. public function getAdditionalCardBenefits() {
  838. return $this->additionalCardBenefits;
  839. }
  840. public function setAgeMinimum($ageMinimum) {
  841. $this->ageMinimum = $ageMinimum;
  842. }
  843. public function getAgeMinimum() {
  844. return $this->ageMinimum;
  845. }
  846. public function setBalanceComputationMethod($balanceComputationMethod) {
  847. $this->balanceComputationMethod = $balanceComputationMethod;
  848. }
  849. public function getBalanceComputationMethod() {
  850. return $this->balanceComputationMethod;
  851. }
  852. public function setAprDisplay($aprDisplay) {
  853. $this->aprDisplay = $aprDisplay;
  854. }
  855. public function getAprDisplay() {
  856. return $this->aprDisplay;
  857. }
  858. public function setAdditionalCardHolderFee($additionalCardHolderFee) {
  859. $this->additionalCardHolderFee = $additionalCardHolderFee;
  860. }
  861. public function getAdditionalCardHolderFee() {
  862. return $this->additionalCardHolderFee;
  863. }
  864. public function setVariableRatesLastUpdated($variableRatesLastUpdated) {
  865. $this->variableRatesLastUpdated = $variableRatesLastUpdated;
  866. }
  867. public function getVariableRatesLastUpdated() {
  868. return $this->variableRatesLastUpdated;
  869. }
  870. public function setNetwork($network) {
  871. $this->network = $network;
  872. }
  873. public function getNetwork() {
  874. return $this->network;
  875. }
  876. public function setPurchaseRateType($purchaseRateType) {
  877. $this->purchaseRateType = $purchaseRateType;
  878. }
  879. public function getPurchaseRateType() {
  880. return $this->purchaseRateType;
  881. }
  882. public function setStatementCopyFee($statementCopyFee) {
  883. $this->statementCopyFee = $statementCopyFee;
  884. }
  885. public function getStatementCopyFee() {
  886. return $this->statementCopyFee;
  887. }
  888. public function setRewardsHaveBlackoutDates($rewardsHaveBlackoutDates) {
  889. $this->rewardsHaveBlackoutDates = $rewardsHaveBlackoutDates;
  890. }
  891. public function getRewardsHaveBlackoutDates() {
  892. return $this->rewardsHaveBlackoutDates;
  893. }
  894. public function setCreditRatingDisplay($creditRatingDisplay) {
  895. $this->creditRatingDisplay = $creditRatingDisplay;
  896. }
  897. public function getCreditRatingDisplay() {
  898. return $this->creditRatingDisplay;
  899. }
  900. public function setFlightAccidentInsurance($flightAccidentInsurance) {
  901. $this->flightAccidentInsurance = $flightAccidentInsurance;
  902. }
  903. public function getFlightAccidentInsurance() {
  904. return $this->flightAccidentInsurance;
  905. }
  906. public function setAnnualRewardMaximum($annualRewardMaximum) {
  907. $this->annualRewardMaximum = $annualRewardMaximum;
  908. }
  909. public function getAnnualRewardMaximum() {
  910. return $this->annualRewardMaximum;
  911. }
  912. public function setBalanceTransferTerms($balanceTransferTerms) {
  913. $this->balanceTransferTerms = $balanceTransferTerms;
  914. }
  915. public function getBalanceTransferTerms() {
  916. return $this->balanceTransferTerms;
  917. }
  918. public function setBonusRewards($bonusRewards) {
  919. $this->assertIsArray($bonusRewards, 'Google_CcOfferBonusRewards', __METHOD__);
  920. $this->bonusRewards = $bonusRewards;
  921. }
  922. public function getBonusRewards() {
  923. return $this->bonusRewards;
  924. }
  925. public function setImageUrl($imageUrl) {
  926. $this->imageUrl = $imageUrl;
  927. }
  928. public function getImageUrl() {
  929. return $this->imageUrl;
  930. }
  931. public function setAgeMinimumDetails($ageMinimumDetails) {
  932. $this->ageMinimumDetails = $ageMinimumDetails;
  933. }
  934. public function getAgeMinimumDetails() {
  935. return $this->ageMinimumDetails;
  936. }
  937. public function setDisclaimer($disclaimer) {
  938. $this->disclaimer = $disclaimer;
  939. }
  940. public function getDisclaimer() {
  941. return $this->disclaimer;
  942. }
  943. }
  944. class Google_CcOfferBonusRewards extends Google_Model {
  945. public $amount;
  946. public $details;
  947. public function setAmount($amount) {
  948. $this->amount = $amount;
  949. }
  950. public function getAmount() {
  951. return $this->amount;
  952. }
  953. public function setDetails($details) {
  954. $this->details = $details;
  955. }
  956. public function getDetails() {
  957. return $this->details;
  958. }
  959. }
  960. class Google_CcOfferDefaultFees extends Google_Model {
  961. public $category;
  962. public $maxRate;
  963. public $minRate;
  964. public $rateType;
  965. public function setCategory($category) {
  966. $this->category = $category;
  967. }
  968. public function getCategory() {
  969. return $this->category;
  970. }
  971. public function setMaxRate($maxRate) {
  972. $this->maxRate = $maxRate;
  973. }
  974. public function getMaxRate() {
  975. return $this->maxRate;
  976. }
  977. public function setMinRate($minRate) {
  978. $this->minRate = $minRate;
  979. }
  980. public function getMinRate() {
  981. return $this->minRate;
  982. }
  983. public function setRateType($rateType) {
  984. $this->rateType = $rateType;
  985. }
  986. public function getRateType() {
  987. return $this->rateType;
  988. }
  989. }
  990. class Google_CcOfferRewards extends Google_Model {
  991. public $category;
  992. public $minRewardTier;
  993. public $maxRewardTier;
  994. public $expirationMonths;
  995. public $amount;
  996. public $additionalDetails;
  997. public function setCategory($category) {
  998. $this->category = $category;
  999. }
  1000. public function getCategory() {
  1001. return $this->category;
  1002. }
  1003. public function setMinRewardTier($minRewardTier) {
  1004. $this->minRewardTier = $minRewardTier;
  1005. }
  1006. public function getMinRewardTier() {
  1007. return $this->minRewardTier;
  1008. }
  1009. public function setMaxRewardTier($maxRewardTier) {
  1010. $this->maxRewardTier = $maxRewardTier;
  1011. }
  1012. public function getMaxRewardTier() {
  1013. return $this->maxRewardTier;
  1014. }
  1015. public function setExpirationMonths($expirationMonths) {
  1016. $this->expirationMonths = $expirationMonths;
  1017. }
  1018. public function getExpirationMonths() {
  1019. return $this->expirationMonths;
  1020. }
  1021. public function setAmount($amount) {
  1022. $this->amount = $amount;
  1023. }
  1024. public function getAmount() {
  1025. return $this->amount;
  1026. }
  1027. public function setAdditionalDetails($additionalDetails) {
  1028. $this->additionalDetails = $additionalDetails;
  1029. }
  1030. public function getAdditionalDetails() {
  1031. return $this->additionalDetails;
  1032. }
  1033. }
  1034. class Google_CcOffers extends Google_Model {
  1035. protected $__itemsType = 'Google_CcOffer';
  1036. protected $__itemsDataType = 'array';
  1037. public $items;
  1038. public $kind;
  1039. public function setItems($items) {
  1040. $this->assertIsArray($items, 'Google_CcOffer', __METHOD__);
  1041. $this->items = $items;
  1042. }
  1043. public function getItems() {
  1044. return $this->items;
  1045. }
  1046. public function setKind($kind) {
  1047. $this->kind = $kind;
  1048. }
  1049. public function getKind() {
  1050. return $this->kind;
  1051. }
  1052. }
  1053. class Google_Event extends Google_Model {
  1054. protected $__networkFeeType = 'Google_Money';
  1055. protected $__networkFeeDataType = '';
  1056. public $networkFee;
  1057. public $advertiserName;
  1058. public $kind;
  1059. public $modifyDate;
  1060. public $type;
  1061. public $orderId;
  1062. public $publisherName;
  1063. public $memberId;
  1064. public $advertiserId;
  1065. public $status;
  1066. public $chargeId;
  1067. protected $__productsType = 'Google_EventProducts';
  1068. protected $__productsDataType = 'array';
  1069. public $products;
  1070. protected $__earningsType = 'Google_Money';
  1071. protected $__earningsDataType = '';
  1072. public $earnings;
  1073. public $chargeType;
  1074. protected $__publisherFeeType = 'Google_Money';
  1075. protected $__publisherFeeDataType = '';
  1076. public $publisherFee;
  1077. protected $__commissionableSalesType = 'Google_Money';
  1078. protected $__commissionableSalesDataType = '';
  1079. public $commissionableSales;
  1080. public $publisherId;
  1081. public $eventDate;
  1082. public function setNetworkFee(Google_Money $networkFee) {
  1083. $this->networkFee = $networkFee;
  1084. }
  1085. public function getNetworkFee() {
  1086. return $this->networkFee;
  1087. }
  1088. public function setAdvertiserName($advertiserName) {
  1089. $this->advertiserName = $advertiserName;
  1090. }
  1091. public function getAdvertiserName() {
  1092. return $this->advertiserName;
  1093. }
  1094. public function setKind($kind) {
  1095. $this->kind = $kind;
  1096. }
  1097. public function getKind() {
  1098. return $this->kind;
  1099. }
  1100. public function setModifyDate($modifyDate) {
  1101. $this->modifyDate = $modifyDate;
  1102. }
  1103. public function getModifyDate() {
  1104. return $this->modifyDate;
  1105. }
  1106. public function setType($type) {
  1107. $this->type = $type;
  1108. }
  1109. public function getType() {
  1110. return $this->type;
  1111. }
  1112. public function setOrderId($orderId) {
  1113. $this->orderId = $orderId;
  1114. }
  1115. public function getOrderId() {
  1116. return $this->orderId;
  1117. }
  1118. public function setPublisherName($publisherName) {
  1119. $this->publisherName = $publisherName;
  1120. }
  1121. public function getPublisherName() {
  1122. return $this->publisherName;
  1123. }
  1124. public function setMemberId($memberId) {
  1125. $this->memberId = $memberId;
  1126. }
  1127. public function getMemberId() {
  1128. return $this->memberId;
  1129. }
  1130. public function setAdvertiserId($advertiserId) {
  1131. $this->advertiserId = $advertiserId;
  1132. }
  1133. public function getAdvertiserId() {
  1134. return $this->advertiserId;
  1135. }
  1136. public function setStatus($status) {
  1137. $this->status = $status;
  1138. }
  1139. public function getStatus() {
  1140. return $this->status;
  1141. }
  1142. public function setChargeId($chargeId) {
  1143. $this->chargeId = $chargeId;
  1144. }
  1145. public function getChargeId() {
  1146. return $this->chargeId;
  1147. }
  1148. public function setProducts($products) {
  1149. $this->assertIsArray($products, 'Google_EventProducts', __METHOD__);
  1150. $this->products = $products;
  1151. }
  1152. public function getProducts() {
  1153. return $this->products;
  1154. }

Large files files are truncated, but you can click here to view the full file