PageRenderTime 56ms CodeModel.GetById 19ms RepoModel.GetById 1ms 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

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 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…

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