PageRenderTime 89ms CodeModel.GetById 36ms RepoModel.GetById 1ms app.codeStats 0ms

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

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

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