PageRenderTime 62ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Google/Api/Ads/AdWords/v201109/ReportDefinitionService.php

http://google-api-adwords-php.googlecode.com/
PHP | 2684 lines | 1081 code | 294 blank | 1309 comment | 137 complexity | cfa99d25dcfda4a9b5a28668974130d4 MD5 | raw file
Possible License(s): Apache-2.0, MIT

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

  1. <?php
  2. /**
  3. * Contains all client objects for the ReportDefinitionService service.
  4. *
  5. * PHP version 5
  6. *
  7. * Copyright 2011, Google Inc. All Rights Reserved.
  8. *
  9. * Licensed under the Apache License, Version 2.0 (the "License");
  10. * you may not use this file except in compliance with the License.
  11. * You may obtain a copy of the License at
  12. *
  13. * http://www.apache.org/licenses/LICENSE-2.0
  14. *
  15. * Unless required by applicable law or agreed to in writing, software
  16. * distributed under the License is distributed on an "AS IS" BASIS,
  17. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. * See the License for the specific language governing permissions and
  19. * limitations under the License.
  20. *
  21. * @package GoogleApiAdsAdWords
  22. * @subpackage v201109
  23. * @category WebServices
  24. * @copyright 2011, Google Inc. All Rights Reserved.
  25. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
  26. * Version 2.0
  27. * @author Eric Koleda <eric.koleda@google.com>
  28. */
  29. /** Required classes. **/
  30. require_once dirname(__FILE__) . "/../Lib/AdWordsSoapClient.php";
  31. if (!class_exists("DateRange", FALSE)) {
  32. /**
  33. * Represents a range of dates that has either an upper or a lower bound.
  34. * The format for the date is YYYYMMDD.
  35. * @package GoogleApiAdsAdWords
  36. * @subpackage v201109
  37. */
  38. class DateRange {
  39. /**
  40. * @access public
  41. * @var string
  42. */
  43. public $min;
  44. /**
  45. * @access public
  46. * @var string
  47. */
  48. public $max;
  49. /**
  50. * Gets the namesapce of this class
  51. * @return the namespace of this class
  52. */
  53. public function getNamespace() {
  54. return "https://adwords.google.com/api/adwords/cm/v201109";
  55. }
  56. /**
  57. * Gets the xsi:type name of this class
  58. * @return the xsi:type name of this class
  59. */
  60. public function getXsiTypeName() {
  61. return "DateRange";
  62. }
  63. public function __construct($min = NULL, $max = NULL) {
  64. if(get_parent_class('DateRange')) parent::__construct();
  65. $this->min = $min;
  66. $this->max = $max;
  67. }
  68. }}
  69. if (!class_exists("EnumValuePair", FALSE)) {
  70. /**
  71. * Represents information about enum values.
  72. * @package GoogleApiAdsAdWords
  73. * @subpackage v201109
  74. */
  75. class EnumValuePair {
  76. /**
  77. * @access public
  78. * @var string
  79. */
  80. public $enumValue;
  81. /**
  82. * @access public
  83. * @var string
  84. */
  85. public $enumDisplayValue;
  86. /**
  87. * Gets the namesapce of this class
  88. * @return the namespace of this class
  89. */
  90. public function getNamespace() {
  91. return "https://adwords.google.com/api/adwords/cm/v201109";
  92. }
  93. /**
  94. * Gets the xsi:type name of this class
  95. * @return the xsi:type name of this class
  96. */
  97. public function getXsiTypeName() {
  98. return "EnumValuePair";
  99. }
  100. public function __construct($enumValue = NULL, $enumDisplayValue = NULL) {
  101. if(get_parent_class('EnumValuePair')) parent::__construct();
  102. $this->enumValue = $enumValue;
  103. $this->enumDisplayValue = $enumDisplayValue;
  104. }
  105. }}
  106. if (!class_exists("OrderBy", FALSE)) {
  107. /**
  108. * Specifies how the resulting information should be sorted.
  109. * @package GoogleApiAdsAdWords
  110. * @subpackage v201109
  111. */
  112. class OrderBy {
  113. /**
  114. * @access public
  115. * @var string
  116. */
  117. public $field;
  118. /**
  119. * @access public
  120. * @var tnsSortOrder
  121. */
  122. public $sortOrder;
  123. /**
  124. * Gets the namesapce of this class
  125. * @return the namespace of this class
  126. */
  127. public function getNamespace() {
  128. return "https://adwords.google.com/api/adwords/cm/v201109";
  129. }
  130. /**
  131. * Gets the xsi:type name of this class
  132. * @return the xsi:type name of this class
  133. */
  134. public function getXsiTypeName() {
  135. return "OrderBy";
  136. }
  137. public function __construct($field = NULL, $sortOrder = NULL) {
  138. if(get_parent_class('OrderBy')) parent::__construct();
  139. $this->field = $field;
  140. $this->sortOrder = $sortOrder;
  141. }
  142. }}
  143. if (!class_exists("Paging", FALSE)) {
  144. /**
  145. * Specifies the page of results to return in the response. A page is specified
  146. * by the result position to start at and the maximum number of results to
  147. * return.
  148. * @package GoogleApiAdsAdWords
  149. * @subpackage v201109
  150. */
  151. class Paging {
  152. /**
  153. * @access public
  154. * @var integer
  155. */
  156. public $startIndex;
  157. /**
  158. * @access public
  159. * @var integer
  160. */
  161. public $numberResults;
  162. /**
  163. * Gets the namesapce of this class
  164. * @return the namespace of this class
  165. */
  166. public function getNamespace() {
  167. return "https://adwords.google.com/api/adwords/cm/v201109";
  168. }
  169. /**
  170. * Gets the xsi:type name of this class
  171. * @return the xsi:type name of this class
  172. */
  173. public function getXsiTypeName() {
  174. return "Paging";
  175. }
  176. public function __construct($startIndex = NULL, $numberResults = NULL) {
  177. if(get_parent_class('Paging')) parent::__construct();
  178. $this->startIndex = $startIndex;
  179. $this->numberResults = $numberResults;
  180. }
  181. }}
  182. if (!class_exists("Predicate", FALSE)) {
  183. /**
  184. * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.
  185. * @package GoogleApiAdsAdWords
  186. * @subpackage v201109
  187. */
  188. class Predicate {
  189. /**
  190. * @access public
  191. * @var string
  192. */
  193. public $field;
  194. /**
  195. * @access public
  196. * @var tnsPredicateOperator
  197. */
  198. public $operator;
  199. /**
  200. * @access public
  201. * @var string[]
  202. */
  203. public $values;
  204. /**
  205. * Gets the namesapce of this class
  206. * @return the namespace of this class
  207. */
  208. public function getNamespace() {
  209. return "https://adwords.google.com/api/adwords/cm/v201109";
  210. }
  211. /**
  212. * Gets the xsi:type name of this class
  213. * @return the xsi:type name of this class
  214. */
  215. public function getXsiTypeName() {
  216. return "Predicate";
  217. }
  218. public function __construct($field = NULL, $operator = NULL, $values = NULL) {
  219. if(get_parent_class('Predicate')) parent::__construct();
  220. $this->field = $field;
  221. $this->operator = $operator;
  222. $this->values = $values;
  223. }
  224. }}
  225. if (!class_exists("ReportDefinitionField", FALSE)) {
  226. /**
  227. * Represents the fields that can be used to create a ReportDefinition.
  228. * This class allows the user to query the list of fields applicable to a
  229. * given report type. Consumers of reports will be able use the retrieved
  230. * fields through the {@link ReportDefinitionService#getReportFields}
  231. * api and run the corresponding reports.
  232. * @package GoogleApiAdsAdWords
  233. * @subpackage v201109
  234. */
  235. class ReportDefinitionField {
  236. /**
  237. * @access public
  238. * @var string
  239. */
  240. public $fieldName;
  241. /**
  242. * @access public
  243. * @var string
  244. */
  245. public $displayFieldName;
  246. /**
  247. * @access public
  248. * @var string
  249. */
  250. public $xmlAttributeName;
  251. /**
  252. * @access public
  253. * @var string
  254. */
  255. public $fieldType;
  256. /**
  257. * @access public
  258. * @var string[]
  259. */
  260. public $enumValues;
  261. /**
  262. * @access public
  263. * @var boolean
  264. */
  265. public $canSelect;
  266. /**
  267. * @access public
  268. * @var boolean
  269. */
  270. public $canFilter;
  271. /**
  272. * @access public
  273. * @var boolean
  274. */
  275. public $isEnumType;
  276. /**
  277. * @access public
  278. * @var EnumValuePair[]
  279. */
  280. public $enumValuePairs;
  281. /**
  282. * Gets the namesapce of this class
  283. * @return the namespace of this class
  284. */
  285. public function getNamespace() {
  286. return "https://adwords.google.com/api/adwords/cm/v201109";
  287. }
  288. /**
  289. * Gets the xsi:type name of this class
  290. * @return the xsi:type name of this class
  291. */
  292. public function getXsiTypeName() {
  293. return "ReportDefinitionField";
  294. }
  295. public function __construct($fieldName = NULL, $displayFieldName = NULL, $xmlAttributeName = NULL, $fieldType = NULL, $enumValues = NULL, $canSelect = NULL, $canFilter = NULL, $isEnumType = NULL, $enumValuePairs = NULL) {
  296. if(get_parent_class('ReportDefinitionField')) parent::__construct();
  297. $this->fieldName = $fieldName;
  298. $this->displayFieldName = $displayFieldName;
  299. $this->xmlAttributeName = $xmlAttributeName;
  300. $this->fieldType = $fieldType;
  301. $this->enumValues = $enumValues;
  302. $this->canSelect = $canSelect;
  303. $this->canFilter = $canFilter;
  304. $this->isEnumType = $isEnumType;
  305. $this->enumValuePairs = $enumValuePairs;
  306. }
  307. }}
  308. if (!class_exists("SoapRequestHeader", FALSE)) {
  309. /**
  310. * Defines the required and optional elements within the header of a SOAP request.
  311. * @package GoogleApiAdsAdWords
  312. * @subpackage v201109
  313. */
  314. class SoapRequestHeader {
  315. /**
  316. * @access public
  317. * @var string
  318. */
  319. public $authToken;
  320. /**
  321. * @access public
  322. * @var string
  323. */
  324. public $clientCustomerId;
  325. /**
  326. * @access public
  327. * @var string
  328. */
  329. public $developerToken;
  330. /**
  331. * @access public
  332. * @var string
  333. */
  334. public $userAgent;
  335. /**
  336. * @access public
  337. * @var boolean
  338. */
  339. public $validateOnly;
  340. /**
  341. * @access public
  342. * @var boolean
  343. */
  344. public $partialFailure;
  345. /**
  346. * Gets the namesapce of this class
  347. * @return the namespace of this class
  348. */
  349. public function getNamespace() {
  350. return "https://adwords.google.com/api/adwords/cm/v201109";
  351. }
  352. /**
  353. * Gets the xsi:type name of this class
  354. * @return the xsi:type name of this class
  355. */
  356. public function getXsiTypeName() {
  357. return "SoapHeader";
  358. }
  359. public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) {
  360. if(get_parent_class('SoapRequestHeader')) parent::__construct();
  361. $this->authToken = $authToken;
  362. $this->clientCustomerId = $clientCustomerId;
  363. $this->developerToken = $developerToken;
  364. $this->userAgent = $userAgent;
  365. $this->validateOnly = $validateOnly;
  366. $this->partialFailure = $partialFailure;
  367. }
  368. }}
  369. if (!class_exists("SoapResponseHeader", FALSE)) {
  370. /**
  371. * Defines the elements within the header of a SOAP response.
  372. * @package GoogleApiAdsAdWords
  373. * @subpackage v201109
  374. */
  375. class SoapResponseHeader {
  376. /**
  377. * @access public
  378. * @var string
  379. */
  380. public $requestId;
  381. /**
  382. * @access public
  383. * @var string
  384. */
  385. public $serviceName;
  386. /**
  387. * @access public
  388. * @var string
  389. */
  390. public $methodName;
  391. /**
  392. * @access public
  393. * @var integer
  394. */
  395. public $operations;
  396. /**
  397. * @access public
  398. * @var integer
  399. */
  400. public $responseTime;
  401. /**
  402. * @access public
  403. * @var integer
  404. */
  405. public $units;
  406. /**
  407. * Gets the namesapce of this class
  408. * @return the namespace of this class
  409. */
  410. public function getNamespace() {
  411. return "https://adwords.google.com/api/adwords/cm/v201109";
  412. }
  413. /**
  414. * Gets the xsi:type name of this class
  415. * @return the xsi:type name of this class
  416. */
  417. public function getXsiTypeName() {
  418. return "SoapResponseHeader";
  419. }
  420. public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL, $units = NULL) {
  421. if(get_parent_class('SoapResponseHeader')) parent::__construct();
  422. $this->requestId = $requestId;
  423. $this->serviceName = $serviceName;
  424. $this->methodName = $methodName;
  425. $this->operations = $operations;
  426. $this->responseTime = $responseTime;
  427. $this->units = $units;
  428. }
  429. }}
  430. if (!class_exists("Selector", FALSE)) {
  431. /**
  432. * A generic selector to specify the type of information to return.
  433. * @package GoogleApiAdsAdWords
  434. * @subpackage v201109
  435. */
  436. class Selector {
  437. /**
  438. * @access public
  439. * @var string[]
  440. */
  441. public $fields;
  442. /**
  443. * @access public
  444. * @var Predicate[]
  445. */
  446. public $predicates;
  447. /**
  448. * @access public
  449. * @var DateRange
  450. */
  451. public $dateRange;
  452. /**
  453. * @access public
  454. * @var OrderBy[]
  455. */
  456. public $ordering;
  457. /**
  458. * @access public
  459. * @var Paging
  460. */
  461. public $paging;
  462. /**
  463. * Gets the namesapce of this class
  464. * @return the namespace of this class
  465. */
  466. public function getNamespace() {
  467. return "https://adwords.google.com/api/adwords/cm/v201109";
  468. }
  469. /**
  470. * Gets the xsi:type name of this class
  471. * @return the xsi:type name of this class
  472. */
  473. public function getXsiTypeName() {
  474. return "Selector";
  475. }
  476. public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) {
  477. if(get_parent_class('Selector')) parent::__construct();
  478. $this->fields = $fields;
  479. $this->predicates = $predicates;
  480. $this->dateRange = $dateRange;
  481. $this->ordering = $ordering;
  482. $this->paging = $paging;
  483. }
  484. }}
  485. if (!class_exists("ApiError", FALSE)) {
  486. /**
  487. * The API error base class that provides details about an error that occurred
  488. * while processing a service request.
  489. *
  490. * <p>The OGNL field path is provided for parsers to identify the request data
  491. * element that may have caused the error.</p>
  492. * @package GoogleApiAdsAdWords
  493. * @subpackage v201109
  494. */
  495. class ApiError {
  496. /**
  497. * @access public
  498. * @var string
  499. */
  500. public $fieldPath;
  501. /**
  502. * @access public
  503. * @var string
  504. */
  505. public $trigger;
  506. /**
  507. * @access public
  508. * @var string
  509. */
  510. public $errorString;
  511. /**
  512. * @access public
  513. * @var string
  514. */
  515. public $ApiErrorType;
  516. private $_parameterMap = array (
  517. "ApiError.Type" => "ApiErrorType",
  518. );
  519. /**
  520. * Provided for setting non-php-standard named variables
  521. * @param $var Variable name to set
  522. * @param $value Value to set
  523. */
  524. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  525. /**
  526. * Provided for getting non-php-standard named variables
  527. * @param $var Variable name to get.
  528. * @return mixed Variable value
  529. */
  530. public function __get($var) {
  531. if (!array_key_exists($var, $this->_parameterMap)) {
  532. return NULL;
  533. } else {
  534. return $this->{$this->_parameterMap[$var]};
  535. }
  536. }
  537. /**
  538. * Provided for getting non-php-standard named variables
  539. * @return array parameter map
  540. */
  541. protected function getParameterMap() {
  542. return $this->_parameterMap;
  543. }
  544. /**
  545. * Gets the namesapce of this class
  546. * @return the namespace of this class
  547. */
  548. public function getNamespace() {
  549. return "https://adwords.google.com/api/adwords/cm/v201109";
  550. }
  551. /**
  552. * Gets the xsi:type name of this class
  553. * @return the xsi:type name of this class
  554. */
  555. public function getXsiTypeName() {
  556. return "ApiError";
  557. }
  558. public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  559. if(get_parent_class('ApiError')) parent::__construct();
  560. $this->fieldPath = $fieldPath;
  561. $this->trigger = $trigger;
  562. $this->errorString = $errorString;
  563. $this->ApiErrorType = $ApiErrorType;
  564. }
  565. }}
  566. if (!class_exists("ApplicationException", FALSE)) {
  567. /**
  568. * Base class for exceptions.
  569. * @package GoogleApiAdsAdWords
  570. * @subpackage v201109
  571. */
  572. class ApplicationException {
  573. /**
  574. * @access public
  575. * @var string
  576. */
  577. public $message;
  578. /**
  579. * @access public
  580. * @var string
  581. */
  582. public $ApplicationExceptionType;
  583. private $_parameterMap = array (
  584. "ApplicationException.Type" => "ApplicationExceptionType",
  585. );
  586. /**
  587. * Provided for setting non-php-standard named variables
  588. * @param $var Variable name to set
  589. * @param $value Value to set
  590. */
  591. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  592. /**
  593. * Provided for getting non-php-standard named variables
  594. * @param $var Variable name to get.
  595. * @return mixed Variable value
  596. */
  597. public function __get($var) {
  598. if (!array_key_exists($var, $this->_parameterMap)) {
  599. return NULL;
  600. } else {
  601. return $this->{$this->_parameterMap[$var]};
  602. }
  603. }
  604. /**
  605. * Provided for getting non-php-standard named variables
  606. * @return array parameter map
  607. */
  608. protected function getParameterMap() {
  609. return $this->_parameterMap;
  610. }
  611. /**
  612. * Gets the namesapce of this class
  613. * @return the namespace of this class
  614. */
  615. public function getNamespace() {
  616. return "https://adwords.google.com/api/adwords/cm/v201109";
  617. }
  618. /**
  619. * Gets the xsi:type name of this class
  620. * @return the xsi:type name of this class
  621. */
  622. public function getXsiTypeName() {
  623. return "ApplicationException";
  624. }
  625. public function __construct($message = NULL, $ApplicationExceptionType = NULL) {
  626. if(get_parent_class('ApplicationException')) parent::__construct();
  627. $this->message = $message;
  628. $this->ApplicationExceptionType = $ApplicationExceptionType;
  629. }
  630. }}
  631. if (!class_exists("ReportDefinitionSelector", FALSE)) {
  632. /**
  633. * A selector used to specify which report definitions should be returned.
  634. * @package GoogleApiAdsAdWords
  635. * @subpackage v201109
  636. */
  637. class ReportDefinitionSelector {
  638. /**
  639. * @access public
  640. * @var integer[]
  641. */
  642. public $definitionIds;
  643. /**
  644. * @access public
  645. * @var Paging
  646. */
  647. public $paging;
  648. /**
  649. * Gets the namesapce of this class
  650. * @return the namespace of this class
  651. */
  652. public function getNamespace() {
  653. return "https://adwords.google.com/api/adwords/cm/v201109";
  654. }
  655. /**
  656. * Gets the xsi:type name of this class
  657. * @return the xsi:type name of this class
  658. */
  659. public function getXsiTypeName() {
  660. return "ReportDefinitionSelector";
  661. }
  662. public function __construct($definitionIds = NULL, $paging = NULL) {
  663. if(get_parent_class('ReportDefinitionSelector')) parent::__construct();
  664. $this->definitionIds = $definitionIds;
  665. $this->paging = $paging;
  666. }
  667. }}
  668. if (!class_exists("ReportDefinition", FALSE)) {
  669. /**
  670. * Represents a report definition.
  671. * @package GoogleApiAdsAdWords
  672. * @subpackage v201109
  673. */
  674. class ReportDefinition {
  675. /**
  676. * @access public
  677. * @var integer
  678. */
  679. public $id;
  680. /**
  681. * @access public
  682. * @var Selector
  683. */
  684. public $selector;
  685. /**
  686. * @access public
  687. * @var string
  688. */
  689. public $reportName;
  690. /**
  691. * @access public
  692. * @var tnsReportDefinitionReportType
  693. */
  694. public $reportType;
  695. /**
  696. * @access public
  697. * @var boolean
  698. */
  699. public $hasAttachment;
  700. /**
  701. * @access public
  702. * @var tnsReportDefinitionDateRangeType
  703. */
  704. public $dateRangeType;
  705. /**
  706. * @access public
  707. * @var tnsDownloadFormat
  708. */
  709. public $downloadFormat;
  710. /**
  711. * @access public
  712. * @var string
  713. */
  714. public $creationTime;
  715. /**
  716. * @access public
  717. * @var boolean
  718. */
  719. public $includeZeroImpressions;
  720. /**
  721. * Gets the namesapce of this class
  722. * @return the namespace of this class
  723. */
  724. public function getNamespace() {
  725. return "https://adwords.google.com/api/adwords/cm/v201109";
  726. }
  727. /**
  728. * Gets the xsi:type name of this class
  729. * @return the xsi:type name of this class
  730. */
  731. public function getXsiTypeName() {
  732. return "ReportDefinition";
  733. }
  734. public function __construct($id = NULL, $selector = NULL, $reportName = NULL, $reportType = NULL, $hasAttachment = NULL, $dateRangeType = NULL, $downloadFormat = NULL, $creationTime = NULL, $includeZeroImpressions = NULL) {
  735. if(get_parent_class('ReportDefinition')) parent::__construct();
  736. $this->id = $id;
  737. $this->selector = $selector;
  738. $this->reportName = $reportName;
  739. $this->reportType = $reportType;
  740. $this->hasAttachment = $hasAttachment;
  741. $this->dateRangeType = $dateRangeType;
  742. $this->downloadFormat = $downloadFormat;
  743. $this->creationTime = $creationTime;
  744. $this->includeZeroImpressions = $includeZeroImpressions;
  745. }
  746. }}
  747. if (!class_exists("ReportDefinitionPage", FALSE)) {
  748. /**
  749. * Contains a subset of report definitions resulting from the filtering and
  750. * paging of the {@link ReportDefinitionService#get} call.
  751. * @package GoogleApiAdsAdWords
  752. * @subpackage v201109
  753. */
  754. class ReportDefinitionPage {
  755. /**
  756. * @access public
  757. * @var ReportDefinition[]
  758. */
  759. public $entries;
  760. /**
  761. * @access public
  762. * @var integer
  763. */
  764. public $totalNumEntries;
  765. /**
  766. * Gets the namesapce of this class
  767. * @return the namespace of this class
  768. */
  769. public function getNamespace() {
  770. return "https://adwords.google.com/api/adwords/cm/v201109";
  771. }
  772. /**
  773. * Gets the xsi:type name of this class
  774. * @return the xsi:type name of this class
  775. */
  776. public function getXsiTypeName() {
  777. return "ReportDefinitionPage";
  778. }
  779. public function __construct($entries = NULL, $totalNumEntries = NULL) {
  780. if(get_parent_class('ReportDefinitionPage')) parent::__construct();
  781. $this->entries = $entries;
  782. $this->totalNumEntries = $totalNumEntries;
  783. }
  784. }}
  785. if (!class_exists("AuthenticationErrorReason", FALSE)) {
  786. /**
  787. * The single reason for the authentication failure.
  788. * @package GoogleApiAdsAdWords
  789. * @subpackage v201109
  790. */
  791. class AuthenticationErrorReason {
  792. /**
  793. * Gets the namesapce of this class
  794. * @return the namespace of this class
  795. */
  796. public function getNamespace() {
  797. return "https://adwords.google.com/api/adwords/cm/v201109";
  798. }
  799. /**
  800. * Gets the xsi:type name of this class
  801. * @return the xsi:type name of this class
  802. */
  803. public function getXsiTypeName() {
  804. return "AuthenticationError.Reason";
  805. }
  806. public function __construct() {
  807. if(get_parent_class('AuthenticationErrorReason')) parent::__construct();
  808. }
  809. }}
  810. if (!class_exists("AuthorizationErrorReason", FALSE)) {
  811. /**
  812. * The reasons for the database error.
  813. * @package GoogleApiAdsAdWords
  814. * @subpackage v201109
  815. */
  816. class AuthorizationErrorReason {
  817. /**
  818. * Gets the namesapce of this class
  819. * @return the namespace of this class
  820. */
  821. public function getNamespace() {
  822. return "https://adwords.google.com/api/adwords/cm/v201109";
  823. }
  824. /**
  825. * Gets the xsi:type name of this class
  826. * @return the xsi:type name of this class
  827. */
  828. public function getXsiTypeName() {
  829. return "AuthorizationError.Reason";
  830. }
  831. public function __construct() {
  832. if(get_parent_class('AuthorizationErrorReason')) parent::__construct();
  833. }
  834. }}
  835. if (!class_exists("ClientTermsErrorReason", FALSE)) {
  836. /**
  837. * Enums for the various reasons an error can be thrown as a result of
  838. * ClientTerms violation.
  839. * @package GoogleApiAdsAdWords
  840. * @subpackage v201109
  841. */
  842. class ClientTermsErrorReason {
  843. /**
  844. * Gets the namesapce of this class
  845. * @return the namespace of this class
  846. */
  847. public function getNamespace() {
  848. return "https://adwords.google.com/api/adwords/cm/v201109";
  849. }
  850. /**
  851. * Gets the xsi:type name of this class
  852. * @return the xsi:type name of this class
  853. */
  854. public function getXsiTypeName() {
  855. return "ClientTermsError.Reason";
  856. }
  857. public function __construct() {
  858. if(get_parent_class('ClientTermsErrorReason')) parent::__construct();
  859. }
  860. }}
  861. if (!class_exists("CollectionSizeErrorReason", FALSE)) {
  862. /**
  863. * The reasons for the target error.
  864. * @package GoogleApiAdsAdWords
  865. * @subpackage v201109
  866. */
  867. class CollectionSizeErrorReason {
  868. /**
  869. * Gets the namesapce of this class
  870. * @return the namespace of this class
  871. */
  872. public function getNamespace() {
  873. return "https://adwords.google.com/api/adwords/cm/v201109";
  874. }
  875. /**
  876. * Gets the xsi:type name of this class
  877. * @return the xsi:type name of this class
  878. */
  879. public function getXsiTypeName() {
  880. return "CollectionSizeError.Reason";
  881. }
  882. public function __construct() {
  883. if(get_parent_class('CollectionSizeErrorReason')) parent::__construct();
  884. }
  885. }}
  886. if (!class_exists("DatabaseErrorReason", FALSE)) {
  887. /**
  888. * The reasons for the database error.
  889. * @package GoogleApiAdsAdWords
  890. * @subpackage v201109
  891. */
  892. class DatabaseErrorReason {
  893. /**
  894. * Gets the namesapce of this class
  895. * @return the namespace of this class
  896. */
  897. public function getNamespace() {
  898. return "https://adwords.google.com/api/adwords/cm/v201109";
  899. }
  900. /**
  901. * Gets the xsi:type name of this class
  902. * @return the xsi:type name of this class
  903. */
  904. public function getXsiTypeName() {
  905. return "DatabaseError.Reason";
  906. }
  907. public function __construct() {
  908. if(get_parent_class('DatabaseErrorReason')) parent::__construct();
  909. }
  910. }}
  911. if (!class_exists("DateErrorReason", FALSE)) {
  912. /**
  913. * The reasons for the target error.
  914. * @package GoogleApiAdsAdWords
  915. * @subpackage v201109
  916. */
  917. class DateErrorReason {
  918. /**
  919. * Gets the namesapce of this class
  920. * @return the namespace of this class
  921. */
  922. public function getNamespace() {
  923. return "https://adwords.google.com/api/adwords/cm/v201109";
  924. }
  925. /**
  926. * Gets the xsi:type name of this class
  927. * @return the xsi:type name of this class
  928. */
  929. public function getXsiTypeName() {
  930. return "DateError.Reason";
  931. }
  932. public function __construct() {
  933. if(get_parent_class('DateErrorReason')) parent::__construct();
  934. }
  935. }}
  936. if (!class_exists("DistinctErrorReason", FALSE)) {
  937. /**
  938. * The reasons for the validation error.
  939. * @package GoogleApiAdsAdWords
  940. * @subpackage v201109
  941. */
  942. class DistinctErrorReason {
  943. /**
  944. * Gets the namesapce of this class
  945. * @return the namespace of this class
  946. */
  947. public function getNamespace() {
  948. return "https://adwords.google.com/api/adwords/cm/v201109";
  949. }
  950. /**
  951. * Gets the xsi:type name of this class
  952. * @return the xsi:type name of this class
  953. */
  954. public function getXsiTypeName() {
  955. return "DistinctError.Reason";
  956. }
  957. public function __construct() {
  958. if(get_parent_class('DistinctErrorReason')) parent::__construct();
  959. }
  960. }}
  961. if (!class_exists("DownloadFormat", FALSE)) {
  962. /**
  963. * Enum class that describes the supported formats for content downloads.
  964. * The order mimics the order in which download options are presented in the
  965. * legacy report center.
  966. * @package GoogleApiAdsAdWords
  967. * @subpackage v201109
  968. */
  969. class DownloadFormat {
  970. /**
  971. * Gets the namesapce of this class
  972. * @return the namespace of this class
  973. */
  974. public function getNamespace() {
  975. return "https://adwords.google.com/api/adwords/cm/v201109";
  976. }
  977. /**
  978. * Gets the xsi:type name of this class
  979. * @return the xsi:type name of this class
  980. */
  981. public function getXsiTypeName() {
  982. return "DownloadFormat";
  983. }
  984. public function __construct() {
  985. if(get_parent_class('DownloadFormat')) parent::__construct();
  986. }
  987. }}
  988. if (!class_exists("InternalApiErrorReason", FALSE)) {
  989. /**
  990. * The single reason for the internal API error.
  991. * @package GoogleApiAdsAdWords
  992. * @subpackage v201109
  993. */
  994. class InternalApiErrorReason {
  995. /**
  996. * Gets the namesapce of this class
  997. * @return the namespace of this class
  998. */
  999. public function getNamespace() {
  1000. return "https://adwords.google.com/api/adwords/cm/v201109";
  1001. }
  1002. /**
  1003. * Gets the xsi:type name of this class
  1004. * @return the xsi:type name of this class
  1005. */
  1006. public function getXsiTypeName() {
  1007. return "InternalApiError.Reason";
  1008. }
  1009. public function __construct() {
  1010. if(get_parent_class('InternalApiErrorReason')) parent::__construct();
  1011. }
  1012. }}
  1013. if (!class_exists("NotEmptyErrorReason", FALSE)) {
  1014. /**
  1015. * The reasons for the validation error.
  1016. * @package GoogleApiAdsAdWords
  1017. * @subpackage v201109
  1018. */
  1019. class NotEmptyErrorReason {
  1020. /**
  1021. * Gets the namesapce of this class
  1022. * @return the namespace of this class
  1023. */
  1024. public function getNamespace() {
  1025. return "https://adwords.google.com/api/adwords/cm/v201109";
  1026. }
  1027. /**
  1028. * Gets the xsi:type name of this class
  1029. * @return the xsi:type name of this class
  1030. */
  1031. public function getXsiTypeName() {
  1032. return "NotEmptyError.Reason";
  1033. }
  1034. public function __construct() {
  1035. if(get_parent_class('NotEmptyErrorReason')) parent::__construct();
  1036. }
  1037. }}
  1038. if (!class_exists("NotWhitelistedErrorReason", FALSE)) {
  1039. /**
  1040. * The single reason for the whitelist error.
  1041. * @package GoogleApiAdsAdWords
  1042. * @subpackage v201109
  1043. */
  1044. class NotWhitelistedErrorReason {
  1045. /**
  1046. * Gets the namesapce of this class
  1047. * @return the namespace of this class
  1048. */
  1049. public function getNamespace() {
  1050. return "https://adwords.google.com/api/adwords/cm/v201109";
  1051. }
  1052. /**
  1053. * Gets the xsi:type name of this class
  1054. * @return the xsi:type name of this class
  1055. */
  1056. public function getXsiTypeName() {
  1057. return "NotWhitelistedError.Reason";
  1058. }
  1059. public function __construct() {
  1060. if(get_parent_class('NotWhitelistedErrorReason')) parent::__construct();
  1061. }
  1062. }}
  1063. if (!class_exists("NullErrorReason", FALSE)) {
  1064. /**
  1065. * The reasons for the validation error.
  1066. * @package GoogleApiAdsAdWords
  1067. * @subpackage v201109
  1068. */
  1069. class NullErrorReason {
  1070. /**
  1071. * Gets the namesapce of this class
  1072. * @return the namespace of this class
  1073. */
  1074. public function getNamespace() {
  1075. return "https://adwords.google.com/api/adwords/cm/v201109";
  1076. }
  1077. /**
  1078. * Gets the xsi:type name of this class
  1079. * @return the xsi:type name of this class
  1080. */
  1081. public function getXsiTypeName() {
  1082. return "NullError.Reason";
  1083. }
  1084. public function __construct() {
  1085. if(get_parent_class('NullErrorReason')) parent::__construct();
  1086. }
  1087. }}
  1088. if (!class_exists("OperatorErrorReason", FALSE)) {
  1089. /**
  1090. * The reasons for the validation error.
  1091. * @package GoogleApiAdsAdWords
  1092. * @subpackage v201109
  1093. */
  1094. class OperatorErrorReason {
  1095. /**
  1096. * Gets the namesapce of this class
  1097. * @return the namespace of this class
  1098. */
  1099. public function getNamespace() {
  1100. return "https://adwords.google.com/api/adwords/cm/v201109";
  1101. }
  1102. /**
  1103. * Gets the xsi:type name of this class
  1104. * @return the xsi:type name of this class
  1105. */
  1106. public function getXsiTypeName() {
  1107. return "OperatorError.Reason";
  1108. }
  1109. public function __construct() {
  1110. if(get_parent_class('OperatorErrorReason')) parent::__construct();
  1111. }
  1112. }}
  1113. if (!class_exists("PredicateOperator", FALSE)) {
  1114. /**
  1115. * Defines the valid set of operators.
  1116. * @package GoogleApiAdsAdWords
  1117. * @subpackage v201109
  1118. */
  1119. class PredicateOperator {
  1120. /**
  1121. * Gets the namesapce of this class
  1122. * @return the namespace of this class
  1123. */
  1124. public function getNamespace() {
  1125. return "https://adwords.google.com/api/adwords/cm/v201109";
  1126. }
  1127. /**
  1128. * Gets the xsi:type name of this class
  1129. * @return the xsi:type name of this class
  1130. */
  1131. public function getXsiTypeName() {
  1132. return "Predicate.Operator";
  1133. }
  1134. public function __construct() {
  1135. if(get_parent_class('PredicateOperator')) parent::__construct();
  1136. }
  1137. }}
  1138. if (!class_exists("QuotaCheckErrorReason", FALSE)) {
  1139. /**
  1140. * Enums for all the reasons an error can be thrown to the user during
  1141. * billing quota checks.
  1142. * @package GoogleApiAdsAdWords
  1143. * @subpackage v201109
  1144. */
  1145. class QuotaCheckErrorReason {
  1146. /**
  1147. * Gets the namesapce of this class
  1148. * @return the namespace of this class
  1149. */
  1150. public function getNamespace() {
  1151. return "https://adwords.google.com/api/adwords/cm/v201109";
  1152. }
  1153. /**
  1154. * Gets the xsi:type name of this class
  1155. * @return the xsi:type name of this class
  1156. */
  1157. public function getXsiTypeName() {
  1158. return "QuotaCheckError.Reason";
  1159. }
  1160. public function __construct() {
  1161. if(get_parent_class('QuotaCheckErrorReason')) parent::__construct();
  1162. }
  1163. }}
  1164. if (!class_exists("RangeErrorReason", FALSE)) {
  1165. /**
  1166. * The reasons for the target error.
  1167. * @package GoogleApiAdsAdWords
  1168. * @subpackage v201109
  1169. */
  1170. class RangeErrorReason {
  1171. /**
  1172. * Gets the namesapce of this class
  1173. * @return the namespace of this class
  1174. */
  1175. public function getNamespace() {
  1176. return "https://adwords.google.com/api/adwords/cm/v201109";
  1177. }
  1178. /**
  1179. * Gets the xsi:type name of this class
  1180. * @return the xsi:type name of this class
  1181. */
  1182. public function getXsiTypeName() {
  1183. return "RangeError.Reason";
  1184. }
  1185. public function __construct() {
  1186. if(get_parent_class('RangeErrorReason')) parent::__construct();
  1187. }
  1188. }}
  1189. if (!class_exists("RateExceededErrorReason", FALSE)) {
  1190. /**
  1191. * The reason for the rate exceeded error.
  1192. * @package GoogleApiAdsAdWords
  1193. * @subpackage v201109
  1194. */
  1195. class RateExceededErrorReason {
  1196. /**
  1197. * Gets the namesapce of this class
  1198. * @return the namespace of this class
  1199. */
  1200. public function getNamespace() {
  1201. return "https://adwords.google.com/api/adwords/cm/v201109";
  1202. }
  1203. /**
  1204. * Gets the xsi:type name of this class
  1205. * @return the xsi:type name of this class
  1206. */
  1207. public function getXsiTypeName() {
  1208. return "RateExceededError.Reason";
  1209. }
  1210. public function __construct() {
  1211. if(get_parent_class('RateExceededErrorReason')) parent::__construct();
  1212. }
  1213. }}
  1214. if (!class_exists("ReadOnlyErrorReason", FALSE)) {
  1215. /**
  1216. * The reasons for the target error.
  1217. * @package GoogleApiAdsAdWords
  1218. * @subpackage v201109
  1219. */
  1220. class ReadOnlyErrorReason {
  1221. /**
  1222. * Gets the namesapce of this class
  1223. * @return the namespace of this class
  1224. */
  1225. public function getNamespace() {
  1226. return "https://adwords.google.com/api/adwords/cm/v201109";
  1227. }
  1228. /**
  1229. * Gets the xsi:type name of this class
  1230. * @return the xsi:type name of this class
  1231. */
  1232. public function getXsiTypeName() {
  1233. return "ReadOnlyError.Reason";
  1234. }
  1235. public function __construct() {
  1236. if(get_parent_class('ReadOnlyErrorReason')) parent::__construct();
  1237. }
  1238. }}
  1239. if (!class_exists("RejectedErrorReason", FALSE)) {
  1240. /**
  1241. * The reasons for the target error.
  1242. * @package GoogleApiAdsAdWords
  1243. * @subpackage v201109
  1244. */
  1245. class RejectedErrorReason {
  1246. /**
  1247. * Gets the namesapce of this class
  1248. * @return the namespace of this class
  1249. */
  1250. public function getNamespace() {
  1251. return "https://adwords.google.com/api/adwords/cm/v201109";
  1252. }
  1253. /**
  1254. * Gets the xsi:type name of this class
  1255. * @return the xsi:type name of this class
  1256. */
  1257. public function getXsiTypeName() {
  1258. return "RejectedError.Reason";
  1259. }
  1260. public function __construct() {
  1261. if(get_parent_class('RejectedErrorReason')) parent::__construct();
  1262. }
  1263. }}
  1264. if (!class_exists("ReportDefinitionDateRangeType", FALSE)) {
  1265. /**
  1266. * Enums for date range of report.
  1267. * @package GoogleApiAdsAdWords
  1268. * @subpackage v201109
  1269. */
  1270. class ReportDefinitionDateRangeType {
  1271. /**
  1272. * Gets the namesapce of this class
  1273. * @return the namespace of this class
  1274. */
  1275. public function getNamespace() {
  1276. return "https://adwords.google.com/api/adwords/cm/v201109";
  1277. }
  1278. /**
  1279. * Gets the xsi:type name of this class
  1280. * @return the xsi:type name of this class
  1281. */
  1282. public function getXsiTypeName() {
  1283. return "ReportDefinition.DateRangeType";
  1284. }
  1285. public function __construct() {
  1286. if(get_parent_class('ReportDefinitionDateRangeType')) parent::__construct();
  1287. }
  1288. }}
  1289. if (!class_exists("ReportDefinitionReportType", FALSE)) {
  1290. /**
  1291. * Enums for report types.
  1292. * @package GoogleApiAdsAdWords
  1293. * @subpackage v201109
  1294. */
  1295. class ReportDefinitionReportType {
  1296. /**
  1297. * Gets the namesapce of this class
  1298. * @return the namespace of this class
  1299. */
  1300. public function getNamespace() {
  1301. return "https://adwords.google.com/api/adwords/cm/v201109";
  1302. }
  1303. /**
  1304. * Gets the xsi:type name of this class
  1305. * @return the xsi:type name of this class
  1306. */
  1307. public function getXsiTypeName() {
  1308. return "ReportDefinition.ReportType";
  1309. }
  1310. public function __construct() {
  1311. if(get_parent_class('ReportDefinitionReportType')) parent::__construct();
  1312. }
  1313. }}
  1314. if (!class_exists("ReportDefinitionErrorReason", FALSE)) {
  1315. /**
  1316. * Enums for all the reasons an error can be thrown to the user during
  1317. * a {@link ReportDefinitionService#mutate(java.util.List)} operation.
  1318. * @package GoogleApiAdsAdWords
  1319. * @subpackage v201109
  1320. */
  1321. class ReportDefinitionErrorReason {
  1322. /**
  1323. * Gets the namesapce of this class
  1324. * @return the namespace of this class
  1325. */
  1326. public function getNamespace() {
  1327. return "https://adwords.google.com/api/adwords/cm/v201109";
  1328. }
  1329. /**
  1330. * Gets the xsi:type name of this class
  1331. * @return the xsi:type name of this class
  1332. */
  1333. public function getXsiTypeName() {
  1334. return "ReportDefinitionError.Reason";
  1335. }
  1336. public function __construct() {
  1337. if(get_parent_class('ReportDefinitionErrorReason')) parent::__construct();
  1338. }
  1339. }}
  1340. if (!class_exists("RequestErrorReason", FALSE)) {
  1341. /**
  1342. * Error reason is unknown.
  1343. * @package GoogleApiAdsAdWords
  1344. * @subpackage v201109
  1345. */
  1346. class RequestErrorReason {
  1347. /**
  1348. * Gets the namesapce of this class
  1349. * @return the namespace of this class
  1350. */
  1351. public function getNamespace() {
  1352. return "https://adwords.google.com/api/adwords/cm/v201109";
  1353. }
  1354. /**
  1355. * Gets the xsi:type name of this class
  1356. * @return the xsi:type name of this class
  1357. */
  1358. public function getXsiTypeName() {
  1359. return "RequestError.Reason";
  1360. }
  1361. public function __construct() {
  1362. if(get_parent_class('RequestErrorReason')) parent::__construct();
  1363. }
  1364. }}
  1365. if (!class_exists("RequiredErrorReason", FALSE)) {
  1366. /**
  1367. * The reasons for the target error.
  1368. * @package GoogleApiAdsAdWords
  1369. * @subpackage v201109
  1370. */
  1371. class RequiredErrorReason {
  1372. /**
  1373. * Gets the namesapce of this class
  1374. * @return the namespace of this class
  1375. */
  1376. public function getNamespace() {
  1377. return "https://adwords.google.com/api/adwords/cm/v201109";
  1378. }
  1379. /**
  1380. * Gets the xsi:type name of this class
  1381. * @return the xsi:type name of this class
  1382. */
  1383. public function getXsiTypeName() {
  1384. return "RequiredError.Reason";
  1385. }
  1386. public function __construct() {
  1387. if(get_parent_class('RequiredErrorReason')) parent::__construct();
  1388. }
  1389. }}
  1390. if (!class_exists("SelectorErrorReason", FALSE)) {
  1391. /**
  1392. * The reasons for the target error.
  1393. * @package GoogleApiAdsAdWords
  1394. * @subpackage v201109
  1395. */
  1396. class SelectorErrorReason {
  1397. /**
  1398. * Gets the namesapce of this class
  1399. * @return the namespace of this class
  1400. */
  1401. public function getNamespace() {
  1402. return "https://adwords.google.com/api/adwords/cm/v201109";
  1403. }
  1404. /**
  1405. * Gets the xsi:type name of this class
  1406. * @return the xsi:type name of this class
  1407. */
  1408. public function getXsiTypeName() {
  1409. return "SelectorError.Reason";
  1410. }
  1411. public function __construct() {
  1412. if(get_parent_class('SelectorErrorReason')) parent::__construct();
  1413. }
  1414. }}
  1415. if (!class_exists("SizeLimitErrorReason", FALSE)) {
  1416. /**
  1417. * The reasons for Ad Scheduling errors.
  1418. * @package GoogleApiAdsAdWords
  1419. * @subpackage v201109
  1420. */
  1421. class SizeLimitErrorReason {
  1422. /**
  1423. * Gets the namesapce of this class
  1424. * @return the namespace of this class
  1425. */
  1426. public function getNamespace() {
  1427. return "https://adwords.google.com/api/adwords/cm/v201109";
  1428. }
  1429. /**
  1430. * Gets the xsi:type name of this class
  1431. * @return the xsi:type name of this class
  1432. */
  1433. public function getXsiTypeName() {
  1434. return "SizeLimitError.Reason";
  1435. }
  1436. public function __construct() {
  1437. if(get_parent_class('SizeLimitErrorReason')) parent::__construct();
  1438. }
  1439. }}
  1440. if (!class_exists("SortOrder", FALSE)) {
  1441. /**
  1442. * Possible orders of sorting.
  1443. * @package GoogleApiAdsAdWords
  1444. * @subpackage v201109
  1445. */
  1446. class SortOrder {
  1447. /**
  1448. * Gets the namesapce of this class
  1449. * @return the namespace of this class
  1450. */
  1451. public function getNamespace() {
  1452. return "https://adwords.google.com/api/adwords/cm/v201109";
  1453. }
  1454. /**
  1455. * Gets the xsi:type name of this class
  1456. * @return the xsi:type name of this class
  1457. */
  1458. public function getXsiTypeName() {
  1459. return "SortOrder";
  1460. }
  1461. public function __construct() {
  1462. if(get_parent_class('SortOrder')) parent::__construct();
  1463. }
  1464. }}
  1465. if (!class_exists("ReportDefinitionServiceGet", FALSE)) {
  1466. /**
  1467. * <span class="constraint Required">This field is required and should not be {@code null}.</span>
  1468. *
  1469. *
  1470. *
  1471. * Returns the list of report definitions that meet the selector criteria.
  1472. * @param selector Determines which report definitions to return. If empty,
  1473. * all report definitions will be returned.
  1474. * @return A list of report definitions.
  1475. * @throws ApiException if problems occurred while fetching report definitions
  1476. * information.
  1477. * @package GoogleApiAdsAdWords
  1478. * @subpackage v201109
  1479. */
  1480. class ReportDefinitionServiceGet {
  1481. /**
  1482. * @access public
  1483. * @var ReportDefinitionSelector
  1484. */
  1485. public $selector;
  1486. /**
  1487. * Gets the namesapce of this class
  1488. * @return the namespace of this class
  1489. */
  1490. public function getNamespace() {
  1491. return "https://adwords.google.com/api/adwords/cm/v201109";
  1492. }
  1493. /**
  1494. * Gets the xsi:type name of this class
  1495. * @return the xsi:type name of this class
  1496. */
  1497. public function getXsiTypeName() {
  1498. return "";
  1499. }
  1500. public function __construct($selector = NULL) {
  1501. if(get_parent_class('ReportDefinitionServiceGet')) parent::__construct();
  1502. $this->selector = $selector;
  1503. }
  1504. }}
  1505. if (!class_exists("ReportDefinitionServiceGetResponse", FALSE)) {
  1506. /**
  1507. *
  1508. * @package GoogleApiAdsAdWords
  1509. * @subpackage v201109
  1510. */
  1511. class ReportDefinitionServiceGetResponse {
  1512. /**
  1513. * @access public
  1514. * @var ReportDefinitionPage
  1515. */
  1516. public $rval;
  1517. /**
  1518. * Gets the namesapce of this class
  1519. * @return the namespace of this class
  1520. */
  1521. public function getNamespace() {
  1522. return "https://adwords.google.com/api/adwords/cm/v201109";
  1523. }
  1524. /**
  1525. * Gets the xsi:type name of this class
  1526. * @return the xsi:type name of this class
  1527. */
  1528. public function getXsiTypeName() {
  1529. return "";
  1530. }
  1531. public function __construct($rval = NULL) {
  1532. if(get_parent_class('ReportDefinitionServiceGetResponse')) parent::__construct();
  1533. $this->rval = $rval;
  1534. }
  1535. }}
  1536. if (!class_exists("getReportFields", FALSE)) {
  1537. /**
  1538. * <span class="constraint Required">This field is required and should not be {@code null}.</span>
  1539. *
  1540. *
  1541. *
  1542. * Returns the available report fields for a given report type.
  1543. *
  1544. * @param reportType The type of report.
  1545. * @return The list of available report fields. Each
  1546. * {@link ReportDefinitionField} encapsulates the field name, the
  1547. * field data type, and the enum values (if the field's type is
  1548. * {@code enum}).
  1549. * @throws ApiException if a problem occurred while fetching the
  1550. * ReportDefinitionField information.
  1551. * @package GoogleApiAdsAdWords
  1552. * @subpackage v201109
  1553. */
  1554. class getReportFields {
  1555. /**
  1556. * @access public
  1557. * @var tnsReportDefinitionReportType
  1558. */
  1559. public $reportType;
  1560. /**
  1561. * Gets the namesapce of this class
  1562. * @return the namespace of this class
  1563. */
  1564. public function getNamespace() {
  1565. return "https://adwords.google.com/api/adwords/cm/v201109";
  1566. }
  1567. /**
  1568. * Gets the xsi:type name of this class
  1569. * @return the xsi:type name of this class
  1570. */
  1571. public function getXsiTypeName() {
  1572. return "";
  1573. }
  1574. public function __construct($reportType = NULL) {
  1575. if(get_parent_class('getReportFields')) parent::__construct();
  1576. $this->reportType = $reportType;
  1577. }
  1578. }}
  1579. if (!class_exists("getReportFieldsResponse", FALSE)) {
  1580. /**
  1581. *
  1582. * @package GoogleApiAdsAdWords
  1583. * @subpackage v201109
  1584. */
  1585. class getReportFieldsResponse {
  1586. /**
  1587. * @access public
  1588. * @var ReportDefinitionField[]
  1589. */
  1590. public $rval;
  1591. /**
  1592. * Gets the namesapce of this class
  1593. * @return the namespace of this class
  1594. */
  1595. public function getNamespace() {
  1596. return "https://adwords.google.com/api/adwords/cm/v201109";
  1597. }
  1598. /**
  1599. * Gets the xsi:type name of this class
  1600. * @return the xsi:type name of this class
  1601. */
  1602. public function getXsiTypeName() {
  1603. return "";
  1604. }
  1605. public function __construct($rval = NULL) {
  1606. if(get_parent_class('getReportFieldsResponse')) parent::__construct();
  1607. $this->rval = $rval;
  1608. }
  1609. }}
  1610. if (!class_exists("AuthenticationError", FALSE)) {
  1611. /**
  1612. * Errors returned when Authentication failed.
  1613. * @package GoogleApiAdsAdWords
  1614. * @subpackage v201109
  1615. */
  1616. class AuthenticationError extends ApiError {
  1617. /**
  1618. * @access public
  1619. * @var tnsAuthenticationErrorReason
  1620. */
  1621. public $reason;
  1622. /**
  1623. * Gets the namesapce of this class
  1624. * @return the namespace of this class
  1625. */
  1626. public function getNamespace() {
  1627. return "https://adwords.google.com/api/adwords/cm/v201109";
  1628. }
  1629. /**
  1630. * Gets the xsi:type name of this class
  1631. * @return the xsi:type name of this class
  1632. */
  1633. public function getXsiTypeName() {
  1634. return "AuthenticationError";
  1635. }
  1636. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1637. if(get_parent_class('AuthenticationError')) parent::__construct();
  1638. $this->reason = $reason;
  1639. $this->fieldPath = $fieldPath;
  1640. $this->trigger = $trigger;
  1641. $this->errorString = $errorString;
  1642. $this->ApiErrorType = $ApiErrorType;
  1643. }
  1644. }}
  1645. if (!class_exists("AuthorizationError", FALSE)) {
  1646. /**
  1647. * Errors encountered when trying to authorize a user.
  1648. * @package GoogleApiAdsAdWords
  1649. * @subpackage v201109
  1650. */
  1651. class AuthorizationError extends ApiError {
  1652. /**
  1653. * @access public
  1654. * @var tnsAuthorizationErrorReason
  1655. */
  1656. public $reason;
  1657. /**
  1658. * Gets the namesapce of this class
  1659. * @return the namespace of this class
  1660. */
  1661. public function getNamespace() {
  1662. return "https://adwords.google.com/api/adwords/cm/v201109";
  1663. }
  1664. /**
  1665. * Gets the xsi:type name of this class
  1666. * @return the xsi:type name of this class
  1667. */
  1668. public function getXsiTypeName() {
  1669. return "AuthorizationError";
  1670. }
  1671. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1672. if(get_parent_class('AuthorizationError')) parent::__construct();
  1673. $this->reason = $reason;
  1674. $this->fieldPath = $fieldPath;
  1675. $this->trigger = $trigger;
  1676. $this->errorString = $errorString;
  1677. $this->ApiErrorType = $ApiErrorType;
  1678. }
  1679. }}
  1680. if (!class_exists("ClientTermsError", FALSE)) {
  1681. /**
  1682. * Error due to user not accepting the AdWords terms of service.
  1683. * @package GoogleApiAdsAdWords
  1684. * @subpackage v201109
  1685. */
  1686. class ClientTermsError extends ApiError {
  1687. /**
  1688. * @access public
  1689. * @var tnsClientTermsErrorReason
  1690. */
  1691. public $reason;
  1692. /**
  1693. * Gets the namesapce of this class
  1694. * @return the namespace of this class
  1695. */
  1696. public function getNamespace() {
  1697. return "https://adwords.google.com/api/adwords/cm/v201109";
  1698. }
  1699. /**
  1700. * Gets the xsi:type name of this class
  1701. * @return the xsi:type name of this class
  1702. */
  1703. public function getXsiTypeName() {
  1704. return "ClientTermsError";
  1705. }
  1706. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1707. if(get_parent_class('ClientTermsError')) parent::__construct();
  1708. $this->reason = $reason;
  1709. $this->fieldPath = $fieldPath;
  1710. $this->trigger = $trigger;
  1711. $this->errorString = $errorString;
  1712. $this->ApiErrorType = $ApiErrorType;
  1713. }
  1714. }}
  1715. if (!class_exists("CollectionSizeError", FALSE)) {
  1716. /**
  1717. * A list of all errors associated with the @ContentsSize constraint.
  1718. * @package GoogleApiAdsAdWords
  1719. * @subpackage v201109
  1720. */
  1721. class CollectionSizeError extends ApiError {
  1722. /**
  1723. * @access public
  1724. * @var tnsCollectionSizeErrorReason
  1725. */
  1726. public $reason;
  1727. /**
  1728. * Gets the namesapce of this class
  1729. * @return the namespace of this class
  1730. */
  1731. public function getNamespace() {
  1732. return "https://adwords.google.com/api/adwords/cm/v201109";
  1733. }
  1734. /**
  1735. * Gets the xsi:type name of this class
  1736. * @return the xsi:type name of this class
  1737. */
  1738. public function getXsiTypeName() {
  1739. return "CollectionSizeError";
  1740. }
  1741. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1742. if(get_parent_class('CollectionSizeError')) parent::__construct();
  1743. $this->reason = $reason;
  1744. $this->fieldPath = $fieldPath;
  1745. $this->trigger = $trigger;
  1746. $this->errorString = $errorString;
  1747. $this->ApiErrorType = $ApiErrorType;
  1748. }
  1749. }}
  1750. if (!class_exists("DateError", FALSE)) {
  1751. /**
  1752. * Errors associated with invalid dates and date ranges.
  1753. * @package GoogleApiAdsAdWords
  1754. * @subpackage v201109
  1755. */
  1756. class DateError extends ApiError {
  1757. /**
  1758. * @access public
  1759. * @var tnsDateErrorReason
  1760. */
  1761. public $reason;
  1762. /**
  1763. * Gets the namesapce of this class
  1764. * @return the namespace of this class
  1765. */
  1766. public function getNamespace() {
  1767. return "https://adwords.google.com/api/adwords/cm/v201109";
  1768. }
  1769. /**
  1770. * Gets the xsi:type name of this class
  1771. * @return the xsi:type name of this class
  1772. */
  1773. public function getXsiTypeName() {
  1774. return "DateError";
  1775. }
  1776. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1777. if(get_parent_class('DateError')) parent::__construct();
  1778. $this->reason = $reason;
  1779. $this->fieldPath = $fieldPath;
  1780. $this->trigger = $trigger;
  1781. $this->errorString = $errorString;
  1782. $this->ApiErrorType = $ApiErrorType;
  1783. }
  1784. }}
  1785. if (!class_exists("DistinctError", FALSE)) {
  1786. /**
  1787. * Errors related to distinct ids or content.
  1788. * @package GoogleApiAdsAdWords
  1789. * @subpackage v201109
  1790. */
  1791. class DistinctError extends ApiError {
  1792. /**
  1793. * @access public
  1794. * @var tnsDistinctErrorReason
  1795. */
  1796. public $reason;
  1797. /**
  1798. * Gets the namesapce of this class
  1799. * @return the namespace of this class
  1800. */
  1801. public function getNamespace() {
  1802. return "https://adwords.google.com/api/adwords/cm/v201109";
  1803. }
  1804. /**
  1805. * Gets the xsi:type name of this class
  1806. * @return the xsi:type name of this class
  1807. */
  1808. public function getXsiTypeName() {
  1809. return "DistinctError";
  1810. }
  1811. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1812. if(get_parent_class('DistinctError')) parent::__construct();
  1813. $this->reason = $reason;
  1814. $this->fieldPath = $fieldPath;
  1815. $this->trigger = $trigger;
  1816. $this->errorString = $errorString;
  1817. $this->ApiErrorType = $ApiErrorType;
  1818. }
  1819. }}
  1820. if (!class_exists("InternalApiError", FALSE)) {
  1821. /**
  1822. * Indicates that a server-side error has occured. {@code InternalApiError}s
  1823. * are generally not the result of an invalid request or message sent by the
  1824. * client.
  1825. * @package GoogleApiAdsAdWords
  1826. * @subpackage v201109
  1827. */
  1828. class InternalApiError extends ApiError {
  1829. /**
  1830. * @access public
  1831. * @var tnsInternalApiErrorReason
  1832. */
  1833. public $reason;
  1834. /**
  1835. * Gets the namesapce of this class
  1836. * @return the namespace of this class
  1837. */
  1838. public function getNamespace() {
  1839. return "https://adwords.google.com/api/adwords/cm/v201109";
  1840. }
  1841. /**
  1842. * Gets the xsi:type name of this class
  1843. * @return the xsi:type name of this class
  1844. */
  1845. public function getXsiTypeName() {
  1846. return "InternalApiError";
  1847. }
  1848. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1849. if(get_parent_class('InternalApiError')) parent::__construct();
  1850. $this->reason = $reason;
  1851. $this->fieldPath = $fieldPath;
  1852. $this->trigger = $trigger;
  1853. $this->errorString = $errorString;
  1854. $this->ApiErrorType = $ApiErrorType;
  1855. }
  1856. }}
  1857. if (!class_exists("NotEm…

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