PageRenderTime 53ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://google-api-adwords-php.googlecode.com/
PHP | 2644 lines | 1062 code | 286 blank | 1296 comment | 135 complexity | ac88263028d1e96b636bbd14259eba27 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 AdParamService 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("AdParam", FALSE)) {
  32. /**
  33. * Represents an ad parameter. Use ad parameters to update numeric values
  34. * (such as prices or inventory levels) in any line of a text ad, including
  35. * the destination URL. You can set two <code>AdParam</code> objects
  36. * (one for each value of {@link #paramIndex}) per ad group
  37. * <a href="AdGroupCriterionService.Keyword.html">Keyword</a>
  38. * criterion.
  39. * <p>When setting or removing an <code>AdParam</code>, it is uniquely
  40. * identified by the combination of these three fields:</p>
  41. * <ul>
  42. * <li><code>adGroupId</code></li>
  43. * <li><code>criterionId</code></li>
  44. * <li><code>paramIndex</code></li>
  45. * </ul>
  46. * @package GoogleApiAdsAdWords
  47. * @subpackage v201109
  48. */
  49. class AdParam {
  50. /**
  51. * @access public
  52. * @var integer
  53. */
  54. public $adGroupId;
  55. /**
  56. * @access public
  57. * @var integer
  58. */
  59. public $criterionId;
  60. /**
  61. * @access public
  62. * @var string
  63. */
  64. public $insertionText;
  65. /**
  66. * @access public
  67. * @var integer
  68. */
  69. public $paramIndex;
  70. /**
  71. * Gets the namesapce of this class
  72. * @return the namespace of this class
  73. */
  74. public function getNamespace() {
  75. return "https://adwords.google.com/api/adwords/cm/v201109";
  76. }
  77. /**
  78. * Gets the xsi:type name of this class
  79. * @return the xsi:type name of this class
  80. */
  81. public function getXsiTypeName() {
  82. return "AdParam";
  83. }
  84. public function __construct($adGroupId = NULL, $criterionId = NULL, $insertionText = NULL, $paramIndex = NULL) {
  85. if(get_parent_class('AdParam')) parent::__construct();
  86. $this->adGroupId = $adGroupId;
  87. $this->criterionId = $criterionId;
  88. $this->insertionText = $insertionText;
  89. $this->paramIndex = $paramIndex;
  90. }
  91. }}
  92. if (!class_exists("AdParamPage", FALSE)) {
  93. /**
  94. * Represents a page of AdParams returned by the {@link AdParamService}.
  95. * @package GoogleApiAdsAdWords
  96. * @subpackage v201109
  97. */
  98. class AdParamPage {
  99. /**
  100. * @access public
  101. * @var AdParam[]
  102. */
  103. public $entries;
  104. /**
  105. * @access public
  106. * @var integer
  107. */
  108. public $totalNumEntries;
  109. /**
  110. * Gets the namesapce of this class
  111. * @return the namespace of this class
  112. */
  113. public function getNamespace() {
  114. return "https://adwords.google.com/api/adwords/cm/v201109";
  115. }
  116. /**
  117. * Gets the xsi:type name of this class
  118. * @return the xsi:type name of this class
  119. */
  120. public function getXsiTypeName() {
  121. return "AdParamPage";
  122. }
  123. public function __construct($entries = NULL, $totalNumEntries = NULL) {
  124. if(get_parent_class('AdParamPage')) parent::__construct();
  125. $this->entries = $entries;
  126. $this->totalNumEntries = $totalNumEntries;
  127. }
  128. }}
  129. if (!class_exists("DateRange", FALSE)) {
  130. /**
  131. * Represents a range of dates that has either an upper or a lower bound.
  132. * The format for the date is YYYYMMDD.
  133. * @package GoogleApiAdsAdWords
  134. * @subpackage v201109
  135. */
  136. class DateRange {
  137. /**
  138. * @access public
  139. * @var string
  140. */
  141. public $min;
  142. /**
  143. * @access public
  144. * @var string
  145. */
  146. public $max;
  147. /**
  148. * Gets the namesapce of this class
  149. * @return the namespace of this class
  150. */
  151. public function getNamespace() {
  152. return "https://adwords.google.com/api/adwords/cm/v201109";
  153. }
  154. /**
  155. * Gets the xsi:type name of this class
  156. * @return the xsi:type name of this class
  157. */
  158. public function getXsiTypeName() {
  159. return "DateRange";
  160. }
  161. public function __construct($min = NULL, $max = NULL) {
  162. if(get_parent_class('DateRange')) parent::__construct();
  163. $this->min = $min;
  164. $this->max = $max;
  165. }
  166. }}
  167. if (!class_exists("Operation", FALSE)) {
  168. /**
  169. * This represents an operation that includes an operator and an operand
  170. * specified type.
  171. * @package GoogleApiAdsAdWords
  172. * @subpackage v201109
  173. */
  174. class Operation {
  175. /**
  176. * @access public
  177. * @var tnsOperator
  178. */
  179. public $operator;
  180. /**
  181. * @access public
  182. * @var string
  183. */
  184. public $OperationType;
  185. private $_parameterMap = array (
  186. "Operation.Type" => "OperationType",
  187. );
  188. /**
  189. * Provided for setting non-php-standard named variables
  190. * @param $var Variable name to set
  191. * @param $value Value to set
  192. */
  193. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  194. /**
  195. * Provided for getting non-php-standard named variables
  196. * @param $var Variable name to get.
  197. * @return mixed Variable value
  198. */
  199. public function __get($var) {
  200. if (!array_key_exists($var, $this->_parameterMap)) {
  201. return NULL;
  202. } else {
  203. return $this->{$this->_parameterMap[$var]};
  204. }
  205. }
  206. /**
  207. * Provided for getting non-php-standard named variables
  208. * @return array parameter map
  209. */
  210. protected function getParameterMap() {
  211. return $this->_parameterMap;
  212. }
  213. /**
  214. * Gets the namesapce of this class
  215. * @return the namespace of this class
  216. */
  217. public function getNamespace() {
  218. return "https://adwords.google.com/api/adwords/cm/v201109";
  219. }
  220. /**
  221. * Gets the xsi:type name of this class
  222. * @return the xsi:type name of this class
  223. */
  224. public function getXsiTypeName() {
  225. return "Operation";
  226. }
  227. public function __construct($operator = NULL, $OperationType = NULL) {
  228. if(get_parent_class('Operation')) parent::__construct();
  229. $this->operator = $operator;
  230. $this->OperationType = $OperationType;
  231. }
  232. }}
  233. if (!class_exists("OrderBy", FALSE)) {
  234. /**
  235. * Specifies how the resulting information should be sorted.
  236. * @package GoogleApiAdsAdWords
  237. * @subpackage v201109
  238. */
  239. class OrderBy {
  240. /**
  241. * @access public
  242. * @var string
  243. */
  244. public $field;
  245. /**
  246. * @access public
  247. * @var tnsSortOrder
  248. */
  249. public $sortOrder;
  250. /**
  251. * Gets the namesapce of this class
  252. * @return the namespace of this class
  253. */
  254. public function getNamespace() {
  255. return "https://adwords.google.com/api/adwords/cm/v201109";
  256. }
  257. /**
  258. * Gets the xsi:type name of this class
  259. * @return the xsi:type name of this class
  260. */
  261. public function getXsiTypeName() {
  262. return "OrderBy";
  263. }
  264. public function __construct($field = NULL, $sortOrder = NULL) {
  265. if(get_parent_class('OrderBy')) parent::__construct();
  266. $this->field = $field;
  267. $this->sortOrder = $sortOrder;
  268. }
  269. }}
  270. if (!class_exists("Paging", FALSE)) {
  271. /**
  272. * Specifies the page of results to return in the response. A page is specified
  273. * by the result position to start at and the maximum number of results to
  274. * return.
  275. * @package GoogleApiAdsAdWords
  276. * @subpackage v201109
  277. */
  278. class Paging {
  279. /**
  280. * @access public
  281. * @var integer
  282. */
  283. public $startIndex;
  284. /**
  285. * @access public
  286. * @var integer
  287. */
  288. public $numberResults;
  289. /**
  290. * Gets the namesapce of this class
  291. * @return the namespace of this class
  292. */
  293. public function getNamespace() {
  294. return "https://adwords.google.com/api/adwords/cm/v201109";
  295. }
  296. /**
  297. * Gets the xsi:type name of this class
  298. * @return the xsi:type name of this class
  299. */
  300. public function getXsiTypeName() {
  301. return "Paging";
  302. }
  303. public function __construct($startIndex = NULL, $numberResults = NULL) {
  304. if(get_parent_class('Paging')) parent::__construct();
  305. $this->startIndex = $startIndex;
  306. $this->numberResults = $numberResults;
  307. }
  308. }}
  309. if (!class_exists("PolicyViolationErrorPart", FALSE)) {
  310. /**
  311. * Points to a substring within an ad field or criterion.
  312. * @package GoogleApiAdsAdWords
  313. * @subpackage v201109
  314. */
  315. class PolicyViolationErrorPart {
  316. /**
  317. * @access public
  318. * @var integer
  319. */
  320. public $index;
  321. /**
  322. * @access public
  323. * @var integer
  324. */
  325. public $length;
  326. /**
  327. * Gets the namesapce of this class
  328. * @return the namespace of this class
  329. */
  330. public function getNamespace() {
  331. return "https://adwords.google.com/api/adwords/cm/v201109";
  332. }
  333. /**
  334. * Gets the xsi:type name of this class
  335. * @return the xsi:type name of this class
  336. */
  337. public function getXsiTypeName() {
  338. return "PolicyViolationError.Part";
  339. }
  340. public function __construct($index = NULL, $length = NULL) {
  341. if(get_parent_class('PolicyViolationErrorPart')) parent::__construct();
  342. $this->index = $index;
  343. $this->length = $length;
  344. }
  345. }}
  346. if (!class_exists("PolicyViolationKey", FALSE)) {
  347. /**
  348. * Key of the violation. The key is used for referring to a violation when
  349. * filing an exemption request.
  350. * @package GoogleApiAdsAdWords
  351. * @subpackage v201109
  352. */
  353. class PolicyViolationKey {
  354. /**
  355. * @access public
  356. * @var string
  357. */
  358. public $policyName;
  359. /**
  360. * @access public
  361. * @var string
  362. */
  363. public $violatingText;
  364. /**
  365. * Gets the namesapce of this class
  366. * @return the namespace of this class
  367. */
  368. public function getNamespace() {
  369. return "https://adwords.google.com/api/adwords/cm/v201109";
  370. }
  371. /**
  372. * Gets the xsi:type name of this class
  373. * @return the xsi:type name of this class
  374. */
  375. public function getXsiTypeName() {
  376. return "PolicyViolationKey";
  377. }
  378. public function __construct($policyName = NULL, $violatingText = NULL) {
  379. if(get_parent_class('PolicyViolationKey')) parent::__construct();
  380. $this->policyName = $policyName;
  381. $this->violatingText = $violatingText;
  382. }
  383. }}
  384. if (!class_exists("Predicate", FALSE)) {
  385. /**
  386. * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.
  387. * @package GoogleApiAdsAdWords
  388. * @subpackage v201109
  389. */
  390. class Predicate {
  391. /**
  392. * @access public
  393. * @var string
  394. */
  395. public $field;
  396. /**
  397. * @access public
  398. * @var tnsPredicateOperator
  399. */
  400. public $operator;
  401. /**
  402. * @access public
  403. * @var string[]
  404. */
  405. public $values;
  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 "Predicate";
  419. }
  420. public function __construct($field = NULL, $operator = NULL, $values = NULL) {
  421. if(get_parent_class('Predicate')) parent::__construct();
  422. $this->field = $field;
  423. $this->operator = $operator;
  424. $this->values = $values;
  425. }
  426. }}
  427. if (!class_exists("SoapRequestHeader", FALSE)) {
  428. /**
  429. * Defines the required and optional elements within the header of a SOAP request.
  430. * @package GoogleApiAdsAdWords
  431. * @subpackage v201109
  432. */
  433. class SoapRequestHeader {
  434. /**
  435. * @access public
  436. * @var string
  437. */
  438. public $authToken;
  439. /**
  440. * @access public
  441. * @var string
  442. */
  443. public $clientCustomerId;
  444. /**
  445. * @access public
  446. * @var string
  447. */
  448. public $developerToken;
  449. /**
  450. * @access public
  451. * @var string
  452. */
  453. public $userAgent;
  454. /**
  455. * @access public
  456. * @var boolean
  457. */
  458. public $validateOnly;
  459. /**
  460. * @access public
  461. * @var boolean
  462. */
  463. public $partialFailure;
  464. /**
  465. * Gets the namesapce of this class
  466. * @return the namespace of this class
  467. */
  468. public function getNamespace() {
  469. return "https://adwords.google.com/api/adwords/cm/v201109";
  470. }
  471. /**
  472. * Gets the xsi:type name of this class
  473. * @return the xsi:type name of this class
  474. */
  475. public function getXsiTypeName() {
  476. return "SoapHeader";
  477. }
  478. public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) {
  479. if(get_parent_class('SoapRequestHeader')) parent::__construct();
  480. $this->authToken = $authToken;
  481. $this->clientCustomerId = $clientCustomerId;
  482. $this->developerToken = $developerToken;
  483. $this->userAgent = $userAgent;
  484. $this->validateOnly = $validateOnly;
  485. $this->partialFailure = $partialFailure;
  486. }
  487. }}
  488. if (!class_exists("SoapResponseHeader", FALSE)) {
  489. /**
  490. * Defines the elements within the header of a SOAP response.
  491. * @package GoogleApiAdsAdWords
  492. * @subpackage v201109
  493. */
  494. class SoapResponseHeader {
  495. /**
  496. * @access public
  497. * @var string
  498. */
  499. public $requestId;
  500. /**
  501. * @access public
  502. * @var string
  503. */
  504. public $serviceName;
  505. /**
  506. * @access public
  507. * @var string
  508. */
  509. public $methodName;
  510. /**
  511. * @access public
  512. * @var integer
  513. */
  514. public $operations;
  515. /**
  516. * @access public
  517. * @var integer
  518. */
  519. public $responseTime;
  520. /**
  521. * @access public
  522. * @var integer
  523. */
  524. public $units;
  525. /**
  526. * Gets the namesapce of this class
  527. * @return the namespace of this class
  528. */
  529. public function getNamespace() {
  530. return "https://adwords.google.com/api/adwords/cm/v201109";
  531. }
  532. /**
  533. * Gets the xsi:type name of this class
  534. * @return the xsi:type name of this class
  535. */
  536. public function getXsiTypeName() {
  537. return "SoapResponseHeader";
  538. }
  539. public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL, $units = NULL) {
  540. if(get_parent_class('SoapResponseHeader')) parent::__construct();
  541. $this->requestId = $requestId;
  542. $this->serviceName = $serviceName;
  543. $this->methodName = $methodName;
  544. $this->operations = $operations;
  545. $this->responseTime = $responseTime;
  546. $this->units = $units;
  547. }
  548. }}
  549. if (!class_exists("Selector", FALSE)) {
  550. /**
  551. * A generic selector to specify the type of information to return.
  552. * @package GoogleApiAdsAdWords
  553. * @subpackage v201109
  554. */
  555. class Selector {
  556. /**
  557. * @access public
  558. * @var string[]
  559. */
  560. public $fields;
  561. /**
  562. * @access public
  563. * @var Predicate[]
  564. */
  565. public $predicates;
  566. /**
  567. * @access public
  568. * @var DateRange
  569. */
  570. public $dateRange;
  571. /**
  572. * @access public
  573. * @var OrderBy[]
  574. */
  575. public $ordering;
  576. /**
  577. * @access public
  578. * @var Paging
  579. */
  580. public $paging;
  581. /**
  582. * Gets the namesapce of this class
  583. * @return the namespace of this class
  584. */
  585. public function getNamespace() {
  586. return "https://adwords.google.com/api/adwords/cm/v201109";
  587. }
  588. /**
  589. * Gets the xsi:type name of this class
  590. * @return the xsi:type name of this class
  591. */
  592. public function getXsiTypeName() {
  593. return "Selector";
  594. }
  595. public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) {
  596. if(get_parent_class('Selector')) parent::__construct();
  597. $this->fields = $fields;
  598. $this->predicates = $predicates;
  599. $this->dateRange = $dateRange;
  600. $this->ordering = $ordering;
  601. $this->paging = $paging;
  602. }
  603. }}
  604. if (!class_exists("ApiError", FALSE)) {
  605. /**
  606. * The API error base class that provides details about an error that occurred
  607. * while processing a service request.
  608. *
  609. * <p>The OGNL field path is provided for parsers to identify the request data
  610. * element that may have caused the error.</p>
  611. * @package GoogleApiAdsAdWords
  612. * @subpackage v201109
  613. */
  614. class ApiError {
  615. /**
  616. * @access public
  617. * @var string
  618. */
  619. public $fieldPath;
  620. /**
  621. * @access public
  622. * @var string
  623. */
  624. public $trigger;
  625. /**
  626. * @access public
  627. * @var string
  628. */
  629. public $errorString;
  630. /**
  631. * @access public
  632. * @var string
  633. */
  634. public $ApiErrorType;
  635. private $_parameterMap = array (
  636. "ApiError.Type" => "ApiErrorType",
  637. );
  638. /**
  639. * Provided for setting non-php-standard named variables
  640. * @param $var Variable name to set
  641. * @param $value Value to set
  642. */
  643. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  644. /**
  645. * Provided for getting non-php-standard named variables
  646. * @param $var Variable name to get.
  647. * @return mixed Variable value
  648. */
  649. public function __get($var) {
  650. if (!array_key_exists($var, $this->_parameterMap)) {
  651. return NULL;
  652. } else {
  653. return $this->{$this->_parameterMap[$var]};
  654. }
  655. }
  656. /**
  657. * Provided for getting non-php-standard named variables
  658. * @return array parameter map
  659. */
  660. protected function getParameterMap() {
  661. return $this->_parameterMap;
  662. }
  663. /**
  664. * Gets the namesapce of this class
  665. * @return the namespace of this class
  666. */
  667. public function getNamespace() {
  668. return "https://adwords.google.com/api/adwords/cm/v201109";
  669. }
  670. /**
  671. * Gets the xsi:type name of this class
  672. * @return the xsi:type name of this class
  673. */
  674. public function getXsiTypeName() {
  675. return "ApiError";
  676. }
  677. public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  678. if(get_parent_class('ApiError')) parent::__construct();
  679. $this->fieldPath = $fieldPath;
  680. $this->trigger = $trigger;
  681. $this->errorString = $errorString;
  682. $this->ApiErrorType = $ApiErrorType;
  683. }
  684. }}
  685. if (!class_exists("ApplicationException", FALSE)) {
  686. /**
  687. * Base class for exceptions.
  688. * @package GoogleApiAdsAdWords
  689. * @subpackage v201109
  690. */
  691. class ApplicationException {
  692. /**
  693. * @access public
  694. * @var string
  695. */
  696. public $message;
  697. /**
  698. * @access public
  699. * @var string
  700. */
  701. public $ApplicationExceptionType;
  702. private $_parameterMap = array (
  703. "ApplicationException.Type" => "ApplicationExceptionType",
  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 "ApplicationException";
  743. }
  744. public function __construct($message = NULL, $ApplicationExceptionType = NULL) {
  745. if(get_parent_class('ApplicationException')) parent::__construct();
  746. $this->message = $message;
  747. $this->ApplicationExceptionType = $ApplicationExceptionType;
  748. }
  749. }}
  750. if (!class_exists("AdParamErrorReason", FALSE)) {
  751. /**
  752. * The same ad param cannot be specified in multiple operations
  753. * @package GoogleApiAdsAdWords
  754. * @subpackage v201109
  755. */
  756. class AdParamErrorReason {
  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 "AdParamError.Reason";
  770. }
  771. public function __construct() {
  772. if(get_parent_class('AdParamErrorReason')) 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("DistinctErrorReason", FALSE)) {
  877. /**
  878. * The reasons for the validation error.
  879. * @package GoogleApiAdsAdWords
  880. * @subpackage v201109
  881. */
  882. class DistinctErrorReason {
  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 "DistinctError.Reason";
  896. }
  897. public function __construct() {
  898. if(get_parent_class('DistinctErrorReason')) parent::__construct();
  899. }
  900. }}
  901. if (!class_exists("InternalApiErrorReason", FALSE)) {
  902. /**
  903. * The single reason for the internal API error.
  904. * @package GoogleApiAdsAdWords
  905. * @subpackage v201109
  906. */
  907. class InternalApiErrorReason {
  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 "InternalApiError.Reason";
  921. }
  922. public function __construct() {
  923. if(get_parent_class('InternalApiErrorReason')) parent::__construct();
  924. }
  925. }}
  926. if (!class_exists("NotEmptyErrorReason", FALSE)) {
  927. /**
  928. * The reasons for the validation error.
  929. * @package GoogleApiAdsAdWords
  930. * @subpackage v201109
  931. */
  932. class NotEmptyErrorReason {
  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 "NotEmptyError.Reason";
  946. }
  947. public function __construct() {
  948. if(get_parent_class('NotEmptyErrorReason')) parent::__construct();
  949. }
  950. }}
  951. if (!class_exists("NotWhitelistedErrorReason", FALSE)) {
  952. /**
  953. * The single reason for the whitelist error.
  954. * @package GoogleApiAdsAdWords
  955. * @subpackage v201109
  956. */
  957. class NotWhitelistedErrorReason {
  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 "NotWhitelistedError.Reason";
  971. }
  972. public function __construct() {
  973. if(get_parent_class('NotWhitelistedErrorReason')) parent::__construct();
  974. }
  975. }}
  976. if (!class_exists("NullErrorReason", FALSE)) {
  977. /**
  978. * The reasons for the validation error.
  979. * @package GoogleApiAdsAdWords
  980. * @subpackage v201109
  981. */
  982. class NullErrorReason {
  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 "NullError.Reason";
  996. }
  997. public function __construct() {
  998. if(get_parent_class('NullErrorReason')) parent::__construct();
  999. }
  1000. }}
  1001. if (!class_exists("OperationAccessDeniedReason", FALSE)) {
  1002. /**
  1003. * The reasons for the operation access error.
  1004. * @package GoogleApiAdsAdWords
  1005. * @subpackage v201109
  1006. */
  1007. class OperationAccessDeniedReason {
  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 "OperationAccessDenied.Reason";
  1021. }
  1022. public function __construct() {
  1023. if(get_parent_class('OperationAccessDeniedReason')) parent::__construct();
  1024. }
  1025. }}
  1026. if (!class_exists("Operator", FALSE)) {
  1027. /**
  1028. * This represents an operator that may be presented to an adsapi service.
  1029. * @package GoogleApiAdsAdWords
  1030. * @subpackage v201109
  1031. */
  1032. class Operator {
  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 "Operator";
  1046. }
  1047. public function __construct() {
  1048. if(get_parent_class('Operator')) parent::__construct();
  1049. }
  1050. }}
  1051. if (!class_exists("OperatorErrorReason", FALSE)) {
  1052. /**
  1053. * The reasons for the validation error.
  1054. * @package GoogleApiAdsAdWords
  1055. * @subpackage v201109
  1056. */
  1057. class OperatorErrorReason {
  1058. /**
  1059. * Gets the namesapce of this class
  1060. * @return the namespace of this class
  1061. */
  1062. public function getNamespace() {
  1063. return "https://adwords.google.com/api/adwords/cm/v201109";
  1064. }
  1065. /**
  1066. * Gets the xsi:type name of this class
  1067. * @return the xsi:type name of this class
  1068. */
  1069. public function getXsiTypeName() {
  1070. return "OperatorError.Reason";
  1071. }
  1072. public function __construct() {
  1073. if(get_parent_class('OperatorErrorReason')) parent::__construct();
  1074. }
  1075. }}
  1076. if (!class_exists("PredicateOperator", FALSE)) {
  1077. /**
  1078. * Defines the valid set of operators.
  1079. * @package GoogleApiAdsAdWords
  1080. * @subpackage v201109
  1081. */
  1082. class PredicateOperator {
  1083. /**
  1084. * Gets the namesapce of this class
  1085. * @return the namespace of this class
  1086. */
  1087. public function getNamespace() {
  1088. return "https://adwords.google.com/api/adwords/cm/v201109";
  1089. }
  1090. /**
  1091. * Gets the xsi:type name of this class
  1092. * @return the xsi:type name of this class
  1093. */
  1094. public function getXsiTypeName() {
  1095. return "Predicate.Operator";
  1096. }
  1097. public function __construct() {
  1098. if(get_parent_class('PredicateOperator')) parent::__construct();
  1099. }
  1100. }}
  1101. if (!class_exists("QuotaCheckErrorReason", FALSE)) {
  1102. /**
  1103. * Enums for all the reasons an error can be thrown to the user during
  1104. * billing quota checks.
  1105. * @package GoogleApiAdsAdWords
  1106. * @subpackage v201109
  1107. */
  1108. class QuotaCheckErrorReason {
  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 "QuotaCheckError.Reason";
  1122. }
  1123. public function __construct() {
  1124. if(get_parent_class('QuotaCheckErrorReason')) parent::__construct();
  1125. }
  1126. }}
  1127. if (!class_exists("RangeErrorReason", FALSE)) {
  1128. /**
  1129. * The reasons for the target error.
  1130. * @package GoogleApiAdsAdWords
  1131. * @subpackage v201109
  1132. */
  1133. class RangeErrorReason {
  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 "RangeError.Reason";
  1147. }
  1148. public function __construct() {
  1149. if(get_parent_class('RangeErrorReason')) parent::__construct();
  1150. }
  1151. }}
  1152. if (!class_exists("RateExceededErrorReason", FALSE)) {
  1153. /**
  1154. * The reason for the rate exceeded error.
  1155. * @package GoogleApiAdsAdWords
  1156. * @subpackage v201109
  1157. */
  1158. class RateExceededErrorReason {
  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 "RateExceededError.Reason";
  1172. }
  1173. public function __construct() {
  1174. if(get_parent_class('RateExceededErrorReason')) parent::__construct();
  1175. }
  1176. }}
  1177. if (!class_exists("RequestErrorReason", FALSE)) {
  1178. /**
  1179. * Error reason is unknown.
  1180. * @package GoogleApiAdsAdWords
  1181. * @subpackage v201109
  1182. */
  1183. class RequestErrorReason {
  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 "RequestError.Reason";
  1197. }
  1198. public function __construct() {
  1199. if(get_parent_class('RequestErrorReason')) parent::__construct();
  1200. }
  1201. }}
  1202. if (!class_exists("RequiredErrorReason", FALSE)) {
  1203. /**
  1204. * The reasons for the target error.
  1205. * @package GoogleApiAdsAdWords
  1206. * @subpackage v201109
  1207. */
  1208. class RequiredErrorReason {
  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 "RequiredError.Reason";
  1222. }
  1223. public function __construct() {
  1224. if(get_parent_class('RequiredErrorReason')) parent::__construct();
  1225. }
  1226. }}
  1227. if (!class_exists("SelectorErrorReason", FALSE)) {
  1228. /**
  1229. * The reasons for the target error.
  1230. * @package GoogleApiAdsAdWords
  1231. * @subpackage v201109
  1232. */
  1233. class SelectorErrorReason {
  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 "SelectorError.Reason";
  1247. }
  1248. public function __construct() {
  1249. if(get_parent_class('SelectorErrorReason')) parent::__construct();
  1250. }
  1251. }}
  1252. if (!class_exists("SizeLimitErrorReason", FALSE)) {
  1253. /**
  1254. * The reasons for Ad Scheduling errors.
  1255. * @package GoogleApiAdsAdWords
  1256. * @subpackage v201109
  1257. */
  1258. class SizeLimitErrorReason {
  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 "SizeLimitError.Reason";
  1272. }
  1273. public function __construct() {
  1274. if(get_parent_class('SizeLimitErrorReason')) parent::__construct();
  1275. }
  1276. }}
  1277. if (!class_exists("SortOrder", FALSE)) {
  1278. /**
  1279. * Possible orders of sorting.
  1280. * @package GoogleApiAdsAdWords
  1281. * @subpackage v201109
  1282. */
  1283. class SortOrder {
  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 "SortOrder";
  1297. }
  1298. public function __construct() {
  1299. if(get_parent_class('SortOrder')) parent::__construct();
  1300. }
  1301. }}
  1302. if (!class_exists("StringLengthErrorReason", FALSE)) {
  1303. /**
  1304. * The reasons for the target error.
  1305. * @package GoogleApiAdsAdWords
  1306. * @subpackage v201109
  1307. */
  1308. class StringLengthErrorReason {
  1309. /**
  1310. * Gets the namesapce of this class
  1311. * @return the namespace of this class
  1312. */
  1313. public function getNamespace() {
  1314. return "https://adwords.google.com/api/adwords/cm/v201109";
  1315. }
  1316. /**
  1317. * Gets the xsi:type name of this class
  1318. * @return the xsi:type name of this class
  1319. */
  1320. public function getXsiTypeName() {
  1321. return "StringLengthError.Reason";
  1322. }
  1323. public function __construct() {
  1324. if(get_parent_class('StringLengthErrorReason')) parent::__construct();
  1325. }
  1326. }}
  1327. if (!class_exists("AdParamServiceGet", FALSE)) {
  1328. /**
  1329. * <span class="constraint Required">This field is required and should not be {@code null}.</span>
  1330. *
  1331. *
  1332. *
  1333. * Returns the ad parameters that match the criteria specified in the
  1334. * selector.
  1335. *
  1336. * @param serviceSelector Specifies which ad parameters to return.
  1337. * @return A list of ad parameters.
  1338. * @package GoogleApiAdsAdWords
  1339. * @subpackage v201109
  1340. */
  1341. class AdParamServiceGet {
  1342. /**
  1343. * @access public
  1344. * @var Selector
  1345. */
  1346. public $serviceSelector;
  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 "";
  1360. }
  1361. public function __construct($serviceSelector = NULL) {
  1362. if(get_parent_class('AdParamServiceGet')) parent::__construct();
  1363. $this->serviceSelector = $serviceSelector;
  1364. }
  1365. }}
  1366. if (!class_exists("AdParamServiceGetResponse", FALSE)) {
  1367. /**
  1368. *
  1369. * @package GoogleApiAdsAdWords
  1370. * @subpackage v201109
  1371. */
  1372. class AdParamServiceGetResponse {
  1373. /**
  1374. * @access public
  1375. * @var AdParamPage
  1376. */
  1377. public $rval;
  1378. /**
  1379. * Gets the namesapce of this class
  1380. * @return the namespace of this class
  1381. */
  1382. public function getNamespace() {
  1383. return "https://adwords.google.com/api/adwords/cm/v201109";
  1384. }
  1385. /**
  1386. * Gets the xsi:type name of this class
  1387. * @return the xsi:type name of this class
  1388. */
  1389. public function getXsiTypeName() {
  1390. return "";
  1391. }
  1392. public function __construct($rval = NULL) {
  1393. if(get_parent_class('AdParamServiceGetResponse')) parent::__construct();
  1394. $this->rval = $rval;
  1395. }
  1396. }}
  1397. if (!class_exists("AdParamServiceMutate", FALSE)) {
  1398. /**
  1399. * <span class="constraint ContentsNotNull">This field must not contain {@code null} elements.</span>
  1400. * <span class="constraint NotEmpty">This field must contain at least one element.</span>
  1401. * <span class="constraint Required">This field is required and should not be {@code null}.</span>
  1402. * <span class="constraint SupportedOperators">The following {@link Operator}s are supported: SET, REMOVE.</span>
  1403. *
  1404. *
  1405. *
  1406. * Sets and removes ad parameters.
  1407. * <p class="note"><b>Note:</b> {@code ADD} is not supported. Use {@code SET}
  1408. * for new ad parameters.</p>
  1409. *
  1410. * <ul class="nolist">
  1411. * <li>{@code SET}: Creates or updates an ad parameter, setting the new
  1412. * parameterized value for the given ad group / keyword pair.
  1413. * <li>{@code REMOVE}: Removes an ad parameter. The <code><var>default-value</var>
  1414. * </code> specified in the ad text will be used.</li>
  1415. * </ul>
  1416. *
  1417. * @param operations The operations to perform.
  1418. * @return A list of ad parameters, where each entry in the list is the
  1419. * result of applying the operation in the input list with the same index.
  1420. * For a {@code SET} operation, the returned ad parameter will contain the
  1421. * updated values. For a {@code REMOVE} operation, the returned ad parameter
  1422. * will simply be the ad parameter that was removed.
  1423. * @package GoogleApiAdsAdWords
  1424. * @subpackage v201109
  1425. */
  1426. class AdParamServiceMutate {
  1427. /**
  1428. * @access public
  1429. * @var AdParamOperation[]
  1430. */
  1431. public $operations;
  1432. /**
  1433. * Gets the namesapce of this class
  1434. * @return the namespace of this class
  1435. */
  1436. public function getNamespace() {
  1437. return "https://adwords.google.com/api/adwords/cm/v201109";
  1438. }
  1439. /**
  1440. * Gets the xsi:type name of this class
  1441. * @return the xsi:type name of this class
  1442. */
  1443. public function getXsiTypeName() {
  1444. return "";
  1445. }
  1446. public function __construct($operations = NULL) {
  1447. if(get_parent_class('AdParamServiceMutate')) parent::__construct();
  1448. $this->operations = $operations;
  1449. }
  1450. }}
  1451. if (!class_exists("AdParamServiceMutateResponse", FALSE)) {
  1452. /**
  1453. *
  1454. * @package GoogleApiAdsAdWords
  1455. * @subpackage v201109
  1456. */
  1457. class AdParamServiceMutateResponse {
  1458. /**
  1459. * @access public
  1460. * @var AdParam[]
  1461. */
  1462. public $rval;
  1463. /**
  1464. * Gets the namesapce of this class
  1465. * @return the namespace of this class
  1466. */
  1467. public function getNamespace() {
  1468. return "https://adwords.google.com/api/adwords/cm/v201109";
  1469. }
  1470. /**
  1471. * Gets the xsi:type name of this class
  1472. * @return the xsi:type name of this class
  1473. */
  1474. public function getXsiTypeName() {
  1475. return "";
  1476. }
  1477. public function __construct($rval = NULL) {
  1478. if(get_parent_class('AdParamServiceMutateResponse')) parent::__construct();
  1479. $this->rval = $rval;
  1480. }
  1481. }}
  1482. if (!class_exists("AdParamError", FALSE)) {
  1483. /**
  1484. * Errors for AdParamService.
  1485. * @package GoogleApiAdsAdWords
  1486. * @subpackage v201109
  1487. */
  1488. class AdParamError extends ApiError {
  1489. /**
  1490. * @access public
  1491. * @var tnsAdParamErrorReason
  1492. */
  1493. public $reason;
  1494. /**
  1495. * Gets the namesapce of this class
  1496. * @return the namespace of this class
  1497. */
  1498. public function getNamespace() {
  1499. return "https://adwords.google.com/api/adwords/cm/v201109";
  1500. }
  1501. /**
  1502. * Gets the xsi:type name of this class
  1503. * @return the xsi:type name of this class
  1504. */
  1505. public function getXsiTypeName() {
  1506. return "AdParamError";
  1507. }
  1508. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1509. if(get_parent_class('AdParamError')) parent::__construct();
  1510. $this->reason = $reason;
  1511. $this->fieldPath = $fieldPath;
  1512. $this->trigger = $trigger;
  1513. $this->errorString = $errorString;
  1514. $this->ApiErrorType = $ApiErrorType;
  1515. }
  1516. }}
  1517. if (!class_exists("AdParamOperation", FALSE)) {
  1518. /**
  1519. * Represents an operation on an {@link AdParam}. The supported operators
  1520. * are {@code SET} and {@code REMOVE}.
  1521. * @package GoogleApiAdsAdWords
  1522. * @subpackage v201109
  1523. */
  1524. class AdParamOperation extends Operation {
  1525. /**
  1526. * @access public
  1527. * @var AdParam
  1528. */
  1529. public $operand;
  1530. /**
  1531. * Gets the namesapce of this class
  1532. * @return the namespace of this class
  1533. */
  1534. public function getNamespace() {
  1535. return "https://adwords.google.com/api/adwords/cm/v201109";
  1536. }
  1537. /**
  1538. * Gets the xsi:type name of this class
  1539. * @return the xsi:type name of this class
  1540. */
  1541. public function getXsiTypeName() {
  1542. return "AdParamOperation";
  1543. }
  1544. public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) {
  1545. if(get_parent_class('AdParamOperation')) parent::__construct();
  1546. $this->operand = $operand;
  1547. $this->operator = $operator;
  1548. $this->OperationType = $OperationType;
  1549. }
  1550. }}
  1551. if (!class_exists("AuthenticationError", FALSE)) {
  1552. /**
  1553. * Errors returned when Authentication failed.
  1554. * @package GoogleApiAdsAdWords
  1555. * @subpackage v201109
  1556. */
  1557. class AuthenticationError extends ApiError {
  1558. /**
  1559. * @access public
  1560. * @var tnsAuthenticationErrorReason
  1561. */
  1562. public $reason;
  1563. /**
  1564. * Gets the namesapce of this class
  1565. * @return the namespace of this class
  1566. */
  1567. public function getNamespace() {
  1568. return "https://adwords.google.com/api/adwords/cm/v201109";
  1569. }
  1570. /**
  1571. * Gets the xsi:type name of this class
  1572. * @return the xsi:type name of this class
  1573. */
  1574. public function getXsiTypeName() {
  1575. return "AuthenticationError";
  1576. }
  1577. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1578. if(get_parent_class('AuthenticationError')) parent::__construct();
  1579. $this->reason = $reason;
  1580. $this->fieldPath = $fieldPath;
  1581. $this->trigger = $trigger;
  1582. $this->errorString = $errorString;
  1583. $this->ApiErrorType = $ApiErrorType;
  1584. }
  1585. }}
  1586. if (!class_exists("AuthorizationError", FALSE)) {
  1587. /**
  1588. * Errors encountered when trying to authorize a user.
  1589. * @package GoogleApiAdsAdWords
  1590. * @subpackage v201109
  1591. */
  1592. class AuthorizationError extends ApiError {
  1593. /**
  1594. * @access public
  1595. * @var tnsAuthorizationErrorReason
  1596. */
  1597. public $reason;
  1598. /**
  1599. * Gets the namesapce of this class
  1600. * @return the namespace of this class
  1601. */
  1602. public function getNamespace() {
  1603. return "https://adwords.google.com/api/adwords/cm/v201109";
  1604. }
  1605. /**
  1606. * Gets the xsi:type name of this class
  1607. * @return the xsi:type name of this class
  1608. */
  1609. public function getXsiTypeName() {
  1610. return "AuthorizationError";
  1611. }
  1612. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1613. if(get_parent_class('AuthorizationError')) parent::__construct();
  1614. $this->reason = $reason;
  1615. $this->fieldPath = $fieldPath;
  1616. $this->trigger = $trigger;
  1617. $this->errorString = $errorString;
  1618. $this->ApiErrorType = $ApiErrorType;
  1619. }
  1620. }}
  1621. if (!class_exists("ClientTermsError", FALSE)) {
  1622. /**
  1623. * Error due to user not accepting the AdWords terms of service.
  1624. * @package GoogleApiAdsAdWords
  1625. * @subpackage v201109
  1626. */
  1627. class ClientTermsError extends ApiError {
  1628. /**
  1629. * @access public
  1630. * @var tnsClientTermsErrorReason
  1631. */
  1632. public $reason;
  1633. /**
  1634. * Gets the namesapce of this class
  1635. * @return the namespace of this class
  1636. */
  1637. public function getNamespace() {
  1638. return "https://adwords.google.com/api/adwords/cm/v201109";
  1639. }
  1640. /**
  1641. * Gets the xsi:type name of this class
  1642. * @return the xsi:type name of this class
  1643. */
  1644. public function getXsiTypeName() {
  1645. return "ClientTermsError";
  1646. }
  1647. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1648. if(get_parent_class('ClientTermsError')) parent::__construct();
  1649. $this->reason = $reason;
  1650. $this->fieldPath = $fieldPath;
  1651. $this->trigger = $trigger;
  1652. $this->errorString = $errorString;
  1653. $this->ApiErrorType = $ApiErrorType;
  1654. }
  1655. }}
  1656. if (!class_exists("DistinctError", FALSE)) {
  1657. /**
  1658. * Errors related to distinct ids or content.
  1659. * @package GoogleApiAdsAdWords
  1660. * @subpackage v201109
  1661. */
  1662. class DistinctError extends ApiError {
  1663. /**
  1664. * @access public
  1665. * @var tnsDistinctErrorReason
  1666. */
  1667. public $reason;
  1668. /**
  1669. * Gets the namesapce of this class
  1670. * @return the namespace of this class
  1671. */
  1672. public function getNamespace() {
  1673. return "https://adwords.google.com/api/adwords/cm/v201109";
  1674. }
  1675. /**
  1676. * Gets the xsi:type name of this class
  1677. * @return the xsi:type name of this class
  1678. */
  1679. public function getXsiTypeName() {
  1680. return "DistinctError";
  1681. }
  1682. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1683. if(get_parent_class('DistinctError')) parent::__construct();
  1684. $this->reason = $reason;
  1685. $this->fieldPath = $fieldPath;
  1686. $this->trigger = $trigger;
  1687. $this->errorString = $errorString;
  1688. $this->ApiErrorType = $ApiErrorType;
  1689. }
  1690. }}
  1691. if (!class_exists("InternalApiError", FALSE)) {
  1692. /**
  1693. * Indicates that a server-side error has occured. {@code InternalApiError}s
  1694. * are generally not the result of an invalid request or message sent by the
  1695. * client.
  1696. * @package GoogleApiAdsAdWords
  1697. * @subpackage v201109
  1698. */
  1699. class InternalApiError extends ApiError {
  1700. /**
  1701. * @access public
  1702. * @var tnsInternalApiErrorReason
  1703. */
  1704. public $reason;
  1705. /**
  1706. * Gets the namesapce of this class
  1707. * @return the namespace of this class
  1708. */
  1709. public function getNamespace() {
  1710. return "https://adwords.google.com/api/adwords/cm/v201109";
  1711. }
  1712. /**
  1713. * Gets the xsi:type name of this class
  1714. * @return the xsi:type name of this class
  1715. */
  1716. public function getXsiTypeName() {
  1717. return "InternalApiError";
  1718. }
  1719. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1720. if(get_parent_class('InternalApiError')) parent::__construct();
  1721. $this->reason = $reason;
  1722. $this->fieldPath = $fieldPath;
  1723. $this->trigger = $trigger;
  1724. $this->errorString = $errorString;
  1725. $this->ApiErrorType = $ApiErrorType;
  1726. }
  1727. }}
  1728. if (!class_exists("NotEmptyError", FALSE)) {
  1729. /**
  1730. * Errors corresponding with violation of a NOT EMPTY check.
  1731. * @package GoogleApiAdsAdWords
  1732. * @subpackage v201109
  1733. */
  1734. class NotEmptyError extends ApiError {
  1735. /**
  1736. * @access public
  1737. * @var tnsNotEmptyErrorReason
  1738. */
  1739. public $reason;
  1740. /**
  1741. * Gets the namesapce of this class
  1742. * @return the namespace of this class
  1743. */
  1744. public function getNamespace() {
  1745. return "https://adwords.google.com/api/adwords/cm/v201109";
  1746. }
  1747. /**
  1748. * Gets the xsi:type name of this class
  1749. * @return the xsi:type name of this class
  1750. */
  1751. public function getXsiTypeName() {
  1752. return "NotEmptyError";
  1753. }
  1754. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1755. if(get_parent_class('NotEmptyError')) parent::__construct();
  1756. $this->reason = $reason;
  1757. $this->fieldPath = $fieldPath;
  1758. $this->trigger = $trigger;
  1759. $this->errorString = $errorString;
  1760. $this->ApiErrorType = $ApiErrorType;
  1761. }
  1762. }}
  1763. if (!class_exists("NotWhitelistedError", FALSE)) {
  1764. /**
  1765. * Indicates that the customer is not whitelisted for accessing the API.
  1766. * @package GoogleApiAdsAdWords
  1767. * @subpackage v201109
  1768. */
  1769. class NotWhitelistedError extends ApiError {
  1770. /**
  1771. * @access public
  1772. * @var tnsNotWhitelistedErrorReason
  1773. */
  1774. public $reason;
  1775. /**
  1776. * Gets the namesapce of this class
  1777. * @return the namespace of this class
  1778. */
  1779. public function getNamespace() {
  1780. return "https://adwords.google.com/api/adwords/cm/v201109";
  1781. }
  1782. /**
  1783. * Gets the xsi:type name of this class
  1784. * @return the xsi:type name of this class
  1785. */
  1786. public function getXsiTypeName() {
  1787. return "NotWhitelistedError";
  1788. }
  1789. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1790. if(get_parent_class('NotWhitelistedError')) parent::__construct();
  1791. $this->reason = $reason;
  1792. $this->fieldPath = $fieldPath;
  1793. $this->trigger = $trigger;
  1794. $this->errorString = $errorString;
  1795. $this->ApiErrorType = $ApiErrorType;
  1796. }
  1797. }}
  1798. if (!class_exists("NullError", FALSE)) {
  1799. /**
  1800. * Errors associated with violation of a NOT NULL check.
  1801. * @package GoogleApiAdsAdWords
  1802. * @subpackage v201109
  1803. */
  1804. class NullError extends ApiError {
  1805. /**
  1806. * @access public
  1807. * @var tnsNullErrorReason
  1808. */
  1809. public $reason;
  1810. /**
  1811. * Gets the namesapce of this class
  1812. * @return the namespace of this class
  1813. */
  1814. public function getNamespace() {
  1815. return "https://adwords.google.com/api/adwords/cm/v201109";
  1816. }
  1817. /**
  1818. * Gets the xsi:type name of this class
  1819. * @return the xsi:type name of this class
  1820. */
  1821. public function getXsiTypeName() {
  1822. return "NullError";
  1823. }
  1824. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1825. if(get_parent_class('NullError')) parent::__construct();
  1826. $this->reason = $reason;
  1827. $this->fieldPath = $fieldPath;
  1828. $this->trigger = $trigger;
  1829. $this->errorString = $errorString;
  1830. $this->ApiErrorType = $ApiErrorType;
  1831. }
  1832. }}
  1833. if (!class_exists("OperationAccessDenied", FALSE)) {
  1834. /**
  1835. * Operation not pe…

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