PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://google-api-adwords-php.googlecode.com/
PHP | 2690 lines | 1095 code | 295 blank | 1300 comment | 137 complexity | 2ebd97e3f943af22154db9c689f0b6bb MD5 | raw file
Possible License(s): Apache-2.0, MIT
  1. <?php
  2. /**
  3. * Contains all client objects for the LocationCriterionService 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("ApiError", FALSE)) {
  32. /**
  33. * The API error base class that provides details about an error that occurred
  34. * while processing a service request.
  35. *
  36. * <p>The OGNL field path is provided for parsers to identify the request data
  37. * element that may have caused the error.</p>
  38. * @package GoogleApiAdsAdWords
  39. * @subpackage v201109
  40. */
  41. class ApiError {
  42. /**
  43. * @access public
  44. * @var string
  45. */
  46. public $fieldPath;
  47. /**
  48. * @access public
  49. * @var string
  50. */
  51. public $trigger;
  52. /**
  53. * @access public
  54. * @var string
  55. */
  56. public $errorString;
  57. /**
  58. * @access public
  59. * @var string
  60. */
  61. public $ApiErrorType;
  62. private $_parameterMap = array (
  63. "ApiError.Type" => "ApiErrorType",
  64. );
  65. /**
  66. * Provided for setting non-php-standard named variables
  67. * @param $var Variable name to set
  68. * @param $value Value to set
  69. */
  70. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  71. /**
  72. * Provided for getting non-php-standard named variables
  73. * @param $var Variable name to get.
  74. * @return mixed Variable value
  75. */
  76. public function __get($var) {
  77. if (!array_key_exists($var, $this->_parameterMap)) {
  78. return NULL;
  79. } else {
  80. return $this->{$this->_parameterMap[$var]};
  81. }
  82. }
  83. /**
  84. * Provided for getting non-php-standard named variables
  85. * @return array parameter map
  86. */
  87. protected function getParameterMap() {
  88. return $this->_parameterMap;
  89. }
  90. /**
  91. * Gets the namesapce of this class
  92. * @return the namespace of this class
  93. */
  94. public function getNamespace() {
  95. return "https://adwords.google.com/api/adwords/cm/v201109";
  96. }
  97. /**
  98. * Gets the xsi:type name of this class
  99. * @return the xsi:type name of this class
  100. */
  101. public function getXsiTypeName() {
  102. return "ApiError";
  103. }
  104. public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  105. if(get_parent_class('ApiError')) parent::__construct();
  106. $this->fieldPath = $fieldPath;
  107. $this->trigger = $trigger;
  108. $this->errorString = $errorString;
  109. $this->ApiErrorType = $ApiErrorType;
  110. }
  111. }}
  112. if (!class_exists("ApplicationException", FALSE)) {
  113. /**
  114. * Base class for exceptions.
  115. * @package GoogleApiAdsAdWords
  116. * @subpackage v201109
  117. */
  118. class ApplicationException {
  119. /**
  120. * @access public
  121. * @var string
  122. */
  123. public $message;
  124. /**
  125. * @access public
  126. * @var string
  127. */
  128. public $ApplicationExceptionType;
  129. private $_parameterMap = array (
  130. "ApplicationException.Type" => "ApplicationExceptionType",
  131. );
  132. /**
  133. * Provided for setting non-php-standard named variables
  134. * @param $var Variable name to set
  135. * @param $value Value to set
  136. */
  137. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  138. /**
  139. * Provided for getting non-php-standard named variables
  140. * @param $var Variable name to get.
  141. * @return mixed Variable value
  142. */
  143. public function __get($var) {
  144. if (!array_key_exists($var, $this->_parameterMap)) {
  145. return NULL;
  146. } else {
  147. return $this->{$this->_parameterMap[$var]};
  148. }
  149. }
  150. /**
  151. * Provided for getting non-php-standard named variables
  152. * @return array parameter map
  153. */
  154. protected function getParameterMap() {
  155. return $this->_parameterMap;
  156. }
  157. /**
  158. * Gets the namesapce of this class
  159. * @return the namespace of this class
  160. */
  161. public function getNamespace() {
  162. return "https://adwords.google.com/api/adwords/cm/v201109";
  163. }
  164. /**
  165. * Gets the xsi:type name of this class
  166. * @return the xsi:type name of this class
  167. */
  168. public function getXsiTypeName() {
  169. return "ApplicationException";
  170. }
  171. public function __construct($message = NULL, $ApplicationExceptionType = NULL) {
  172. if(get_parent_class('ApplicationException')) parent::__construct();
  173. $this->message = $message;
  174. $this->ApplicationExceptionType = $ApplicationExceptionType;
  175. }
  176. }}
  177. if (!class_exists("AuthenticationError", FALSE)) {
  178. /**
  179. * Errors returned when Authentication failed.
  180. * @package GoogleApiAdsAdWords
  181. * @subpackage v201109
  182. */
  183. class AuthenticationError extends ApiError {
  184. /**
  185. * @access public
  186. * @var tnsAuthenticationErrorReason
  187. */
  188. public $reason;
  189. /**
  190. * Gets the namesapce of this class
  191. * @return the namespace of this class
  192. */
  193. public function getNamespace() {
  194. return "https://adwords.google.com/api/adwords/cm/v201109";
  195. }
  196. /**
  197. * Gets the xsi:type name of this class
  198. * @return the xsi:type name of this class
  199. */
  200. public function getXsiTypeName() {
  201. return "AuthenticationError";
  202. }
  203. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  204. if(get_parent_class('AuthenticationError')) parent::__construct();
  205. $this->reason = $reason;
  206. $this->fieldPath = $fieldPath;
  207. $this->trigger = $trigger;
  208. $this->errorString = $errorString;
  209. $this->ApiErrorType = $ApiErrorType;
  210. }
  211. }}
  212. if (!class_exists("AuthorizationError", FALSE)) {
  213. /**
  214. * Errors encountered when trying to authorize a user.
  215. * @package GoogleApiAdsAdWords
  216. * @subpackage v201109
  217. */
  218. class AuthorizationError extends ApiError {
  219. /**
  220. * @access public
  221. * @var tnsAuthorizationErrorReason
  222. */
  223. public $reason;
  224. /**
  225. * Gets the namesapce of this class
  226. * @return the namespace of this class
  227. */
  228. public function getNamespace() {
  229. return "https://adwords.google.com/api/adwords/cm/v201109";
  230. }
  231. /**
  232. * Gets the xsi:type name of this class
  233. * @return the xsi:type name of this class
  234. */
  235. public function getXsiTypeName() {
  236. return "AuthorizationError";
  237. }
  238. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  239. if(get_parent_class('AuthorizationError')) parent::__construct();
  240. $this->reason = $reason;
  241. $this->fieldPath = $fieldPath;
  242. $this->trigger = $trigger;
  243. $this->errorString = $errorString;
  244. $this->ApiErrorType = $ApiErrorType;
  245. }
  246. }}
  247. if (!class_exists("ClientTermsError", FALSE)) {
  248. /**
  249. * Error due to user not accepting the AdWords terms of service.
  250. * @package GoogleApiAdsAdWords
  251. * @subpackage v201109
  252. */
  253. class ClientTermsError extends ApiError {
  254. /**
  255. * @access public
  256. * @var tnsClientTermsErrorReason
  257. */
  258. public $reason;
  259. /**
  260. * Gets the namesapce of this class
  261. * @return the namespace of this class
  262. */
  263. public function getNamespace() {
  264. return "https://adwords.google.com/api/adwords/cm/v201109";
  265. }
  266. /**
  267. * Gets the xsi:type name of this class
  268. * @return the xsi:type name of this class
  269. */
  270. public function getXsiTypeName() {
  271. return "ClientTermsError";
  272. }
  273. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  274. if(get_parent_class('ClientTermsError')) parent::__construct();
  275. $this->reason = $reason;
  276. $this->fieldPath = $fieldPath;
  277. $this->trigger = $trigger;
  278. $this->errorString = $errorString;
  279. $this->ApiErrorType = $ApiErrorType;
  280. }
  281. }}
  282. if (!class_exists("Criterion", FALSE)) {
  283. /**
  284. * Represents a criterion (such as a keyword, placement, or vertical).
  285. * @package GoogleApiAdsAdWords
  286. * @subpackage v201109
  287. */
  288. class Criterion {
  289. /**
  290. * @access public
  291. * @var integer
  292. */
  293. public $id;
  294. /**
  295. * @access public
  296. * @var tnsCriterionType
  297. */
  298. public $type;
  299. /**
  300. * @access public
  301. * @var string
  302. */
  303. public $CriterionType;
  304. private $_parameterMap = array (
  305. "Criterion.Type" => "CriterionType",
  306. );
  307. /**
  308. * Provided for setting non-php-standard named variables
  309. * @param $var Variable name to set
  310. * @param $value Value to set
  311. */
  312. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  313. /**
  314. * Provided for getting non-php-standard named variables
  315. * @param $var Variable name to get.
  316. * @return mixed Variable value
  317. */
  318. public function __get($var) {
  319. if (!array_key_exists($var, $this->_parameterMap)) {
  320. return NULL;
  321. } else {
  322. return $this->{$this->_parameterMap[$var]};
  323. }
  324. }
  325. /**
  326. * Provided for getting non-php-standard named variables
  327. * @return array parameter map
  328. */
  329. protected function getParameterMap() {
  330. return $this->_parameterMap;
  331. }
  332. /**
  333. * Gets the namesapce of this class
  334. * @return the namespace of this class
  335. */
  336. public function getNamespace() {
  337. return "https://adwords.google.com/api/adwords/cm/v201109";
  338. }
  339. /**
  340. * Gets the xsi:type name of this class
  341. * @return the xsi:type name of this class
  342. */
  343. public function getXsiTypeName() {
  344. return "Criterion";
  345. }
  346. public function __construct($id = NULL, $type = NULL, $CriterionType = NULL) {
  347. if(get_parent_class('Criterion')) parent::__construct();
  348. $this->id = $id;
  349. $this->type = $type;
  350. $this->CriterionType = $CriterionType;
  351. }
  352. }}
  353. if (!class_exists("DatabaseError", FALSE)) {
  354. /**
  355. * Errors that are thrown due to a database access problem.
  356. * @package GoogleApiAdsAdWords
  357. * @subpackage v201109
  358. */
  359. class DatabaseError extends ApiError {
  360. /**
  361. * @access public
  362. * @var tnsDatabaseErrorReason
  363. */
  364. public $reason;
  365. /**
  366. * Gets the namesapce of this class
  367. * @return the namespace of this class
  368. */
  369. public function getNamespace() {
  370. return "https://adwords.google.com/api/adwords/cm/v201109";
  371. }
  372. /**
  373. * Gets the xsi:type name of this class
  374. * @return the xsi:type name of this class
  375. */
  376. public function getXsiTypeName() {
  377. return "DatabaseError";
  378. }
  379. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  380. if(get_parent_class('DatabaseError')) parent::__construct();
  381. $this->reason = $reason;
  382. $this->fieldPath = $fieldPath;
  383. $this->trigger = $trigger;
  384. $this->errorString = $errorString;
  385. $this->ApiErrorType = $ApiErrorType;
  386. }
  387. }}
  388. if (!class_exists("Date", FALSE)) {
  389. /**
  390. * Represents a date.
  391. * @package GoogleApiAdsAdWords
  392. * @subpackage v201109
  393. */
  394. class Date {
  395. /**
  396. * @access public
  397. * @var integer
  398. */
  399. public $year;
  400. /**
  401. * @access public
  402. * @var integer
  403. */
  404. public $month;
  405. /**
  406. * @access public
  407. * @var integer
  408. */
  409. public $day;
  410. /**
  411. * Gets the namesapce of this class
  412. * @return the namespace of this class
  413. */
  414. public function getNamespace() {
  415. return "https://adwords.google.com/api/adwords/cm/v201109";
  416. }
  417. /**
  418. * Gets the xsi:type name of this class
  419. * @return the xsi:type name of this class
  420. */
  421. public function getXsiTypeName() {
  422. return "Date";
  423. }
  424. public function __construct($year = NULL, $month = NULL, $day = NULL) {
  425. if(get_parent_class('Date')) parent::__construct();
  426. $this->year = $year;
  427. $this->month = $month;
  428. $this->day = $day;
  429. }
  430. }}
  431. if (!class_exists("DateError", FALSE)) {
  432. /**
  433. * Errors associated with invalid dates and date ranges.
  434. * @package GoogleApiAdsAdWords
  435. * @subpackage v201109
  436. */
  437. class DateError extends ApiError {
  438. /**
  439. * @access public
  440. * @var tnsDateErrorReason
  441. */
  442. public $reason;
  443. /**
  444. * Gets the namesapce of this class
  445. * @return the namespace of this class
  446. */
  447. public function getNamespace() {
  448. return "https://adwords.google.com/api/adwords/cm/v201109";
  449. }
  450. /**
  451. * Gets the xsi:type name of this class
  452. * @return the xsi:type name of this class
  453. */
  454. public function getXsiTypeName() {
  455. return "DateError";
  456. }
  457. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  458. if(get_parent_class('DateError')) parent::__construct();
  459. $this->reason = $reason;
  460. $this->fieldPath = $fieldPath;
  461. $this->trigger = $trigger;
  462. $this->errorString = $errorString;
  463. $this->ApiErrorType = $ApiErrorType;
  464. }
  465. }}
  466. if (!class_exists("DateRange", FALSE)) {
  467. /**
  468. * Represents a range of dates that has either an upper or a lower bound.
  469. * The format for the date is YYYYMMDD.
  470. * @package GoogleApiAdsAdWords
  471. * @subpackage v201109
  472. */
  473. class DateRange {
  474. /**
  475. * @access public
  476. * @var Date
  477. */
  478. public $min;
  479. /**
  480. * @access public
  481. * @var Date
  482. */
  483. public $max;
  484. /**
  485. * Gets the namesapce of this class
  486. * @return the namespace of this class
  487. */
  488. public function getNamespace() {
  489. return "https://adwords.google.com/api/adwords/cm/v201109";
  490. }
  491. /**
  492. * Gets the xsi:type name of this class
  493. * @return the xsi:type name of this class
  494. */
  495. public function getXsiTypeName() {
  496. return "DateRange";
  497. }
  498. public function __construct($min = NULL, $max = NULL) {
  499. if(get_parent_class('DateRange')) parent::__construct();
  500. $this->min = $min;
  501. $this->max = $max;
  502. }
  503. }}
  504. if (!class_exists("DistinctError", FALSE)) {
  505. /**
  506. * Errors related to distinct ids or content.
  507. * @package GoogleApiAdsAdWords
  508. * @subpackage v201109
  509. */
  510. class DistinctError extends ApiError {
  511. /**
  512. * @access public
  513. * @var tnsDistinctErrorReason
  514. */
  515. public $reason;
  516. /**
  517. * Gets the namesapce of this class
  518. * @return the namespace of this class
  519. */
  520. public function getNamespace() {
  521. return "https://adwords.google.com/api/adwords/cm/v201109";
  522. }
  523. /**
  524. * Gets the xsi:type name of this class
  525. * @return the xsi:type name of this class
  526. */
  527. public function getXsiTypeName() {
  528. return "DistinctError";
  529. }
  530. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  531. if(get_parent_class('DistinctError')) parent::__construct();
  532. $this->reason = $reason;
  533. $this->fieldPath = $fieldPath;
  534. $this->trigger = $trigger;
  535. $this->errorString = $errorString;
  536. $this->ApiErrorType = $ApiErrorType;
  537. }
  538. }}
  539. if (!class_exists("InternalApiError", FALSE)) {
  540. /**
  541. * Indicates that a server-side error has occured. {@code InternalApiError}s
  542. * are generally not the result of an invalid request or message sent by the
  543. * client.
  544. * @package GoogleApiAdsAdWords
  545. * @subpackage v201109
  546. */
  547. class InternalApiError extends ApiError {
  548. /**
  549. * @access public
  550. * @var tnsInternalApiErrorReason
  551. */
  552. public $reason;
  553. /**
  554. * Gets the namesapce of this class
  555. * @return the namespace of this class
  556. */
  557. public function getNamespace() {
  558. return "https://adwords.google.com/api/adwords/cm/v201109";
  559. }
  560. /**
  561. * Gets the xsi:type name of this class
  562. * @return the xsi:type name of this class
  563. */
  564. public function getXsiTypeName() {
  565. return "InternalApiError";
  566. }
  567. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  568. if(get_parent_class('InternalApiError')) parent::__construct();
  569. $this->reason = $reason;
  570. $this->fieldPath = $fieldPath;
  571. $this->trigger = $trigger;
  572. $this->errorString = $errorString;
  573. $this->ApiErrorType = $ApiErrorType;
  574. }
  575. }}
  576. if (!class_exists("Keyword", FALSE)) {
  577. /**
  578. * Represents a keyword.
  579. * @package GoogleApiAdsAdWords
  580. * @subpackage v201109
  581. */
  582. class Keyword extends Criterion {
  583. /**
  584. * @access public
  585. * @var string
  586. */
  587. public $text;
  588. /**
  589. * @access public
  590. * @var tnsKeywordMatchType
  591. */
  592. public $matchType;
  593. /**
  594. * Gets the namesapce of this class
  595. * @return the namespace of this class
  596. */
  597. public function getNamespace() {
  598. return "https://adwords.google.com/api/adwords/cm/v201109";
  599. }
  600. /**
  601. * Gets the xsi:type name of this class
  602. * @return the xsi:type name of this class
  603. */
  604. public function getXsiTypeName() {
  605. return "Keyword";
  606. }
  607. public function __construct($text = NULL, $matchType = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  608. if(get_parent_class('Keyword')) parent::__construct();
  609. $this->text = $text;
  610. $this->matchType = $matchType;
  611. $this->id = $id;
  612. $this->type = $type;
  613. $this->CriterionType = $CriterionType;
  614. }
  615. }}
  616. if (!class_exists("Location", FALSE)) {
  617. /**
  618. * Represents Location criterion.
  619. * <p>A criterion of this type can only be created using an ID. A criterion of this type can be either targeted or excluded.
  620. * @package GoogleApiAdsAdWords
  621. * @subpackage v201109
  622. */
  623. class Location extends Criterion {
  624. /**
  625. * @access public
  626. * @var string
  627. */
  628. public $locationName;
  629. /**
  630. * @access public
  631. * @var string
  632. */
  633. public $displayType;
  634. /**
  635. * @access public
  636. * @var boolean
  637. */
  638. public $isObsolete;
  639. /**
  640. * @access public
  641. * @var Location[]
  642. */
  643. public $parentLocations;
  644. /**
  645. * Gets the namesapce of this class
  646. * @return the namespace of this class
  647. */
  648. public function getNamespace() {
  649. return "https://adwords.google.com/api/adwords/cm/v201109";
  650. }
  651. /**
  652. * Gets the xsi:type name of this class
  653. * @return the xsi:type name of this class
  654. */
  655. public function getXsiTypeName() {
  656. return "Location";
  657. }
  658. public function __construct($locationName = NULL, $displayType = NULL, $isObsolete = NULL, $parentLocations = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  659. if(get_parent_class('Location')) parent::__construct();
  660. $this->locationName = $locationName;
  661. $this->displayType = $displayType;
  662. $this->isObsolete = $isObsolete;
  663. $this->parentLocations = $parentLocations;
  664. $this->id = $id;
  665. $this->type = $type;
  666. $this->CriterionType = $CriterionType;
  667. }
  668. }}
  669. if (!class_exists("LocationCriterion", FALSE)) {
  670. /**
  671. * Represents data that encapsulates a location criterion.
  672. * @package GoogleApiAdsAdWords
  673. * @subpackage v201109
  674. */
  675. class LocationCriterion {
  676. /**
  677. * @access public
  678. * @var Location
  679. */
  680. public $location;
  681. /**
  682. * @access public
  683. * @var string
  684. */
  685. public $canonicalName;
  686. /**
  687. * @access public
  688. * @var integer
  689. */
  690. public $reach;
  691. /**
  692. * @access public
  693. * @var string
  694. */
  695. public $locale;
  696. /**
  697. * @access public
  698. * @var string
  699. */
  700. public $searchTerm;
  701. /**
  702. * Gets the namesapce of this class
  703. * @return the namespace of this class
  704. */
  705. public function getNamespace() {
  706. return "https://adwords.google.com/api/adwords/cm/v201109";
  707. }
  708. /**
  709. * Gets the xsi:type name of this class
  710. * @return the xsi:type name of this class
  711. */
  712. public function getXsiTypeName() {
  713. return "LocationCriterion";
  714. }
  715. public function __construct($location = NULL, $canonicalName = NULL, $reach = NULL, $locale = NULL, $searchTerm = NULL) {
  716. if(get_parent_class('LocationCriterion')) parent::__construct();
  717. $this->location = $location;
  718. $this->canonicalName = $canonicalName;
  719. $this->reach = $reach;
  720. $this->locale = $locale;
  721. $this->searchTerm = $searchTerm;
  722. }
  723. }}
  724. if (!class_exists("LocationCriterionServiceError", FALSE)) {
  725. /**
  726. * Represents errors thrown by the {@link LocationCriterionService#get} operation.
  727. * @package GoogleApiAdsAdWords
  728. * @subpackage v201109
  729. */
  730. class LocationCriterionServiceError extends ApiError {
  731. /**
  732. * @access public
  733. * @var tnsLocationCriterionServiceErrorReason
  734. */
  735. public $reason;
  736. /**
  737. * Gets the namesapce of this class
  738. * @return the namespace of this class
  739. */
  740. public function getNamespace() {
  741. return "https://adwords.google.com/api/adwords/cm/v201109";
  742. }
  743. /**
  744. * Gets the xsi:type name of this class
  745. * @return the xsi:type name of this class
  746. */
  747. public function getXsiTypeName() {
  748. return "LocationCriterionServiceError";
  749. }
  750. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  751. if(get_parent_class('LocationCriterionServiceError')) parent::__construct();
  752. $this->reason = $reason;
  753. $this->fieldPath = $fieldPath;
  754. $this->trigger = $trigger;
  755. $this->errorString = $errorString;
  756. $this->ApiErrorType = $ApiErrorType;
  757. }
  758. }}
  759. if (!class_exists("NotEmptyError", FALSE)) {
  760. /**
  761. * Errors corresponding with violation of a NOT EMPTY check.
  762. * @package GoogleApiAdsAdWords
  763. * @subpackage v201109
  764. */
  765. class NotEmptyError extends ApiError {
  766. /**
  767. * @access public
  768. * @var tnsNotEmptyErrorReason
  769. */
  770. public $reason;
  771. /**
  772. * Gets the namesapce of this class
  773. * @return the namespace of this class
  774. */
  775. public function getNamespace() {
  776. return "https://adwords.google.com/api/adwords/cm/v201109";
  777. }
  778. /**
  779. * Gets the xsi:type name of this class
  780. * @return the xsi:type name of this class
  781. */
  782. public function getXsiTypeName() {
  783. return "NotEmptyError";
  784. }
  785. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  786. if(get_parent_class('NotEmptyError')) parent::__construct();
  787. $this->reason = $reason;
  788. $this->fieldPath = $fieldPath;
  789. $this->trigger = $trigger;
  790. $this->errorString = $errorString;
  791. $this->ApiErrorType = $ApiErrorType;
  792. }
  793. }}
  794. if (!class_exists("NotWhitelistedError", FALSE)) {
  795. /**
  796. * Indicates that the customer is not whitelisted for accessing the API.
  797. * @package GoogleApiAdsAdWords
  798. * @subpackage v201109
  799. */
  800. class NotWhitelistedError extends ApiError {
  801. /**
  802. * @access public
  803. * @var tnsNotWhitelistedErrorReason
  804. */
  805. public $reason;
  806. /**
  807. * Gets the namesapce of this class
  808. * @return the namespace of this class
  809. */
  810. public function getNamespace() {
  811. return "https://adwords.google.com/api/adwords/cm/v201109";
  812. }
  813. /**
  814. * Gets the xsi:type name of this class
  815. * @return the xsi:type name of this class
  816. */
  817. public function getXsiTypeName() {
  818. return "NotWhitelistedError";
  819. }
  820. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  821. if(get_parent_class('NotWhitelistedError')) parent::__construct();
  822. $this->reason = $reason;
  823. $this->fieldPath = $fieldPath;
  824. $this->trigger = $trigger;
  825. $this->errorString = $errorString;
  826. $this->ApiErrorType = $ApiErrorType;
  827. }
  828. }}
  829. if (!class_exists("NullError", FALSE)) {
  830. /**
  831. * Errors associated with violation of a NOT NULL check.
  832. * @package GoogleApiAdsAdWords
  833. * @subpackage v201109
  834. */
  835. class NullError extends ApiError {
  836. /**
  837. * @access public
  838. * @var tnsNullErrorReason
  839. */
  840. public $reason;
  841. /**
  842. * Gets the namesapce of this class
  843. * @return the namespace of this class
  844. */
  845. public function getNamespace() {
  846. return "https://adwords.google.com/api/adwords/cm/v201109";
  847. }
  848. /**
  849. * Gets the xsi:type name of this class
  850. * @return the xsi:type name of this class
  851. */
  852. public function getXsiTypeName() {
  853. return "NullError";
  854. }
  855. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  856. if(get_parent_class('NullError')) parent::__construct();
  857. $this->reason = $reason;
  858. $this->fieldPath = $fieldPath;
  859. $this->trigger = $trigger;
  860. $this->errorString = $errorString;
  861. $this->ApiErrorType = $ApiErrorType;
  862. }
  863. }}
  864. if (!class_exists("OrderBy", FALSE)) {
  865. /**
  866. * Specifies how the resulting information should be sorted.
  867. * @package GoogleApiAdsAdWords
  868. * @subpackage v201109
  869. */
  870. class OrderBy {
  871. /**
  872. * @access public
  873. * @var string
  874. */
  875. public $field;
  876. /**
  877. * @access public
  878. * @var tnsSortOrder
  879. */
  880. public $sortOrder;
  881. /**
  882. * Gets the namesapce of this class
  883. * @return the namespace of this class
  884. */
  885. public function getNamespace() {
  886. return "https://adwords.google.com/api/adwords/cm/v201109";
  887. }
  888. /**
  889. * Gets the xsi:type name of this class
  890. * @return the xsi:type name of this class
  891. */
  892. public function getXsiTypeName() {
  893. return "OrderBy";
  894. }
  895. public function __construct($field = NULL, $sortOrder = NULL) {
  896. if(get_parent_class('OrderBy')) parent::__construct();
  897. $this->field = $field;
  898. $this->sortOrder = $sortOrder;
  899. }
  900. }}
  901. if (!class_exists("Paging", FALSE)) {
  902. /**
  903. * Specifies the page of results to return in the response. A page is specified
  904. * by the result position to start at and the maximum number of results to
  905. * return.
  906. * @package GoogleApiAdsAdWords
  907. * @subpackage v201109
  908. */
  909. class Paging {
  910. /**
  911. * @access public
  912. * @var integer
  913. */
  914. public $startIndex;
  915. /**
  916. * @access public
  917. * @var integer
  918. */
  919. public $numberResults;
  920. /**
  921. * Gets the namesapce of this class
  922. * @return the namespace of this class
  923. */
  924. public function getNamespace() {
  925. return "https://adwords.google.com/api/adwords/cm/v201109";
  926. }
  927. /**
  928. * Gets the xsi:type name of this class
  929. * @return the xsi:type name of this class
  930. */
  931. public function getXsiTypeName() {
  932. return "Paging";
  933. }
  934. public function __construct($startIndex = NULL, $numberResults = NULL) {
  935. if(get_parent_class('Paging')) parent::__construct();
  936. $this->startIndex = $startIndex;
  937. $this->numberResults = $numberResults;
  938. }
  939. }}
  940. if (!class_exists("Placement", FALSE)) {
  941. /**
  942. * A placement used for modifying bids for sites when targeting the content
  943. * network.
  944. * @package GoogleApiAdsAdWords
  945. * @subpackage v201109
  946. */
  947. class Placement extends Criterion {
  948. /**
  949. * @access public
  950. * @var string
  951. */
  952. public $url;
  953. /**
  954. * Gets the namesapce of this class
  955. * @return the namespace of this class
  956. */
  957. public function getNamespace() {
  958. return "https://adwords.google.com/api/adwords/cm/v201109";
  959. }
  960. /**
  961. * Gets the xsi:type name of this class
  962. * @return the xsi:type name of this class
  963. */
  964. public function getXsiTypeName() {
  965. return "Placement";
  966. }
  967. public function __construct($url = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  968. if(get_parent_class('Placement')) parent::__construct();
  969. $this->url = $url;
  970. $this->id = $id;
  971. $this->type = $type;
  972. $this->CriterionType = $CriterionType;
  973. }
  974. }}
  975. if (!class_exists("Predicate", FALSE)) {
  976. /**
  977. * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.
  978. * @package GoogleApiAdsAdWords
  979. * @subpackage v201109
  980. */
  981. class Predicate {
  982. /**
  983. * @access public
  984. * @var string
  985. */
  986. public $field;
  987. /**
  988. * @access public
  989. * @var tnsPredicateOperator
  990. */
  991. public $operator;
  992. /**
  993. * @access public
  994. * @var string[]
  995. */
  996. public $values;
  997. /**
  998. * Gets the namesapce of this class
  999. * @return the namespace of this class
  1000. */
  1001. public function getNamespace() {
  1002. return "https://adwords.google.com/api/adwords/cm/v201109";
  1003. }
  1004. /**
  1005. * Gets the xsi:type name of this class
  1006. * @return the xsi:type name of this class
  1007. */
  1008. public function getXsiTypeName() {
  1009. return "Predicate";
  1010. }
  1011. public function __construct($field = NULL, $operator = NULL, $values = NULL) {
  1012. if(get_parent_class('Predicate')) parent::__construct();
  1013. $this->field = $field;
  1014. $this->operator = $operator;
  1015. $this->values = $values;
  1016. }
  1017. }}
  1018. if (!class_exists("Product", FALSE)) {
  1019. /**
  1020. * Product targeting criteria, represents a filter for products in the
  1021. * product feed that is defined by the advertiser. The criteria is used to
  1022. * determine the products in a Merchant Center account to be used with the
  1023. * ProductAds in the AdGroup. This criteria is available only to some advertisers.
  1024. * @package GoogleApiAdsAdWords
  1025. * @subpackage v201109
  1026. */
  1027. class Product extends Criterion {
  1028. /**
  1029. * @access public
  1030. * @var ProductCondition[]
  1031. */
  1032. public $conditions;
  1033. /**
  1034. * @access public
  1035. * @var string
  1036. */
  1037. public $text;
  1038. /**
  1039. * Gets the namesapce of this class
  1040. * @return the namespace of this class
  1041. */
  1042. public function getNamespace() {
  1043. return "https://adwords.google.com/api/adwords/cm/v201109";
  1044. }
  1045. /**
  1046. * Gets the xsi:type name of this class
  1047. * @return the xsi:type name of this class
  1048. */
  1049. public function getXsiTypeName() {
  1050. return "Product";
  1051. }
  1052. public function __construct($conditions = NULL, $text = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  1053. if(get_parent_class('Product')) parent::__construct();
  1054. $this->conditions = $conditions;
  1055. $this->text = $text;
  1056. $this->id = $id;
  1057. $this->type = $type;
  1058. $this->CriterionType = $CriterionType;
  1059. }
  1060. }}
  1061. if (!class_exists("ProductCondition", FALSE)) {
  1062. /**
  1063. * Conditions to filter the products defined in product feed for targeting.
  1064. * The condition is defined as operand=argument.
  1065. * @package GoogleApiAdsAdWords
  1066. * @subpackage v201109
  1067. */
  1068. class ProductCondition {
  1069. /**
  1070. * @access public
  1071. * @var string
  1072. */
  1073. public $argument;
  1074. /**
  1075. * @access public
  1076. * @var ProductConditionOperand
  1077. */
  1078. public $operand;
  1079. /**
  1080. * Gets the namesapce of this class
  1081. * @return the namespace of this class
  1082. */
  1083. public function getNamespace() {
  1084. return "https://adwords.google.com/api/adwords/cm/v201109";
  1085. }
  1086. /**
  1087. * Gets the xsi:type name of this class
  1088. * @return the xsi:type name of this class
  1089. */
  1090. public function getXsiTypeName() {
  1091. return "ProductCondition";
  1092. }
  1093. public function __construct($argument = NULL, $operand = NULL) {
  1094. if(get_parent_class('ProductCondition')) parent::__construct();
  1095. $this->argument = $argument;
  1096. $this->operand = $operand;
  1097. }
  1098. }}
  1099. if (!class_exists("ProductConditionOperand", FALSE)) {
  1100. /**
  1101. * Attribute for the product condition.
  1102. * @package GoogleApiAdsAdWords
  1103. * @subpackage v201109
  1104. */
  1105. class ProductConditionOperand {
  1106. /**
  1107. * @access public
  1108. * @var string
  1109. */
  1110. public $operand;
  1111. /**
  1112. * Gets the namesapce of this class
  1113. * @return the namespace of this class
  1114. */
  1115. public function getNamespace() {
  1116. return "https://adwords.google.com/api/adwords/cm/v201109";
  1117. }
  1118. /**
  1119. * Gets the xsi:type name of this class
  1120. * @return the xsi:type name of this class
  1121. */
  1122. public function getXsiTypeName() {
  1123. return "ProductConditionOperand";
  1124. }
  1125. public function __construct($operand = NULL) {
  1126. if(get_parent_class('ProductConditionOperand')) parent::__construct();
  1127. $this->operand = $operand;
  1128. }
  1129. }}
  1130. if (!class_exists("QuotaCheckError", FALSE)) {
  1131. /**
  1132. * Encapsulates the errors thrown during developer quota checks.
  1133. * @package GoogleApiAdsAdWords
  1134. * @subpackage v201109
  1135. */
  1136. class QuotaCheckError extends ApiError {
  1137. /**
  1138. * @access public
  1139. * @var tnsQuotaCheckErrorReason
  1140. */
  1141. public $reason;
  1142. /**
  1143. * Gets the namesapce of this class
  1144. * @return the namespace of this class
  1145. */
  1146. public function getNamespace() {
  1147. return "https://adwords.google.com/api/adwords/cm/v201109";
  1148. }
  1149. /**
  1150. * Gets the xsi:type name of this class
  1151. * @return the xsi:type name of this class
  1152. */
  1153. public function getXsiTypeName() {
  1154. return "QuotaCheckError";
  1155. }
  1156. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1157. if(get_parent_class('QuotaCheckError')) parent::__construct();
  1158. $this->reason = $reason;
  1159. $this->fieldPath = $fieldPath;
  1160. $this->trigger = $trigger;
  1161. $this->errorString = $errorString;
  1162. $this->ApiErrorType = $ApiErrorType;
  1163. }
  1164. }}
  1165. if (!class_exists("RangeError", FALSE)) {
  1166. /**
  1167. * A list of all errors associated with the Range constraint.
  1168. * @package GoogleApiAdsAdWords
  1169. * @subpackage v201109
  1170. */
  1171. class RangeError extends ApiError {
  1172. /**
  1173. * @access public
  1174. * @var tnsRangeErrorReason
  1175. */
  1176. public $reason;
  1177. /**
  1178. * Gets the namesapce of this class
  1179. * @return the namespace of this class
  1180. */
  1181. public function getNamespace() {
  1182. return "https://adwords.google.com/api/adwords/cm/v201109";
  1183. }
  1184. /**
  1185. * Gets the xsi:type name of this class
  1186. * @return the xsi:type name of this class
  1187. */
  1188. public function getXsiTypeName() {
  1189. return "RangeError";
  1190. }
  1191. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1192. if(get_parent_class('RangeError')) parent::__construct();
  1193. $this->reason = $reason;
  1194. $this->fieldPath = $fieldPath;
  1195. $this->trigger = $trigger;
  1196. $this->errorString = $errorString;
  1197. $this->ApiErrorType = $ApiErrorType;
  1198. }
  1199. }}
  1200. if (!class_exists("RateExceededError", FALSE)) {
  1201. /**
  1202. * Signals that a call failed because a measured rate exceeded.
  1203. * @package GoogleApiAdsAdWords
  1204. * @subpackage v201109
  1205. */
  1206. class RateExceededError extends ApiError {
  1207. /**
  1208. * @access public
  1209. * @var tnsRateExceededErrorReason
  1210. */
  1211. public $reason;
  1212. /**
  1213. * @access public
  1214. * @var string
  1215. */
  1216. public $rateName;
  1217. /**
  1218. * @access public
  1219. * @var string
  1220. */
  1221. public $rateScope;
  1222. /**
  1223. * @access public
  1224. * @var integer
  1225. */
  1226. public $retryAfterSeconds;
  1227. /**
  1228. * Gets the namesapce of this class
  1229. * @return the namespace of this class
  1230. */
  1231. public function getNamespace() {
  1232. return "https://adwords.google.com/api/adwords/cm/v201109";
  1233. }
  1234. /**
  1235. * Gets the xsi:type name of this class
  1236. * @return the xsi:type name of this class
  1237. */
  1238. public function getXsiTypeName() {
  1239. return "RateExceededError";
  1240. }
  1241. public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1242. if(get_parent_class('RateExceededError')) parent::__construct();
  1243. $this->reason = $reason;
  1244. $this->rateName = $rateName;
  1245. $this->rateScope = $rateScope;
  1246. $this->retryAfterSeconds = $retryAfterSeconds;
  1247. $this->fieldPath = $fieldPath;
  1248. $this->trigger = $trigger;
  1249. $this->errorString = $errorString;
  1250. $this->ApiErrorType = $ApiErrorType;
  1251. }
  1252. }}
  1253. if (!class_exists("RejectedError", FALSE)) {
  1254. /**
  1255. * The error reason represented by an enum.
  1256. * @package GoogleApiAdsAdWords
  1257. * @subpackage v201109
  1258. */
  1259. class RejectedError extends ApiError {
  1260. /**
  1261. * @access public
  1262. * @var tnsRejectedErrorReason
  1263. */
  1264. public $reason;
  1265. /**
  1266. * Gets the namesapce of this class
  1267. * @return the namespace of this class
  1268. */
  1269. public function getNamespace() {
  1270. return "https://adwords.google.com/api/adwords/cm/v201109";
  1271. }
  1272. /**
  1273. * Gets the xsi:type name of this class
  1274. * @return the xsi:type name of this class
  1275. */
  1276. public function getXsiTypeName() {
  1277. return "RejectedError";
  1278. }
  1279. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1280. if(get_parent_class('RejectedError')) parent::__construct();
  1281. $this->reason = $reason;
  1282. $this->fieldPath = $fieldPath;
  1283. $this->trigger = $trigger;
  1284. $this->errorString = $errorString;
  1285. $this->ApiErrorType = $ApiErrorType;
  1286. }
  1287. }}
  1288. if (!class_exists("RequestError", FALSE)) {
  1289. /**
  1290. * Encapsulates the generic errors thrown when there's an error with user
  1291. * request.
  1292. * @package GoogleApiAdsAdWords
  1293. * @subpackage v201109
  1294. */
  1295. class RequestError extends ApiError {
  1296. /**
  1297. * @access public
  1298. * @var tnsRequestErrorReason
  1299. */
  1300. public $reason;
  1301. /**
  1302. * Gets the namesapce of this class
  1303. * @return the namespace of this class
  1304. */
  1305. public function getNamespace() {
  1306. return "https://adwords.google.com/api/adwords/cm/v201109";
  1307. }
  1308. /**
  1309. * Gets the xsi:type name of this class
  1310. * @return the xsi:type name of this class
  1311. */
  1312. public function getXsiTypeName() {
  1313. return "RequestError";
  1314. }
  1315. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1316. if(get_parent_class('RequestError')) parent::__construct();
  1317. $this->reason = $reason;
  1318. $this->fieldPath = $fieldPath;
  1319. $this->trigger = $trigger;
  1320. $this->errorString = $errorString;
  1321. $this->ApiErrorType = $ApiErrorType;
  1322. }
  1323. }}
  1324. if (!class_exists("RequiredError", FALSE)) {
  1325. /**
  1326. * Errors due to missing required field.
  1327. * @package GoogleApiAdsAdWords
  1328. * @subpackage v201109
  1329. */
  1330. class RequiredError extends ApiError {
  1331. /**
  1332. * @access public
  1333. * @var tnsRequiredErrorReason
  1334. */
  1335. public $reason;
  1336. /**
  1337. * Gets the namesapce of this class
  1338. * @return the namespace of this class
  1339. */
  1340. public function getNamespace() {
  1341. return "https://adwords.google.com/api/adwords/cm/v201109";
  1342. }
  1343. /**
  1344. * Gets the xsi:type name of this class
  1345. * @return the xsi:type name of this class
  1346. */
  1347. public function getXsiTypeName() {
  1348. return "RequiredError";
  1349. }
  1350. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1351. if(get_parent_class('RequiredError')) parent::__construct();
  1352. $this->reason = $reason;
  1353. $this->fieldPath = $fieldPath;
  1354. $this->trigger = $trigger;
  1355. $this->errorString = $errorString;
  1356. $this->ApiErrorType = $ApiErrorType;
  1357. }
  1358. }}
  1359. if (!class_exists("Selector", FALSE)) {
  1360. /**
  1361. * A generic selector to specify the type of information to return.
  1362. * @package GoogleApiAdsAdWords
  1363. * @subpackage v201109
  1364. */
  1365. class Selector {
  1366. /**
  1367. * @access public
  1368. * @var string[]
  1369. */
  1370. public $fields;
  1371. /**
  1372. * @access public
  1373. * @var Predicate[]
  1374. */
  1375. public $predicates;
  1376. /**
  1377. * @access public
  1378. * @var DateRange
  1379. */
  1380. public $dateRange;
  1381. /**
  1382. * @access public
  1383. * @var OrderBy[]
  1384. */
  1385. public $ordering;
  1386. /**
  1387. * @access public
  1388. * @var Paging
  1389. */
  1390. public $paging;
  1391. /**
  1392. * Gets the namesapce of this class
  1393. * @return the namespace of this class
  1394. */
  1395. public function getNamespace() {
  1396. return "https://adwords.google.com/api/adwords/cm/v201109";
  1397. }
  1398. /**
  1399. * Gets the xsi:type name of this class
  1400. * @return the xsi:type name of this class
  1401. */
  1402. public function getXsiTypeName() {
  1403. return "Selector";
  1404. }
  1405. public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) {
  1406. if(get_parent_class('Selector')) parent::__construct();
  1407. $this->fields = $fields;
  1408. $this->predicates = $predicates;
  1409. $this->dateRange = $dateRange;
  1410. $this->ordering = $ordering;
  1411. $this->paging = $paging;
  1412. }
  1413. }}
  1414. if (!class_exists("SelectorError", FALSE)) {
  1415. /**
  1416. * Represents possible error codes for {@link Selector}.
  1417. * @package GoogleApiAdsAdWords
  1418. * @subpackage v201109
  1419. */
  1420. class SelectorError extends ApiError {
  1421. /**
  1422. * @access public
  1423. * @var tnsSelectorErrorReason
  1424. */
  1425. public $reason;
  1426. /**
  1427. * Gets the namesapce of this class
  1428. * @return the namespace of this class
  1429. */
  1430. public function getNamespace() {
  1431. return "https://adwords.google.com/api/adwords/cm/v201109";
  1432. }
  1433. /**
  1434. * Gets the xsi:type name of this class
  1435. * @return the xsi:type name of this class
  1436. */
  1437. public function getXsiTypeName() {
  1438. return "SelectorError";
  1439. }
  1440. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1441. if(get_parent_class('SelectorError')) parent::__construct();
  1442. $this->reason = $reason;
  1443. $this->fieldPath = $fieldPath;
  1444. $this->trigger = $trigger;
  1445. $this->errorString = $errorString;
  1446. $this->ApiErrorType = $ApiErrorType;
  1447. }
  1448. }}
  1449. if (!class_exists("SizeLimitError", FALSE)) {
  1450. /**
  1451. * Indicates that the number of entries in the request or response exceeds the system limit.
  1452. * @package GoogleApiAdsAdWords
  1453. * @subpackage v201109
  1454. */
  1455. class SizeLimitError extends ApiError {
  1456. /**
  1457. * @access public
  1458. * @var tnsSizeLimitErrorReason
  1459. */
  1460. public $reason;
  1461. /**
  1462. * Gets the namesapce of this class
  1463. * @return the namespace of this class
  1464. */
  1465. public function getNamespace() {
  1466. return "https://adwords.google.com/api/adwords/cm/v201109";
  1467. }
  1468. /**
  1469. * Gets the xsi:type name of this class
  1470. * @return the xsi:type name of this class
  1471. */
  1472. public function getXsiTypeName() {
  1473. return "SizeLimitError";
  1474. }
  1475. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1476. if(get_parent_class('SizeLimitError')) parent::__construct();
  1477. $this->reason = $reason;
  1478. $this->fieldPath = $fieldPath;
  1479. $this->trigger = $trigger;
  1480. $this->errorString = $errorString;
  1481. $this->ApiErrorType = $ApiErrorType;
  1482. }
  1483. }}
  1484. if (!class_exists("SoapRequestHeader", FALSE)) {
  1485. /**
  1486. * Defines the required and optional elements within the header of a SOAP request.
  1487. * @package GoogleApiAdsAdWords
  1488. * @subpackage v201109
  1489. */
  1490. class SoapRequestHeader {
  1491. /**
  1492. * @access public
  1493. * @var string
  1494. */
  1495. public $authToken;
  1496. /**
  1497. * @access public
  1498. * @var string
  1499. */
  1500. public $clientCustomerId;
  1501. /**
  1502. * @access public
  1503. * @var string
  1504. */
  1505. public $developerToken;
  1506. /**
  1507. * @access public
  1508. * @var string
  1509. */
  1510. public $userAgent;
  1511. /**
  1512. * @access public
  1513. * @var boolean
  1514. */
  1515. public $validateOnly;
  1516. /**
  1517. * @access public
  1518. * @var boolean
  1519. */
  1520. public $partialFailure;
  1521. /**
  1522. * Gets the namesapce of this class
  1523. * @return the namespace of this class
  1524. */
  1525. public function getNamespace() {
  1526. return "https://adwords.google.com/api/adwords/cm/v201109";
  1527. }
  1528. /**
  1529. * Gets the xsi:type name of this class
  1530. * @return the xsi:type name of this class
  1531. */
  1532. public function getXsiTypeName() {
  1533. return "SoapHeader";
  1534. }
  1535. public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) {
  1536. if(get_parent_class('SoapRequestHeader')) parent::__construct();
  1537. $this->authToken = $authToken;
  1538. $this->clientCustomerId = $clientCustomerId;
  1539. $this->developerToken = $developerToken;
  1540. $this->userAgent = $userAgent;
  1541. $this->validateOnly = $validateOnly;
  1542. $this->partialFailure = $partialFailure;
  1543. }
  1544. }}
  1545. if (!class_exists("SoapResponseHeader", FALSE)) {
  1546. /**
  1547. * Defines the elements within the header of a SOAP response.
  1548. * @package GoogleApiAdsAdWords
  1549. * @subpackage v201109
  1550. */
  1551. class SoapResponseHeader {
  1552. /**
  1553. * @access public
  1554. * @var string
  1555. */
  1556. public $requestId;
  1557. /**
  1558. * @access public
  1559. * @var string
  1560. */
  1561. public $serviceName;
  1562. /**
  1563. * @access public
  1564. * @var string
  1565. */
  1566. public $methodName;
  1567. /**
  1568. * @access public
  1569. * @var integer
  1570. */
  1571. public $operations;
  1572. /**
  1573. * @access public
  1574. * @var integer
  1575. */
  1576. public $responseTime;
  1577. /**
  1578. * @access public
  1579. * @var integer
  1580. */
  1581. public $units;
  1582. /**
  1583. * Gets the namesapce of this class
  1584. * @return the namespace of this class
  1585. */
  1586. public function getNamespace() {
  1587. return "https://adwords.google.com/api/adwords/cm/v201109";
  1588. }
  1589. /**
  1590. * Gets the xsi:type name of this class
  1591. * @return the xsi:type name of this class
  1592. */
  1593. public function getXsiTypeName() {
  1594. return "SoapResponseHeader";
  1595. }
  1596. public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL, $units = NULL) {
  1597. if(get_parent_class('SoapResponseHeader')) parent::__construct();
  1598. $this->requestId = $requestId;
  1599. $this->serviceName = $serviceName;
  1600. $this->methodName = $methodName;
  1601. $this->operations = $operations;
  1602. $this->responseTime = $responseTime;
  1603. $this->units = $units;
  1604. }
  1605. }}
  1606. if (!class_exists("CriterionUserInterest", FALSE)) {
  1607. /**
  1608. * User Interest - represents a particular interest based vertical to be targeted.
  1609. * Targeting UserInterest is currently in a limited beta. If you'd like access
  1610. * please speak with your account representative.
  1611. * @package GoogleApiAdsAdWords
  1612. * @subpackage v201109
  1613. */
  1614. class CriterionUserInterest extends Criterion {
  1615. /**
  1616. * @access public
  1617. * @var integer
  1618. */
  1619. public $userInterestId;
  1620. /**
  1621. * @access public
  1622. * @var string
  1623. */
  1624. public $userInterestName;
  1625. /**
  1626. * Gets the namesapce of this class
  1627. * @return the namespace of this class
  1628. */
  1629. public function getNamespace() {
  1630. return "https://adwords.google.com/api/adwords/cm/v201109";
  1631. }
  1632. /**
  1633. * Gets the xsi:type name of this class
  1634. * @return the xsi:type name of this class
  1635. */
  1636. public function getXsiTypeName() {
  1637. return "CriterionUserInterest";
  1638. }
  1639. public function __construct($userInterestId = NULL, $userInterestName = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  1640. if(get_parent_class('CriterionUserInterest')) parent::__construct();
  1641. $this->userInterestId = $userInterestId;
  1642. $this->userInterestName = $userInterestName;
  1643. $this->id = $id;
  1644. $this->type = $type;
  1645. $this->CriterionType = $CriterionType;
  1646. }
  1647. }}
  1648. if (!class_exists("CriterionUserList", FALSE)) {
  1649. /**
  1650. * UserList - represents a user list that is defined by the advertiser to be targeted.
  1651. * @package GoogleApiAdsAdWords
  1652. * @subpackage v201109
  1653. */
  1654. class CriterionUserList extends Criterion {
  1655. /**
  1656. * @access public
  1657. * @var integer
  1658. */
  1659. public $userListId;
  1660. /**
  1661. * @access public
  1662. * @var string
  1663. */
  1664. public $userListName;
  1665. /**
  1666. * @access public
  1667. * @var tnsCriterionUserListMembershipStatus
  1668. */
  1669. public $userListMembershipStatus;
  1670. /**
  1671. * Gets the namesapce of this class
  1672. * @return the namespace of this class
  1673. */
  1674. public function getNamespace() {
  1675. return "https://adwords.google.com/api/adwords/cm/v201109";
  1676. }
  1677. /**
  1678. * Gets the xsi:type name of this class
  1679. * @return the xsi:type name of this class
  1680. */
  1681. public function getXsiTypeName() {
  1682. return "CriterionUserList";
  1683. }
  1684. public function __construct($userListId = NULL, $userListName = NULL, $userListMembershipStatus = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  1685. if(get_parent_class('CriterionUserList')) parent::__construct();
  1686. $this->userListId = $userListId;
  1687. $this->userListName = $userListName;
  1688. $this->userListMembershipStatus = $userListMembershipStatus;
  1689. $this->id = $id;
  1690. $this->type = $type;
  1691. $this->CriterionType = $CriterionType;
  1692. }
  1693. }}
  1694. if (!class_exists("Vertical", FALSE)) {
  1695. /**
  1696. * Use verticals to target or exclude placements in the Google Display Network
  1697. * based on the category into which the placement falls (for example, "Pets &amp;
  1698. * Animals/Pets/Dogs").
  1699. * <a href="/apis/adwords/docs/appendix/verticals.html">View the complete list
  1700. * of available vertical categories.</a>
  1701. * @package GoogleApiAdsAdWords
  1702. * @subpackage v201109
  1703. */
  1704. class Vertical extends Criterion {
  1705. /**
  1706. * @access public
  1707. * @var string[]
  1708. */
  1709. public $path;
  1710. /**
  1711. * Gets the namesapce of this class
  1712. * @return the namespace of this class
  1713. */
  1714. public function getNamespace() {
  1715. return "https://adwords.google.com/api/adwords/cm/v201109";
  1716. }
  1717. /**
  1718. * Gets the xsi:type name of this class
  1719. * @return the xsi:type name of this class
  1720. */
  1721. public function getXsiTypeName() {
  1722. return "Vertical";
  1723. }
  1724. public function __construct($path = NULL, $id = NULL, $type = NULL, $CriterionType = NULL) {
  1725. if(get_parent_class('Vertical')) parent::__construct();
  1726. $this->path = $path;
  1727. $this->id = $id;
  1728. $this->type = $type;
  1729. $this->CriterionType = $CriterionType;
  1730. }
  1731. }}
  1732. if (!class_exists("AuthenticationErrorReason", FALSE)) {
  1733. /**
  1734. * The single reason for the authentication failure.
  1735. * @package GoogleApiAdsAdWords
  1736. * @subpackage v201109
  1737. */
  1738. class AuthenticationErrorReason {
  1739. /**
  1740. * Gets the namesapce of this class
  1741. * @return the namespace of this class
  1742. */
  1743. public function getNamespace() {
  1744. return "https://adwords.google.com/api/adwords/cm/v201109";
  1745. }
  1746. /**
  1747. * Gets the xsi:type name of this class
  1748. * @return the xsi:type name of this class
  1749. */
  1750. public function getXsiTypeName() {
  1751. return "AuthenticationError.Reason";
  1752. }
  1753. public function __construct() {
  1754. if(get_parent_class('AuthenticationErrorReason')) parent::__construct();
  1755. }
  1756. }}
  1757. if (!class_exists("AuthorizationErrorReason", FALSE)) {
  1758. /**
  1759. * The reasons for the database error.
  1760. * @package GoogleApiAdsAdWords
  1761. * @subpackage v201109
  1762. */
  1763. class AuthorizationErrorReason {
  1764. /**
  1765. * Gets the namesapce of this class
  1766. * @return the namespace of this class
  1767. */
  1768. public function getNamespace() {
  1769. return "https://adwords.google.com/api/adwords/cm/v201109";
  1770. }
  1771. /**
  1772. * Gets the xsi:type name of this class
  1773. * @return the xsi:type name of this class
  1774. */
  1775. public function getXsiTypeName() {
  1776. return "AuthorizationError.Reason";
  1777. }
  1778. public function __construct() {
  1779. if(get_parent_class('AuthorizationErrorReason')) parent::__construct();
  1780. }
  1781. }}
  1782. if (!class_exists("ClientTermsErrorReason", FALSE)) {
  1783. /**
  1784. * Enums for the various reasons an error can be thrown as a result of
  1785. * ClientTerms violation.
  1786. * @package GoogleApiAdsAdWords
  1787. * @subpackage v201109
  1788. */
  1789. class ClientTermsErrorReason {
  1790. /**
  1791. * Gets the namesapce of this class
  1792. * @return the namespace of this class
  1793. */
  1794. public function getNamespace() {
  1795. return "https://adwords.google.com/api/adwords/cm/v201109";
  1796. }
  1797. /**
  1798. * Gets the xsi:type name of this class
  1799. * @return the xsi:type name of this class
  1800. */
  1801. public function getXsiTypeName() {
  1802. return "ClientTermsError.Reason";
  1803. }
  1804. public function __construct() {
  1805. if(get_parent_class('ClientTermsErrorReason')) parent::__construct();
  1806. }
  1807. }}
  1808. if (!class_exists("CriterionType", FALSE)) {
  1809. /**
  1810. * The types of criteria.
  1811. * @package GoogleApiAdsAdWords
  1812. * @subpackage v201109
  1813. */
  1814. class CriterionType {
  1815. /**
  1816. * Gets the namesapce of this class
  1817. * @return the namespace of this class
  1818. */
  1819. public function getNamespace() {
  1820. return "https://adwords.google.com/api/adwords/cm/v201109";
  1821. }
  1822. /**
  1823. * Gets the xsi:type name of this class
  1824. * @return the xsi:type name of this class
  1825. */
  1826. public function getXsiTypeName() {
  1827. return "Criterion.Type";
  1828. }
  1829. public function __construct() {
  1830. if(get_parent_class('CriterionType')) parent::__construct();
  1831. }
  1832. }}
  1833. if (!class_exists("DatabaseErrorReason", FALSE)) {
  1834. /**
  1835. * The reasons for the database error.
  1836. * @package GoogleApiAdsAdWords
  1837. * @subpackage v201109
  1838. */
  1839. class DatabaseErrorReason {
  1840. /**
  1841. * Gets the namesapce of this class
  1842. * @return the namespace of this class
  1843. */
  1844. public function getNamespace() {
  1845. return "https://adwords.google.com/api/adwords/cm/v201109";
  1846. }
  1847. /**
  1848. * Gets the xsi:type name of this class
  1849. * @return the xsi:type name of this class
  1850. */
  1851. public function getXsiTypeName() {
  1852. return "DatabaseError.Reason";
  1853. }
  1854. public function __construct() {
  1855. if(get_parent_class('DatabaseErrorReason')) parent::__construct();
  1856. }
  1857. }}
  1858. if (!class_exists("DateErrorReason", FALSE)) {
  1859. /**
  1860. * The reasons for the target error.
  1861. * @package GoogleApiAdsAdWords
  1862. * @subpackage v201109
  1863. */
  1864. class DateErrorReason {
  1865. /**
  1866. * Gets the namesapce of this class
  1867. * @return the namespace of this class
  1868. */
  1869. public function getNamespace() {
  1870. return "https://adwords.google.com/api/adwords/cm/v201109";
  1871. }
  1872. /**
  1873. * Gets the xsi:type name of this class
  1874. * @return the xsi:type name of this class
  1875. */
  1876. public function getXsiTypeName() {
  1877. return "DateError.Reason";
  1878. }
  1879. public function __construct() {
  1880. if(get_parent_class('DateErrorReason')) parent::__construct();
  1881. }
  1882. }}
  1883. if (!class_exists("DistinctErrorReason", FALSE)) {
  1884. /**
  1885. * The reasons for the validation error.
  1886. * @package GoogleApiAdsAdWords
  1887. * @subpackage v201109
  1888. */
  1889. class DistinctErrorReason {
  1890. /**
  1891. * Gets the namesapce of this class
  1892. * @return the namespace of this class
  1893. */
  1894. public function getNamespace() {
  1895. return "https://adwords.google.com/api/adwords/cm/v201109";
  1896. }
  1897. /**
  1898. * Gets the xsi:type name of this class
  1899. * @return the xsi:type name of this class
  1900. */
  1901. public function getXsiTypeName() {
  1902. return "DistinctError.Reason";
  1903. }
  1904. public function __construct() {
  1905. if(get_parent_class('DistinctErrorReason')) parent::__construct();
  1906. }
  1907. }}
  1908. if (!class_exists("InternalApiErrorReason", FALSE)) {
  1909. /**
  1910. * The single reason for the internal API error.
  1911. * @package GoogleApiAdsAdWords
  1912. * @subpackage v201109
  1913. */
  1914. class InternalApiErrorReason {
  1915. /**
  1916. * Gets the namesapce of this class
  1917. * @return the namespace of this class
  1918. */
  1919. public function getNamespace() {
  1920. return "https://adwords.google.com/api/adwords/cm/v201109";
  1921. }
  1922. /**
  1923. * Gets the xsi:type name of this class
  1924. * @return the xsi:type name of this class
  1925. */
  1926. public function getXsiTypeName() {
  1927. return "InternalApiError.Reason";
  1928. }
  1929. public function __construct() {
  1930. if(get_parent_class('InternalApiErrorReason')) parent::__construct();
  1931. }
  1932. }}
  1933. if (!class_exists("KeywordMatchType", FALSE)) {
  1934. /**
  1935. * Match type of a keyword. i.e. the way we match a keyword string with
  1936. * search queries.
  1937. * @package GoogleApiAdsAdWords
  1938. * @subpackage v201109
  1939. */
  1940. class KeywordMatchType {
  1941. /**
  1942. * Gets the namesapce of this class
  1943. * @return the namespace of this class
  1944. */
  1945. public function getNamespace() {
  1946. return "https://adwords.google.com/api/adwords/cm/v201109";
  1947. }
  1948. /**
  1949. * Gets the xsi:type name of this class
  1950. * @return the xsi:type name of this class
  1951. */
  1952. public function getXsiTypeName() {
  1953. return "KeywordMatchType";
  1954. }
  1955. public function __construct() {
  1956. if(get_parent_class('KeywordMatchType')) parent::__construct();
  1957. }
  1958. }}
  1959. if (!class_exists("LocationCriterionServiceErrorReason", FALSE)) {
  1960. /**
  1961. * Reasons for error.
  1962. * @package GoogleApiAdsAdWords
  1963. * @subpackage v201109
  1964. */
  1965. class LocationCriterionServiceErrorReason {
  1966. /**
  1967. * Gets the namesapce of this class
  1968. * @return the namespace of this class
  1969. */
  1970. public function getNamespace() {
  1971. return "https://adwords.google.com/api/adwords/cm/v201109";
  1972. }
  1973. /**
  1974. * Gets the xsi:type name of this class
  1975. * @return the xsi:type name of this class
  1976. */
  1977. public function getXsiTypeName() {
  1978. return "LocationCriterionServiceError.Reason";
  1979. }
  1980. public function __construct() {
  1981. if(get_parent_class('LocationCriterionServiceErrorReason')) parent::__construct();
  1982. }
  1983. }}
  1984. if (!class_exists("NotEmptyErrorReason", FALSE)) {
  1985. /**
  1986. * The reasons for the validation error.
  1987. * @package GoogleApiAdsAdWords
  1988. * @subpackage v201109
  1989. */
  1990. class NotEmptyErrorReason {
  1991. /**
  1992. * Gets the namesapce of this class
  1993. * @return the namespace of this class
  1994. */
  1995. public function getNamespace() {
  1996. return "https://adwords.google.com/api/adwords/cm/v201109";
  1997. }
  1998. /**
  1999. * Gets the xsi:type name of this class
  2000. * @return the xsi:type name of this class
  2001. */
  2002. public function getXsiTypeName() {
  2003. return "NotEmptyError.Reason";
  2004. }
  2005. public function __construct() {
  2006. if(get_parent_class('NotEmptyErrorReason')) parent::__construct();
  2007. }
  2008. }}
  2009. if (!class_exists("NotWhitelistedErrorReason", FALSE)) {
  2010. /**
  2011. * The single reason for the whitelist error.
  2012. * @package GoogleApiAdsAdWords
  2013. * @subpackage v201109
  2014. */
  2015. class NotWhitelistedErrorReason {
  2016. /**
  2017. * Gets the namesapce of this class
  2018. * @return the namespace of this class
  2019. */
  2020. public function getNamespace() {
  2021. return "https://adwords.google.com/api/adwords/cm/v201109";
  2022. }
  2023. /**
  2024. * Gets the xsi:type name of this class
  2025. * @return the xsi:type name of this class
  2026. */
  2027. public function getXsiTypeName() {
  2028. return "NotWhitelistedError.Reason";
  2029. }
  2030. public function __construct() {
  2031. if(get_parent_class('NotWhitelistedErrorReason')) parent::__construct();
  2032. }
  2033. }}
  2034. if (!class_exists("NullErrorReason", FALSE)) {
  2035. /**
  2036. * The reasons for the validation error.
  2037. * @package GoogleApiAdsAdWords
  2038. * @subpackage v201109
  2039. */
  2040. class NullErrorReason {
  2041. /**
  2042. * Gets the namesapce of this class
  2043. * @return the namespace of this class
  2044. */
  2045. public function getNamespace() {
  2046. return "https://adwords.google.com/api/adwords/cm/v201109";
  2047. }
  2048. /**
  2049. * Gets the xsi:type name of this class
  2050. * @return the xsi:type name of this class
  2051. */
  2052. public function getXsiTypeName() {
  2053. return "NullError.Reason";
  2054. }
  2055. public function __construct() {
  2056. if(get_parent_class('NullErrorReason')) parent::__construct();
  2057. }
  2058. }}
  2059. if (!class_exists("PredicateOperator", FALSE)) {
  2060. /**
  2061. * Defines the valid set of operators.
  2062. * @package GoogleApiAdsAdWords
  2063. * @subpackage v201109
  2064. */
  2065. class PredicateOperator {
  2066. /**
  2067. * Gets the namesapce of this class
  2068. * @return the namespace of this class
  2069. */
  2070. public function getNamespace() {
  2071. return "https://adwords.google.com/api/adwords/cm/v201109";
  2072. }
  2073. /**
  2074. * Gets the xsi:type name of this class
  2075. * @return the xsi:type name of this class
  2076. */
  2077. public function getXsiTypeName() {
  2078. return "Predicate.Operator";
  2079. }
  2080. public function __construct() {
  2081. if(get_parent_class('PredicateOperator')) parent::__construct();
  2082. }
  2083. }}
  2084. if (!class_exists("QuotaCheckErrorReason", FALSE)) {
  2085. /**
  2086. * Enums for all the reasons an error can be thrown to the user during
  2087. * billing quota checks.
  2088. * @package GoogleApiAdsAdWords
  2089. * @subpackage v201109
  2090. */
  2091. class QuotaCheckErrorReason {
  2092. /**
  2093. * Gets the namesapce of this class
  2094. * @return the namespace of this class
  2095. */
  2096. public function getNamespace() {
  2097. return "https://adwords.google.com/api/adwords/cm/v201109";
  2098. }
  2099. /**
  2100. * Gets the xsi:type name of this class
  2101. * @return the xsi:type name of this class
  2102. */
  2103. public function getXsiTypeName() {
  2104. return "QuotaCheckError.Reason";
  2105. }
  2106. public function __construct() {
  2107. if(get_parent_class('QuotaCheckErrorReason')) parent::__construct();
  2108. }
  2109. }}
  2110. if (!class_exists("RangeErrorReason", FALSE)) {
  2111. /**
  2112. * The reasons for the target error.
  2113. * @package GoogleApiAdsAdWords
  2114. * @subpackage v201109
  2115. */
  2116. class RangeErrorReason {
  2117. /**
  2118. * Gets the namesapce of this class
  2119. * @return the namespace of this class
  2120. */
  2121. public function getNamespace() {
  2122. return "https://adwords.google.com/api/adwords/cm/v201109";
  2123. }
  2124. /**
  2125. * Gets the xsi:type name of this class
  2126. * @return the xsi:type name of this class
  2127. */
  2128. public function getXsiTypeName() {
  2129. return "RangeError.Reason";
  2130. }
  2131. public function __construct() {
  2132. if(get_parent_class('RangeErrorReason')) parent::__construct();
  2133. }
  2134. }}
  2135. if (!class_exists("RateExceededErrorReason", FALSE)) {
  2136. /**
  2137. * The reason for the rate exceeded error.
  2138. * @package GoogleApiAdsAdWords
  2139. * @subpackage v201109
  2140. */
  2141. class RateExceededErrorReason {
  2142. /**
  2143. * Gets the namesapce of this class
  2144. * @return the namespace of this class
  2145. */
  2146. public function getNamespace() {
  2147. return "https://adwords.google.com/api/adwords/cm/v201109";
  2148. }
  2149. /**
  2150. * Gets the xsi:type name of this class
  2151. * @return the xsi:type name of this class
  2152. */
  2153. public function getXsiTypeName() {
  2154. return "RateExceededError.Reason";
  2155. }
  2156. public function __construct() {
  2157. if(get_parent_class('RateExceededErrorReason')) parent::__construct();
  2158. }
  2159. }}
  2160. if (!class_exists("RejectedErrorReason", FALSE)) {
  2161. /**
  2162. * The reasons for the target error.
  2163. * @package GoogleApiAdsAdWords
  2164. * @subpackage v201109
  2165. */
  2166. class RejectedErrorReason {
  2167. /**
  2168. * Gets the namesapce of this class
  2169. * @return the namespace of this class
  2170. */
  2171. public function getNamespace() {
  2172. return "https://adwords.google.com/api/adwords/cm/v201109";
  2173. }
  2174. /**
  2175. * Gets the xsi:type name of this class
  2176. * @return the xsi:type name of this class
  2177. */
  2178. public function getXsiTypeName() {
  2179. return "RejectedError.Reason";
  2180. }
  2181. public function __construct() {
  2182. if(get_parent_class('RejectedErrorReason')) parent::__construct();
  2183. }
  2184. }}
  2185. if (!class_exists("RequestErrorReason", FALSE)) {
  2186. /**
  2187. * Error reason is unknown.
  2188. * @package GoogleApiAdsAdWords
  2189. * @subpackage v201109
  2190. */
  2191. class RequestErrorReason {
  2192. /**
  2193. * Gets the namesapce of this class
  2194. * @return the namespace of this class
  2195. */
  2196. public function getNamespace() {
  2197. return "https://adwords.google.com/api/adwords/cm/v201109";
  2198. }
  2199. /**
  2200. * Gets the xsi:type name of this class
  2201. * @return the xsi:type name of this class
  2202. */
  2203. public function getXsiTypeName() {
  2204. return "RequestError.Reason";
  2205. }
  2206. public function __construct() {
  2207. if(get_parent_class('RequestErrorReason')) parent::__construct();
  2208. }
  2209. }}
  2210. if (!class_exists("RequiredErrorReason", FALSE)) {
  2211. /**
  2212. * The reasons for the target error.
  2213. * @package GoogleApiAdsAdWords
  2214. * @subpackage v201109
  2215. */
  2216. class RequiredErrorReason {
  2217. /**
  2218. * Gets the namesapce of this class
  2219. * @return the namespace of this class
  2220. */
  2221. public function getNamespace() {
  2222. return "https://adwords.google.com/api/adwords/cm/v201109";
  2223. }
  2224. /**
  2225. * Gets the xsi:type name of this class
  2226. * @return the xsi:type name of this class
  2227. */
  2228. public function getXsiTypeName() {
  2229. return "RequiredError.Reason";
  2230. }
  2231. public function __construct() {
  2232. if(get_parent_class('RequiredErrorReason')) parent::__construct();
  2233. }
  2234. }}
  2235. if (!class_exists("SelectorErrorReason", FALSE)) {
  2236. /**
  2237. * The reasons for the target error.
  2238. * @package GoogleApiAdsAdWords
  2239. * @subpackage v201109
  2240. */
  2241. class SelectorErrorReason {
  2242. /**
  2243. * Gets the namesapce of this class
  2244. * @return the namespace of this class
  2245. */
  2246. public function getNamespace() {
  2247. return "https://adwords.google.com/api/adwords/cm/v201109";
  2248. }
  2249. /**
  2250. * Gets the xsi:type name of this class
  2251. * @return the xsi:type name of this class
  2252. */
  2253. public function getXsiTypeName() {
  2254. return "SelectorError.Reason";
  2255. }
  2256. public function __construct() {
  2257. if(get_parent_class('SelectorErrorReason')) parent::__construct();
  2258. }
  2259. }}
  2260. if (!class_exists("SizeLimitErrorReason", FALSE)) {
  2261. /**
  2262. * The reasons for Ad Scheduling errors.
  2263. * @package GoogleApiAdsAdWords
  2264. * @subpackage v201109
  2265. */
  2266. class SizeLimitErrorReason {
  2267. /**
  2268. * Gets the namesapce of this class
  2269. * @return the namespace of this class
  2270. */
  2271. public function getNamespace() {
  2272. return "https://adwords.google.com/api/adwords/cm/v201109";
  2273. }
  2274. /**
  2275. * Gets the xsi:type name of this class
  2276. * @return the xsi:type name of this class
  2277. */
  2278. public function getXsiTypeName() {
  2279. return "SizeLimitError.Reason";
  2280. }
  2281. public function __construct() {
  2282. if(get_parent_class('SizeLimitErrorReason')) parent::__construct();
  2283. }
  2284. }}
  2285. if (!class_exists("SortOrder", FALSE)) {
  2286. /**
  2287. * Possible orders of sorting.
  2288. * @package GoogleApiAdsAdWords
  2289. * @subpackage v201109
  2290. */
  2291. class SortOrder {
  2292. /**
  2293. * Gets the namesapce of this class
  2294. * @return the namespace of this class
  2295. */
  2296. public function getNamespace() {
  2297. return "https://adwords.google.com/api/adwords/cm/v201109";
  2298. }
  2299. /**
  2300. * Gets the xsi:type name of this class
  2301. * @return the xsi:type name of this class
  2302. */
  2303. public function getXsiTypeName() {
  2304. return "SortOrder";
  2305. }
  2306. public function __construct() {
  2307. if(get_parent_class('SortOrder')) parent::__construct();
  2308. }
  2309. }}
  2310. if (!class_exists("CriterionUserListMembershipStatus", FALSE)) {
  2311. /**
  2312. * Membership status of the user list.
  2313. * @package GoogleApiAdsAdWords
  2314. * @subpackage v201109
  2315. */
  2316. class CriterionUserListMembershipStatus {
  2317. /**
  2318. * Gets the namesapce of this class
  2319. * @return the namespace of this class
  2320. */
  2321. public function getNamespace() {
  2322. return "https://adwords.google.com/api/adwords/cm/v201109";
  2323. }
  2324. /**
  2325. * Gets the xsi:type name of this class
  2326. * @return the xsi:type name of this class
  2327. */
  2328. public function getXsiTypeName() {
  2329. return "CriterionUserList.MembershipStatus";
  2330. }
  2331. public function __construct() {
  2332. if(get_parent_class('CriterionUserListMembershipStatus')) parent::__construct();
  2333. }
  2334. }}
  2335. if (!class_exists("LocationCriterionServiceGet", FALSE)) {
  2336. /**
  2337. * <span class="constraint Required">This field is required and should not be {@code null}.</span>
  2338. *
  2339. *
  2340. *
  2341. * Returns a list of {@link LocationCriterion}'s that match the specified selector.
  2342. *
  2343. * @param selector filters the LocationCriterion to be returned.
  2344. * @return A list of location criterion.
  2345. * @throws ApiException when there is at least one error with the request.
  2346. * @package GoogleApiAdsAdWords
  2347. * @subpackage v201109
  2348. */
  2349. class LocationCriterionServiceGet {
  2350. /**
  2351. * @access public
  2352. * @var Selector
  2353. */
  2354. public $selector;
  2355. /**
  2356. * Gets the namesapce of this class
  2357. * @return the namespace of this class
  2358. */
  2359. public function getNamespace() {
  2360. return "https://adwords.google.com/api/adwords/cm/v201109";
  2361. }
  2362. /**
  2363. * Gets the xsi:type name of this class
  2364. * @return the xsi:type name of this class
  2365. */
  2366. public function getXsiTypeName() {
  2367. return "";
  2368. }
  2369. public function __construct($selector = NULL) {
  2370. if(get_parent_class('LocationCriterionServiceGet')) parent::__construct();
  2371. $this->selector = $selector;
  2372. }
  2373. }}
  2374. if (!class_exists("LocationCriterionServiceGetResponse", FALSE)) {
  2375. /**
  2376. *
  2377. * @package GoogleApiAdsAdWords
  2378. * @subpackage v201109
  2379. */
  2380. class LocationCriterionServiceGetResponse {
  2381. /**
  2382. * @access public
  2383. * @var LocationCriterion[]
  2384. */
  2385. public $rval;
  2386. /**
  2387. * Gets the namesapce of this class
  2388. * @return the namespace of this class
  2389. */
  2390. public function getNamespace() {
  2391. return "https://adwords.google.com/api/adwords/cm/v201109";
  2392. }
  2393. /**
  2394. * Gets the xsi:type name of this class
  2395. * @return the xsi:type name of this