/includes/api-libs/Google/Service/Doubleclicksearch.php

  1. <?php 
  2. /** 
  3. * Copyright 2010 Google Inc. 
  4. * 
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
  6. * use this file except in compliance with the License. You may obtain a copy of 
  7. * the License at 
  8. * 
  9. * http://www.apache.org/licenses/LICENSE-2.0 
  10. * 
  11. * Unless required by applicable law or agreed to in writing, software 
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
  14. * License for the specific language governing permissions and limitations under 
  15. * the License. 
  16. */ 
  17.  
  18. /** 
  19. * Service definition for Doubleclicksearch (v2). 
  20. * 
  21. * <p> 
  22. * Report and modify your advertising data in DoubleClick Search (for example,  
  23. * campaigns, ad groups, keywords, and conversions).</p> 
  24. * 
  25. * <p> 
  26. * For more information about this service, see the API 
  27. * <a href="https://developers.google.com/doubleclick-search/" target="_blank">Documentation</a> 
  28. * </p> 
  29. * 
  30. * @author Google, Inc. 
  31. */ 
  32. class Google_Service_Doubleclicksearch extends Google_Service 
  33. /** View and manage your advertising data in DoubleClick Search. */ 
  34. const DOUBLECLICKSEARCH = 
  35. "https://www.googleapis.com/auth/doubleclicksearch"; 
  36.  
  37. public $conversion; 
  38. public $reports; 
  39. public $savedColumns; 
  40.  
  41.  
  42. /** 
  43. * Constructs the internal representation of the Doubleclicksearch service. 
  44. * 
  45. * @param Google_Client $client 
  46. */ 
  47. public function __construct(Google_Client $client) 
  48. parent::__construct($client); 
  49. $this->servicePath = 'doubleclicksearch/v2/'; 
  50. $this->version = 'v2'; 
  51. $this->serviceName = 'doubleclicksearch'; 
  52.  
  53. $this->conversion = new Google_Service_Doubleclicksearch_Conversion_Resource( 
  54. $this,  
  55. $this->serviceName,  
  56. 'conversion',  
  57. array( 
  58. 'methods' => array( 
  59. 'get' => array( 
  60. 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion',  
  61. 'httpMethod' => 'GET',  
  62. 'parameters' => array( 
  63. 'agencyId' => array( 
  64. 'location' => 'path',  
  65. 'type' => 'string',  
  66. 'required' => true,  
  67. ),  
  68. 'advertiserId' => array( 
  69. 'location' => 'path',  
  70. 'type' => 'string',  
  71. 'required' => true,  
  72. ),  
  73. 'engineAccountId' => array( 
  74. 'location' => 'path',  
  75. 'type' => 'string',  
  76. 'required' => true,  
  77. ),  
  78. 'endDate' => array( 
  79. 'location' => 'query',  
  80. 'type' => 'integer',  
  81. 'required' => true,  
  82. ),  
  83. 'rowCount' => array( 
  84. 'location' => 'query',  
  85. 'type' => 'integer',  
  86. 'required' => true,  
  87. ),  
  88. 'startDate' => array( 
  89. 'location' => 'query',  
  90. 'type' => 'integer',  
  91. 'required' => true,  
  92. ),  
  93. 'startRow' => array( 
  94. 'location' => 'query',  
  95. 'type' => 'integer',  
  96. 'required' => true,  
  97. ),  
  98. 'adGroupId' => array( 
  99. 'location' => 'query',  
  100. 'type' => 'string',  
  101. ),  
  102. 'campaignId' => array( 
  103. 'location' => 'query',  
  104. 'type' => 'string',  
  105. ),  
  106. 'adId' => array( 
  107. 'location' => 'query',  
  108. 'type' => 'string',  
  109. ),  
  110. 'criterionId' => array( 
  111. 'location' => 'query',  
  112. 'type' => 'string',  
  113. ),  
  114. ),  
  115. ), 'insert' => array( 
  116. 'path' => 'conversion',  
  117. 'httpMethod' => 'POST',  
  118. 'parameters' => array(),  
  119. ), 'patch' => array( 
  120. 'path' => 'conversion',  
  121. 'httpMethod' => 'PATCH',  
  122. 'parameters' => array( 
  123. 'advertiserId' => array( 
  124. 'location' => 'query',  
  125. 'type' => 'string',  
  126. 'required' => true,  
  127. ),  
  128. 'agencyId' => array( 
  129. 'location' => 'query',  
  130. 'type' => 'string',  
  131. 'required' => true,  
  132. ),  
  133. 'endDate' => array( 
  134. 'location' => 'query',  
  135. 'type' => 'integer',  
  136. 'required' => true,  
  137. ),  
  138. 'engineAccountId' => array( 
  139. 'location' => 'query',  
  140. 'type' => 'string',  
  141. 'required' => true,  
  142. ),  
  143. 'rowCount' => array( 
  144. 'location' => 'query',  
  145. 'type' => 'integer',  
  146. 'required' => true,  
  147. ),  
  148. 'startDate' => array( 
  149. 'location' => 'query',  
  150. 'type' => 'integer',  
  151. 'required' => true,  
  152. ),  
  153. 'startRow' => array( 
  154. 'location' => 'query',  
  155. 'type' => 'integer',  
  156. 'required' => true,  
  157. ),  
  158. ),  
  159. ), 'update' => array( 
  160. 'path' => 'conversion',  
  161. 'httpMethod' => 'PUT',  
  162. 'parameters' => array(),  
  163. ), 'updateAvailability' => array( 
  164. 'path' => 'conversion/updateAvailability',  
  165. 'httpMethod' => 'POST',  
  166. 'parameters' => array(),  
  167. ),  
  168. ); 
  169. $this->reports = new Google_Service_Doubleclicksearch_Reports_Resource( 
  170. $this,  
  171. $this->serviceName,  
  172. 'reports',  
  173. array( 
  174. 'methods' => array( 
  175. 'generate' => array( 
  176. 'path' => 'reports/generate',  
  177. 'httpMethod' => 'POST',  
  178. 'parameters' => array(),  
  179. ), 'get' => array( 
  180. 'path' => 'reports/{reportId}',  
  181. 'httpMethod' => 'GET',  
  182. 'parameters' => array( 
  183. 'reportId' => array( 
  184. 'location' => 'path',  
  185. 'type' => 'string',  
  186. 'required' => true,  
  187. ),  
  188. ),  
  189. ), 'getFile' => array( 
  190. 'path' => 'reports/{reportId}/files/{reportFragment}',  
  191. 'httpMethod' => 'GET',  
  192. 'parameters' => array( 
  193. 'reportId' => array( 
  194. 'location' => 'path',  
  195. 'type' => 'string',  
  196. 'required' => true,  
  197. ),  
  198. 'reportFragment' => array( 
  199. 'location' => 'path',  
  200. 'type' => 'integer',  
  201. 'required' => true,  
  202. ),  
  203. ),  
  204. ), 'request' => array( 
  205. 'path' => 'reports',  
  206. 'httpMethod' => 'POST',  
  207. 'parameters' => array(),  
  208. ),  
  209. ); 
  210. $this->savedColumns = new Google_Service_Doubleclicksearch_SavedColumns_Resource( 
  211. $this,  
  212. $this->serviceName,  
  213. 'savedColumns',  
  214. array( 
  215. 'methods' => array( 
  216. 'list' => array( 
  217. 'path' => 'agency/{agencyId}/advertiser/{advertiserId}/savedcolumns',  
  218. 'httpMethod' => 'GET',  
  219. 'parameters' => array( 
  220. 'agencyId' => array( 
  221. 'location' => 'path',  
  222. 'type' => 'string',  
  223. 'required' => true,  
  224. ),  
  225. 'advertiserId' => array( 
  226. 'location' => 'path',  
  227. 'type' => 'string',  
  228. 'required' => true,  
  229. ),  
  230. ),  
  231. ),  
  232. ); 
  233.  
  234.  
  235. /** 
  236. * The "conversion" collection of methods. 
  237. * Typical usage is: 
  238. * <code> 
  239. * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); 
  240. * $conversion = $doubleclicksearchService->conversion; 
  241. * </code> 
  242. */ 
  243. class Google_Service_Doubleclicksearch_Conversion_Resource extends Google_Service_Resource 
  244.  
  245. /** 
  246. * Retrieves a list of conversions from a DoubleClick Search engine account. 
  247. * (conversion.get) 
  248. * 
  249. * @param string $agencyId Numeric ID of the agency. 
  250. * @param string $advertiserId Numeric ID of the advertiser. 
  251. * @param string $engineAccountId Numeric ID of the engine account. 
  252. * @param int $endDate Last date (inclusive) on which to retrieve conversions. 
  253. * Format is yyyymmdd. 
  254. * @param int $rowCount The number of conversions to return per call. 
  255. * @param int $startDate First date (inclusive) on which to retrieve 
  256. * conversions. Format is yyyymmdd. 
  257. * @param string $startRow The 0-based starting index for retrieving conversions 
  258. * results. 
  259. * @param array $optParams Optional parameters. 
  260. * 
  261. * @opt_param string adGroupId Numeric ID of the ad group. 
  262. * @opt_param string campaignId Numeric ID of the campaign. 
  263. * @opt_param string adId Numeric ID of the ad. 
  264. * @opt_param string criterionId Numeric ID of the criterion. 
  265. * @return Google_Service_Doubleclicksearch_ConversionList 
  266. */ 
  267. public function get($agencyId, $advertiserId, $engineAccountId, $endDate, $rowCount, $startDate, $startRow, $optParams = array()) 
  268. $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId, 'engineAccountId' => $engineAccountId, 'endDate' => $endDate, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow); 
  269. $params = array_merge($params, $optParams); 
  270. return $this->call('get', array($params), "Google_Service_Doubleclicksearch_ConversionList"); 
  271.  
  272. /** 
  273. * Inserts a batch of new conversions into DoubleClick Search. 
  274. * (conversion.insert) 
  275. * 
  276. * @param Google_ConversionList $postBody 
  277. * @param array $optParams Optional parameters. 
  278. * @return Google_Service_Doubleclicksearch_ConversionList 
  279. */ 
  280. public function insert(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) 
  281. $params = array('postBody' => $postBody); 
  282. $params = array_merge($params, $optParams); 
  283. return $this->call('insert', array($params), "Google_Service_Doubleclicksearch_ConversionList"); 
  284.  
  285. /** 
  286. * Updates a batch of conversions in DoubleClick Search. This method supports 
  287. * patch semantics. (conversion.patch) 
  288. * 
  289. * @param string $advertiserId Numeric ID of the advertiser. 
  290. * @param string $agencyId Numeric ID of the agency. 
  291. * @param int $endDate Last date (inclusive) on which to retrieve conversions. 
  292. * Format is yyyymmdd. 
  293. * @param string $engineAccountId Numeric ID of the engine account. 
  294. * @param int $rowCount The number of conversions to return per call. 
  295. * @param int $startDate First date (inclusive) on which to retrieve 
  296. * conversions. Format is yyyymmdd. 
  297. * @param string $startRow The 0-based starting index for retrieving conversions 
  298. * results. 
  299. * @param Google_ConversionList $postBody 
  300. * @param array $optParams Optional parameters. 
  301. * @return Google_Service_Doubleclicksearch_ConversionList 
  302. */ 
  303. public function patch($advertiserId, $agencyId, $endDate, $engineAccountId, $rowCount, $startDate, $startRow, Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) 
  304. $params = array('advertiserId' => $advertiserId, 'agencyId' => $agencyId, 'endDate' => $endDate, 'engineAccountId' => $engineAccountId, 'rowCount' => $rowCount, 'startDate' => $startDate, 'startRow' => $startRow, 'postBody' => $postBody); 
  305. $params = array_merge($params, $optParams); 
  306. return $this->call('patch', array($params), "Google_Service_Doubleclicksearch_ConversionList"); 
  307.  
  308. /** 
  309. * Updates a batch of conversions in DoubleClick Search. (conversion.update) 
  310. * 
  311. * @param Google_ConversionList $postBody 
  312. * @param array $optParams Optional parameters. 
  313. * @return Google_Service_Doubleclicksearch_ConversionList 
  314. */ 
  315. public function update(Google_Service_Doubleclicksearch_ConversionList $postBody, $optParams = array()) 
  316. $params = array('postBody' => $postBody); 
  317. $params = array_merge($params, $optParams); 
  318. return $this->call('update', array($params), "Google_Service_Doubleclicksearch_ConversionList"); 
  319.  
  320. /** 
  321. * Updates the availabilities of a batch of floodlight activities in DoubleClick 
  322. * Search. (conversion.updateAvailability) 
  323. * 
  324. * @param Google_UpdateAvailabilityRequest $postBody 
  325. * @param array $optParams Optional parameters. 
  326. * @return Google_Service_Doubleclicksearch_UpdateAvailabilityResponse 
  327. */ 
  328. public function updateAvailability(Google_Service_Doubleclicksearch_UpdateAvailabilityRequest $postBody, $optParams = array()) 
  329. $params = array('postBody' => $postBody); 
  330. $params = array_merge($params, $optParams); 
  331. return $this->call('updateAvailability', array($params), "Google_Service_Doubleclicksearch_UpdateAvailabilityResponse"); 
  332.  
  333. /** 
  334. * The "reports" collection of methods. 
  335. * Typical usage is: 
  336. * <code> 
  337. * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); 
  338. * $reports = $doubleclicksearchService->reports; 
  339. * </code> 
  340. */ 
  341. class Google_Service_Doubleclicksearch_Reports_Resource extends Google_Service_Resource 
  342.  
  343. /** 
  344. * Generates and returns a report immediately. (reports.generate) 
  345. * 
  346. * @param Google_ReportRequest $postBody 
  347. * @param array $optParams Optional parameters. 
  348. * @return Google_Service_Doubleclicksearch_Report 
  349. */ 
  350. public function generate(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) 
  351. $params = array('postBody' => $postBody); 
  352. $params = array_merge($params, $optParams); 
  353. return $this->call('generate', array($params), "Google_Service_Doubleclicksearch_Report"); 
  354.  
  355. /** 
  356. * Polls for the status of a report request. (reports.get) 
  357. * 
  358. * @param string $reportId ID of the report request being polled. 
  359. * @param array $optParams Optional parameters. 
  360. * @return Google_Service_Doubleclicksearch_Report 
  361. */ 
  362. public function get($reportId, $optParams = array()) 
  363. $params = array('reportId' => $reportId); 
  364. $params = array_merge($params, $optParams); 
  365. return $this->call('get', array($params), "Google_Service_Doubleclicksearch_Report"); 
  366.  
  367. /** 
  368. * Downloads a report file. (reports.getFile) 
  369. * 
  370. * @param string $reportId ID of the report. 
  371. * @param int $reportFragment The index of the report fragment to download. 
  372. * @param array $optParams Optional parameters. 
  373. */ 
  374. public function getFile($reportId, $reportFragment, $optParams = array()) 
  375. $params = array('reportId' => $reportId, 'reportFragment' => $reportFragment); 
  376. $params = array_merge($params, $optParams); 
  377. return $this->call('getFile', array($params)); 
  378.  
  379. /** 
  380. * Inserts a report request into the reporting system. (reports.request) 
  381. * 
  382. * @param Google_ReportRequest $postBody 
  383. * @param array $optParams Optional parameters. 
  384. * @return Google_Service_Doubleclicksearch_Report 
  385. */ 
  386. public function request(Google_Service_Doubleclicksearch_ReportRequest $postBody, $optParams = array()) 
  387. $params = array('postBody' => $postBody); 
  388. $params = array_merge($params, $optParams); 
  389. return $this->call('request', array($params), "Google_Service_Doubleclicksearch_Report"); 
  390.  
  391. /** 
  392. * The "savedColumns" collection of methods. 
  393. * Typical usage is: 
  394. * <code> 
  395. * $doubleclicksearchService = new Google_Service_Doubleclicksearch(...); 
  396. * $savedColumns = $doubleclicksearchService->savedColumns; 
  397. * </code> 
  398. */ 
  399. class Google_Service_Doubleclicksearch_SavedColumns_Resource extends Google_Service_Resource 
  400.  
  401. /** 
  402. * Retrieve the list of saved columns for a specified advertiser. 
  403. * (savedColumns.listSavedColumns) 
  404. * 
  405. * @param string $agencyId DS ID of the agency. 
  406. * @param string $advertiserId DS ID of the advertiser. 
  407. * @param array $optParams Optional parameters. 
  408. * @return Google_Service_Doubleclicksearch_SavedColumnList 
  409. */ 
  410. public function listSavedColumns($agencyId, $advertiserId, $optParams = array()) 
  411. $params = array('agencyId' => $agencyId, 'advertiserId' => $advertiserId); 
  412. $params = array_merge($params, $optParams); 
  413. return $this->call('list', array($params), "Google_Service_Doubleclicksearch_SavedColumnList"); 
  414.  
  415.  
  416.  
  417.  
  418. class Google_Service_Doubleclicksearch_Availability extends Google_Model 
  419. protected $internal_gapi_mappings = array( 
  420. ); 
  421. public $advertiserId; 
  422. public $agencyId; 
  423. public $availabilityTimestamp; 
  424. public $segmentationId; 
  425. public $segmentationName; 
  426. public $segmentationType; 
  427.  
  428.  
  429. public function setAdvertiserId($advertiserId) 
  430. $this->advertiserId = $advertiserId; 
  431. public function getAdvertiserId() 
  432. return $this->advertiserId; 
  433. public function setAgencyId($agencyId) 
  434. $this->agencyId = $agencyId; 
  435. public function getAgencyId() 
  436. return $this->agencyId; 
  437. public function setAvailabilityTimestamp($availabilityTimestamp) 
  438. $this->availabilityTimestamp = $availabilityTimestamp; 
  439. public function getAvailabilityTimestamp() 
  440. return $this->availabilityTimestamp; 
  441. public function setSegmentationId($segmentationId) 
  442. $this->segmentationId = $segmentationId; 
  443. public function getSegmentationId() 
  444. return $this->segmentationId; 
  445. public function setSegmentationName($segmentationName) 
  446. $this->segmentationName = $segmentationName; 
  447. public function getSegmentationName() 
  448. return $this->segmentationName; 
  449. public function setSegmentationType($segmentationType) 
  450. $this->segmentationType = $segmentationType; 
  451. public function getSegmentationType() 
  452. return $this->segmentationType; 
  453.  
  454. class Google_Service_Doubleclicksearch_Conversion extends Google_Collection 
  455. protected $collection_key = 'customMetric'; 
  456. protected $internal_gapi_mappings = array( 
  457. ); 
  458. public $adGroupId; 
  459. public $adId; 
  460. public $advertiserId; 
  461. public $agencyId; 
  462. public $attributionModel; 
  463. public $campaignId; 
  464. public $clickId; 
  465. public $conversionId; 
  466. public $conversionModifiedTimestamp; 
  467. public $conversionTimestamp; 
  468. public $countMillis; 
  469. public $criterionId; 
  470. public $currencyCode; 
  471. protected $customDimensionType = 'Google_Service_Doubleclicksearch_CustomDimension'; 
  472. protected $customDimensionDataType = 'array'; 
  473. protected $customMetricType = 'Google_Service_Doubleclicksearch_CustomMetric'; 
  474. protected $customMetricDataType = 'array'; 
  475. public $dsConversionId; 
  476. public $engineAccountId; 
  477. public $floodlightOrderId; 
  478. public $quantityMillis; 
  479. public $revenueMicros; 
  480. public $segmentationId; 
  481. public $segmentationName; 
  482. public $segmentationType; 
  483. public $state; 
  484. public $type; 
  485.  
  486.  
  487. public function setAdGroupId($adGroupId) 
  488. $this->adGroupId = $adGroupId; 
  489. public function getAdGroupId() 
  490. return $this->adGroupId; 
  491. public function setAdId($adId) 
  492. $this->adId = $adId; 
  493. public function getAdId() 
  494. return $this->adId; 
  495. public function setAdvertiserId($advertiserId) 
  496. $this->advertiserId = $advertiserId; 
  497. public function getAdvertiserId() 
  498. return $this->advertiserId; 
  499. public function setAgencyId($agencyId) 
  500. $this->agencyId = $agencyId; 
  501. public function getAgencyId() 
  502. return $this->agencyId; 
  503. public function setAttributionModel($attributionModel) 
  504. $this->attributionModel = $attributionModel; 
  505. public function getAttributionModel() 
  506. return $this->attributionModel; 
  507. public function setCampaignId($campaignId) 
  508. $this->campaignId = $campaignId; 
  509. public function getCampaignId() 
  510. return $this->campaignId; 
  511. public function setClickId($clickId) 
  512. $this->clickId = $clickId; 
  513. public function getClickId() 
  514. return $this->clickId; 
  515. public function setConversionId($conversionId) 
  516. $this->conversionId = $conversionId; 
  517. public function getConversionId() 
  518. return $this->conversionId; 
  519. public function setConversionModifiedTimestamp($conversionModifiedTimestamp) 
  520. $this->conversionModifiedTimestamp = $conversionModifiedTimestamp; 
  521. public function getConversionModifiedTimestamp() 
  522. return $this->conversionModifiedTimestamp; 
  523. public function setConversionTimestamp($conversionTimestamp) 
  524. $this->conversionTimestamp = $conversionTimestamp; 
  525. public function getConversionTimestamp() 
  526. return $this->conversionTimestamp; 
  527. public function setCountMillis($countMillis) 
  528. $this->countMillis = $countMillis; 
  529. public function getCountMillis() 
  530. return $this->countMillis; 
  531. public function setCriterionId($criterionId) 
  532. $this->criterionId = $criterionId; 
  533. public function getCriterionId() 
  534. return $this->criterionId; 
  535. public function setCurrencyCode($currencyCode) 
  536. $this->currencyCode = $currencyCode; 
  537. public function getCurrencyCode() 
  538. return $this->currencyCode; 
  539. public function setCustomDimension($customDimension) 
  540. $this->customDimension = $customDimension; 
  541. public function getCustomDimension() 
  542. return $this->customDimension; 
  543. public function setCustomMetric($customMetric) 
  544. $this->customMetric = $customMetric; 
  545. public function getCustomMetric() 
  546. return $this->customMetric; 
  547. public function setDsConversionId($dsConversionId) 
  548. $this->dsConversionId = $dsConversionId; 
  549. public function getDsConversionId() 
  550. return $this->dsConversionId; 
  551. public function setEngineAccountId($engineAccountId) 
  552. $this->engineAccountId = $engineAccountId; 
  553. public function getEngineAccountId() 
  554. return $this->engineAccountId; 
  555. public function setFloodlightOrderId($floodlightOrderId) 
  556. $this->floodlightOrderId = $floodlightOrderId; 
  557. public function getFloodlightOrderId() 
  558. return $this->floodlightOrderId; 
  559. public function setQuantityMillis($quantityMillis) 
  560. $this->quantityMillis = $quantityMillis; 
  561. public function getQuantityMillis() 
  562. return $this->quantityMillis; 
  563. public function setRevenueMicros($revenueMicros) 
  564. $this->revenueMicros = $revenueMicros; 
  565. public function getRevenueMicros() 
  566. return $this->revenueMicros; 
  567. public function setSegmentationId($segmentationId) 
  568. $this->segmentationId = $segmentationId; 
  569. public function getSegmentationId() 
  570. return $this->segmentationId; 
  571. public function setSegmentationName($segmentationName) 
  572. $this->segmentationName = $segmentationName; 
  573. public function getSegmentationName() 
  574. return $this->segmentationName; 
  575. public function setSegmentationType($segmentationType) 
  576. $this->segmentationType = $segmentationType; 
  577. public function getSegmentationType() 
  578. return $this->segmentationType; 
  579. public function setState($state) 
  580. $this->state = $state; 
  581. public function getState() 
  582. return $this->state; 
  583. public function setType($type) 
  584. $this->type = $type; 
  585. public function getType() 
  586. return $this->type; 
  587.  
  588. class Google_Service_Doubleclicksearch_ConversionList extends Google_Collection 
  589. protected $collection_key = 'conversion'; 
  590. protected $internal_gapi_mappings = array( 
  591. ); 
  592. protected $conversionType = 'Google_Service_Doubleclicksearch_Conversion'; 
  593. protected $conversionDataType = 'array'; 
  594. public $kind; 
  595.  
  596.  
  597. public function setConversion($conversion) 
  598. $this->conversion = $conversion; 
  599. public function getConversion() 
  600. return $this->conversion; 
  601. public function setKind($kind) 
  602. $this->kind = $kind; 
  603. public function getKind() 
  604. return $this->kind; 
  605.  
  606. class Google_Service_Doubleclicksearch_CustomDimension extends Google_Model 
  607. protected $internal_gapi_mappings = array( 
  608. ); 
  609. public $name; 
  610. public $value; 
  611.  
  612.  
  613. public function setName($name) 
  614. $this->name = $name; 
  615. public function getName() 
  616. return $this->name; 
  617. public function setValue($value) 
  618. $this->value = $value; 
  619. public function getValue() 
  620. return $this->value; 
  621.  
  622. class Google_Service_Doubleclicksearch_CustomMetric extends Google_Model 
  623. protected $internal_gapi_mappings = array( 
  624. ); 
  625. public $name; 
  626. public $value; 
  627.  
  628.  
  629. public function setName($name) 
  630. $this->name = $name; 
  631. public function getName() 
  632. return $this->name; 
  633. public function setValue($value) 
  634. $this->value = $value; 
  635. public function getValue() 
  636. return $this->value; 
  637.  
  638. class Google_Service_Doubleclicksearch_Report extends Google_Collection 
  639. protected $collection_key = 'rows'; 
  640. protected $internal_gapi_mappings = array( 
  641. ); 
  642. protected $filesType = 'Google_Service_Doubleclicksearch_ReportFiles'; 
  643. protected $filesDataType = 'array'; 
  644. public $id; 
  645. public $isReportReady; 
  646. public $kind; 
  647. protected $requestType = 'Google_Service_Doubleclicksearch_ReportRequest'; 
  648. protected $requestDataType = ''; 
  649. public $rowCount; 
  650. public $rows; 
  651. public $statisticsCurrencyCode; 
  652. public $statisticsTimeZone; 
  653.  
  654.  
  655. public function setFiles($files) 
  656. $this->files = $files; 
  657. public function getFiles() 
  658. return $this->files; 
  659. public function setId($id) 
  660. $this->id = $id; 
  661. public function getId() 
  662. return $this->id; 
  663. public function setIsReportReady($isReportReady) 
  664. $this->isReportReady = $isReportReady; 
  665. public function getIsReportReady() 
  666. return $this->isReportReady; 
  667. public function setKind($kind) 
  668. $this->kind = $kind; 
  669. public function getKind() 
  670. return $this->kind; 
  671. public function setRequest(Google_Service_Doubleclicksearch_ReportRequest $request) 
  672. $this->request = $request; 
  673. public function getRequest() 
  674. return $this->request; 
  675. public function setRowCount($rowCount) 
  676. $this->rowCount = $rowCount; 
  677. public function getRowCount() 
  678. return $this->rowCount; 
  679. public function setRows($rows) 
  680. $this->rows = $rows; 
  681. public function getRows() 
  682. return $this->rows; 
  683. public function setStatisticsCurrencyCode($statisticsCurrencyCode) 
  684. $this->statisticsCurrencyCode = $statisticsCurrencyCode; 
  685. public function getStatisticsCurrencyCode() 
  686. return $this->statisticsCurrencyCode; 
  687. public function setStatisticsTimeZone($statisticsTimeZone) 
  688. $this->statisticsTimeZone = $statisticsTimeZone; 
  689. public function getStatisticsTimeZone() 
  690. return $this->statisticsTimeZone; 
  691.  
  692. class Google_Service_Doubleclicksearch_ReportApiColumnSpec extends Google_Model 
  693. protected $internal_gapi_mappings = array( 
  694. ); 
  695. public $columnName; 
  696. public $customDimensionName; 
  697. public $customMetricName; 
  698. public $endDate; 
  699. public $groupByColumn; 
  700. public $headerText; 
  701. public $platformSource; 
  702. public $savedColumnName; 
  703. public $startDate; 
  704.  
  705.  
  706. public function setColumnName($columnName) 
  707. $this->columnName = $columnName; 
  708. public function getColumnName() 
  709. return $this->columnName; 
  710. public function setCustomDimensionName($customDimensionName) 
  711. $this->customDimensionName = $customDimensionName; 
  712. public function getCustomDimensionName() 
  713. return $this->customDimensionName; 
  714. public function setCustomMetricName($customMetricName) 
  715. $this->customMetricName = $customMetricName; 
  716. public function getCustomMetricName() 
  717. return $this->customMetricName; 
  718. public function setEndDate($endDate) 
  719. $this->endDate = $endDate; 
  720. public function getEndDate() 
  721. return $this->endDate; 
  722. public function setGroupByColumn($groupByColumn) 
  723. $this->groupByColumn = $groupByColumn; 
  724. public function getGroupByColumn() 
  725. return $this->groupByColumn; 
  726. public function setHeaderText($headerText) 
  727. $this->headerText = $headerText; 
  728. public function getHeaderText() 
  729. return $this->headerText; 
  730. public function setPlatformSource($platformSource) 
  731. $this->platformSource = $platformSource; 
  732. public function getPlatformSource() 
  733. return $this->platformSource; 
  734. public function setSavedColumnName($savedColumnName) 
  735. $this->savedColumnName = $savedColumnName; 
  736. public function getSavedColumnName() 
  737. return $this->savedColumnName; 
  738. public function setStartDate($startDate) 
  739. $this->startDate = $startDate; 
  740. public function getStartDate() 
  741. return $this->startDate; 
  742.  
  743. class Google_Service_Doubleclicksearch_ReportFiles extends Google_Model 
  744. protected $internal_gapi_mappings = array( 
  745. ); 
  746. public $byteCount; 
  747. public $url; 
  748.  
  749.  
  750. public function setByteCount($byteCount) 
  751. $this->byteCount = $byteCount; 
  752. public function getByteCount() 
  753. return $this->byteCount; 
  754. public function setUrl($url) 
  755. $this->url = $url; 
  756. public function getUrl() 
  757. return $this->url; 
  758.  
  759. class Google_Service_Doubleclicksearch_ReportRequest extends Google_Collection 
  760. protected $collection_key = 'orderBy'; 
  761. protected $internal_gapi_mappings = array( 
  762. ); 
  763. protected $columnsType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; 
  764. protected $columnsDataType = 'array'; 
  765. public $downloadFormat; 
  766. protected $filtersType = 'Google_Service_Doubleclicksearch_ReportRequestFilters'; 
  767. protected $filtersDataType = 'array'; 
  768. public $includeDeletedEntities; 
  769. public $includeRemovedEntities; 
  770. public $maxRowsPerFile; 
  771. protected $orderByType = 'Google_Service_Doubleclicksearch_ReportRequestOrderBy'; 
  772. protected $orderByDataType = 'array'; 
  773. protected $reportScopeType = 'Google_Service_Doubleclicksearch_ReportRequestReportScope'; 
  774. protected $reportScopeDataType = ''; 
  775. public $reportType; 
  776. public $rowCount; 
  777. public $startRow; 
  778. public $statisticsCurrency; 
  779. protected $timeRangeType = 'Google_Service_Doubleclicksearch_ReportRequestTimeRange'; 
  780. protected $timeRangeDataType = ''; 
  781. public $verifySingleTimeZone; 
  782.  
  783.  
  784. public function setColumns($columns) 
  785. $this->columns = $columns; 
  786. public function getColumns() 
  787. return $this->columns; 
  788. public function setDownloadFormat($downloadFormat) 
  789. $this->downloadFormat = $downloadFormat; 
  790. public function getDownloadFormat() 
  791. return $this->downloadFormat; 
  792. public function setFilters($filters) 
  793. $this->filters = $filters; 
  794. public function getFilters() 
  795. return $this->filters; 
  796. public function setIncludeDeletedEntities($includeDeletedEntities) 
  797. $this->includeDeletedEntities = $includeDeletedEntities; 
  798. public function getIncludeDeletedEntities() 
  799. return $this->includeDeletedEntities; 
  800. public function setIncludeRemovedEntities($includeRemovedEntities) 
  801. $this->includeRemovedEntities = $includeRemovedEntities; 
  802. public function getIncludeRemovedEntities() 
  803. return $this->includeRemovedEntities; 
  804. public function setMaxRowsPerFile($maxRowsPerFile) 
  805. $this->maxRowsPerFile = $maxRowsPerFile; 
  806. public function getMaxRowsPerFile() 
  807. return $this->maxRowsPerFile; 
  808. public function setOrderBy($orderBy) 
  809. $this->orderBy = $orderBy; 
  810. public function getOrderBy() 
  811. return $this->orderBy; 
  812. public function setReportScope(Google_Service_Doubleclicksearch_ReportRequestReportScope $reportScope) 
  813. $this->reportScope = $reportScope; 
  814. public function getReportScope() 
  815. return $this->reportScope; 
  816. public function setReportType($reportType) 
  817. $this->reportType = $reportType; 
  818. public function getReportType() 
  819. return $this->reportType; 
  820. public function setRowCount($rowCount) 
  821. $this->rowCount = $rowCount; 
  822. public function getRowCount() 
  823. return $this->rowCount; 
  824. public function setStartRow($startRow) 
  825. $this->startRow = $startRow; 
  826. public function getStartRow() 
  827. return $this->startRow; 
  828. public function setStatisticsCurrency($statisticsCurrency) 
  829. $this->statisticsCurrency = $statisticsCurrency; 
  830. public function getStatisticsCurrency() 
  831. return $this->statisticsCurrency; 
  832. public function setTimeRange(Google_Service_Doubleclicksearch_ReportRequestTimeRange $timeRange) 
  833. $this->timeRange = $timeRange; 
  834. public function getTimeRange() 
  835. return $this->timeRange; 
  836. public function setVerifySingleTimeZone($verifySingleTimeZone) 
  837. $this->verifySingleTimeZone = $verifySingleTimeZone; 
  838. public function getVerifySingleTimeZone() 
  839. return $this->verifySingleTimeZone; 
  840.  
  841. class Google_Service_Doubleclicksearch_ReportRequestFilters extends Google_Collection 
  842. protected $collection_key = 'values'; 
  843. protected $internal_gapi_mappings = array( 
  844. ); 
  845. protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; 
  846. protected $columnDataType = ''; 
  847. public $operator; 
  848. public $values; 
  849.  
  850.  
  851. public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) 
  852. $this->column = $column; 
  853. public function getColumn() 
  854. return $this->column; 
  855. public function setOperator($operator) 
  856. $this->operator = $operator; 
  857. public function getOperator() 
  858. return $this->operator; 
  859. public function setValues($values) 
  860. $this->values = $values; 
  861. public function getValues() 
  862. return $this->values; 
  863.  
  864. class Google_Service_Doubleclicksearch_ReportRequestOrderBy extends Google_Model 
  865. protected $internal_gapi_mappings = array( 
  866. ); 
  867. protected $columnType = 'Google_Service_Doubleclicksearch_ReportApiColumnSpec'; 
  868. protected $columnDataType = ''; 
  869. public $sortOrder; 
  870.  
  871.  
  872. public function setColumn(Google_Service_Doubleclicksearch_ReportApiColumnSpec $column) 
  873. $this->column = $column; 
  874. public function getColumn() 
  875. return $this->column; 
  876. public function setSortOrder($sortOrder) 
  877. $this->sortOrder = $sortOrder; 
  878. public function getSortOrder() 
  879. return $this->sortOrder; 
  880.  
  881. class Google_Service_Doubleclicksearch_ReportRequestReportScope extends Google_Model 
  882. protected $internal_gapi_mappings = array( 
  883. ); 
  884. public $adGroupId; 
  885. public $adId; 
  886. public $advertiserId; 
  887. public $agencyId; 
  888. public $campaignId; 
  889. public $engineAccountId; 
  890. public $keywordId; 
  891.  
  892.  
  893. public function setAdGroupId($adGroupId) 
  894. $this->adGroupId = $adGroupId; 
  895. public function getAdGroupId() 
  896. return $this->adGroupId; 
  897. public function setAdId($adId) 
  898. $this->adId = $adId; 
  899. public function getAdId() 
  900. return $this->adId; 
  901. public function setAdvertiserId($advertiserId) 
  902. $this->advertiserId = $advertiserId; 
  903. public function getAdvertiserId() 
  904. return $this->advertiserId; 
  905. public function setAgencyId($agencyId) 
  906. $this->agencyId = $agencyId; 
  907. public function getAgencyId() 
  908. return $this->agencyId; 
  909. public function setCampaignId($campaignId) 
  910. $this->campaignId = $campaignId; 
  911. public function getCampaignId() 
  912. return $this->campaignId; 
  913. public function setEngineAccountId($engineAccountId) 
  914. $this->engineAccountId = $engineAccountId; 
  915. public function getEngineAccountId() 
  916. return $this->engineAccountId; 
  917. public function setKeywordId($keywordId) 
  918. $this->keywordId = $keywordId; 
  919. public function getKeywordId() 
  920. return $this->keywordId; 
  921.  
  922. class Google_Service_Doubleclicksearch_ReportRequestTimeRange extends Google_Model 
  923. protected $internal_gapi_mappings = array( 
  924. ); 
  925. public $changedAttributesSinceTimestamp; 
  926. public $changedMetricsSinceTimestamp; 
  927. public $endDate; 
  928. public $startDate; 
  929.  
  930.  
  931. public function setChangedAttributesSinceTimestamp($changedAttributesSinceTimestamp) 
  932. $this->changedAttributesSinceTimestamp = $changedAttributesSinceTimestamp; 
  933. public function getChangedAttributesSinceTimestamp() 
  934. return $this->changedAttributesSinceTimestamp; 
  935. public function setChangedMetricsSinceTimestamp($changedMetricsSinceTimestamp) 
  936. $this->changedMetricsSinceTimestamp = $changedMetricsSinceTimestamp; 
  937. public function getChangedMetricsSinceTimestamp() 
  938. return $this->changedMetricsSinceTimestamp; 
  939. public function setEndDate($endDate) 
  940. $this->endDate = $endDate; 
  941. public function getEndDate() 
  942. return $this->endDate; 
  943. public function setStartDate($startDate) 
  944. $this->startDate = $startDate; 
  945. public function getStartDate() 
  946. return $this->startDate; 
  947.  
  948. class Google_Service_Doubleclicksearch_ReportRow extends Google_Model 
  949.  
  950. class Google_Service_Doubleclicksearch_SavedColumn extends Google_Model 
  951. protected $internal_gapi_mappings = array( 
  952. ); 
  953. public $kind; 
  954. public $savedColumnName; 
  955. public $type; 
  956.  
  957.  
  958. public function setKind($kind) 
  959. $this->kind = $kind; 
  960. public function getKind() 
  961. return $this->kind; 
  962. public function setSavedColumnName($savedColumnName) 
  963. $this->savedColumnName = $savedColumnName; 
  964. public function getSavedColumnName() 
  965. return $this->savedColumnName; 
  966. public function setType($type) 
  967. $this->type = $type; 
  968. public function getType() 
  969. return $this->type; 
  970.  
  971. class Google_Service_Doubleclicksearch_SavedColumnList extends Google_Collection 
  972. protected $collection_key = 'items'; 
  973. protected $internal_gapi_mappings = array( 
  974. ); 
  975. protected $itemsType = 'Google_Service_Doubleclicksearch_SavedColumn'; 
  976. protected $itemsDataType = 'array'; 
  977. public $kind; 
  978.  
  979.  
  980. public function setItems($items) 
  981. $this->items = $items; 
  982. public function getItems() 
  983. return $this->items; 
  984. public function setKind($kind) 
  985. $this->kind = $kind; 
  986. public function getKind() 
  987. return $this->kind; 
  988.  
  989. class Google_Service_Doubleclicksearch_UpdateAvailabilityRequest extends Google_Collection 
  990. protected $collection_key = 'availabilities'; 
  991. protected $internal_gapi_mappings = array( 
  992. ); 
  993. protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; 
  994. protected $availabilitiesDataType = 'array'; 
  995.  
  996.  
  997. public function setAvailabilities($availabilities) 
  998. $this->availabilities = $availabilities; 
  999. public function getAvailabilities() 
  1000. return $this->availabilities; 
  1001.  
  1002. class Google_Service_Doubleclicksearch_UpdateAvailabilityResponse extends Google_Collection 
  1003. protected $collection_key = 'availabilities'; 
  1004. protected $internal_gapi_mappings = array( 
  1005. ); 
  1006. protected $availabilitiesType = 'Google_Service_Doubleclicksearch_Availability'; 
  1007. protected $availabilitiesDataType = 'array'; 
  1008.  
  1009.  
  1010. public function setAvailabilities($availabilities) 
  1011. $this->availabilities = $availabilities; 
  1012. public function getAvailabilities() 
  1013. return $this->availabilities; 
.