PageRenderTime 40ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://google-api-adwords-php.googlecode.com/
PHP | 2700 lines | 1098 code | 301 blank | 1301 comment | 141 complexity | 6160fd6ac1bd2919aee7a156b5d3bd41 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 UserListService 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("UserListConversionType", FALSE)) {
  283. /**
  284. * Represents a conversion type used for building remarketing user lists.
  285. * @package GoogleApiAdsAdWords
  286. * @subpackage v201109
  287. */
  288. class UserListConversionType {
  289. /**
  290. * @access public
  291. * @var integer
  292. */
  293. public $id;
  294. /**
  295. * @access public
  296. * @var string
  297. */
  298. public $name;
  299. /**
  300. * @access public
  301. * @var tnsUserListConversionTypeCategory
  302. */
  303. public $category;
  304. /**
  305. * Gets the namesapce of this class
  306. * @return the namespace of this class
  307. */
  308. public function getNamespace() {
  309. return "https://adwords.google.com/api/adwords/cm/v201109";
  310. }
  311. /**
  312. * Gets the xsi:type name of this class
  313. * @return the xsi:type name of this class
  314. */
  315. public function getXsiTypeName() {
  316. return "UserListConversionType";
  317. }
  318. public function __construct($id = NULL, $name = NULL, $category = NULL) {
  319. if(get_parent_class('UserListConversionType')) parent::__construct();
  320. $this->id = $id;
  321. $this->name = $name;
  322. $this->category = $category;
  323. }
  324. }}
  325. if (!class_exists("DatabaseError", FALSE)) {
  326. /**
  327. * Errors that are thrown due to a database access problem.
  328. * @package GoogleApiAdsAdWords
  329. * @subpackage v201109
  330. */
  331. class DatabaseError extends ApiError {
  332. /**
  333. * @access public
  334. * @var tnsDatabaseErrorReason
  335. */
  336. public $reason;
  337. /**
  338. * Gets the namesapce of this class
  339. * @return the namespace of this class
  340. */
  341. public function getNamespace() {
  342. return "https://adwords.google.com/api/adwords/cm/v201109";
  343. }
  344. /**
  345. * Gets the xsi:type name of this class
  346. * @return the xsi:type name of this class
  347. */
  348. public function getXsiTypeName() {
  349. return "DatabaseError";
  350. }
  351. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  352. if(get_parent_class('DatabaseError')) parent::__construct();
  353. $this->reason = $reason;
  354. $this->fieldPath = $fieldPath;
  355. $this->trigger = $trigger;
  356. $this->errorString = $errorString;
  357. $this->ApiErrorType = $ApiErrorType;
  358. }
  359. }}
  360. if (!class_exists("DateRange", FALSE)) {
  361. /**
  362. * Represents a range of dates that has either an upper or a lower bound.
  363. * The format for the date is YYYYMMDD.
  364. * @package GoogleApiAdsAdWords
  365. * @subpackage v201109
  366. */
  367. class DateRange {
  368. /**
  369. * @access public
  370. * @var string
  371. */
  372. public $min;
  373. /**
  374. * @access public
  375. * @var string
  376. */
  377. public $max;
  378. /**
  379. * Gets the namesapce of this class
  380. * @return the namespace of this class
  381. */
  382. public function getNamespace() {
  383. return "https://adwords.google.com/api/adwords/cm/v201109";
  384. }
  385. /**
  386. * Gets the xsi:type name of this class
  387. * @return the xsi:type name of this class
  388. */
  389. public function getXsiTypeName() {
  390. return "DateRange";
  391. }
  392. public function __construct($min = NULL, $max = NULL) {
  393. if(get_parent_class('DateRange')) parent::__construct();
  394. $this->min = $min;
  395. $this->max = $max;
  396. }
  397. }}
  398. if (!class_exists("DistinctError", FALSE)) {
  399. /**
  400. * Errors related to distinct ids or content.
  401. * @package GoogleApiAdsAdWords
  402. * @subpackage v201109
  403. */
  404. class DistinctError extends ApiError {
  405. /**
  406. * @access public
  407. * @var tnsDistinctErrorReason
  408. */
  409. public $reason;
  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 "DistinctError";
  423. }
  424. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  425. if(get_parent_class('DistinctError')) parent::__construct();
  426. $this->reason = $reason;
  427. $this->fieldPath = $fieldPath;
  428. $this->trigger = $trigger;
  429. $this->errorString = $errorString;
  430. $this->ApiErrorType = $ApiErrorType;
  431. }
  432. }}
  433. if (!class_exists("InternalApiError", FALSE)) {
  434. /**
  435. * Indicates that a server-side error has occured. {@code InternalApiError}s
  436. * are generally not the result of an invalid request or message sent by the
  437. * client.
  438. * @package GoogleApiAdsAdWords
  439. * @subpackage v201109
  440. */
  441. class InternalApiError extends ApiError {
  442. /**
  443. * @access public
  444. * @var tnsInternalApiErrorReason
  445. */
  446. public $reason;
  447. /**
  448. * Gets the namesapce of this class
  449. * @return the namespace of this class
  450. */
  451. public function getNamespace() {
  452. return "https://adwords.google.com/api/adwords/cm/v201109";
  453. }
  454. /**
  455. * Gets the xsi:type name of this class
  456. * @return the xsi:type name of this class
  457. */
  458. public function getXsiTypeName() {
  459. return "InternalApiError";
  460. }
  461. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  462. if(get_parent_class('InternalApiError')) parent::__construct();
  463. $this->reason = $reason;
  464. $this->fieldPath = $fieldPath;
  465. $this->trigger = $trigger;
  466. $this->errorString = $errorString;
  467. $this->ApiErrorType = $ApiErrorType;
  468. }
  469. }}
  470. if (!class_exists("ListReturnValue", FALSE)) {
  471. /**
  472. * Base list return value type.
  473. * @package GoogleApiAdsAdWords
  474. * @subpackage v201109
  475. */
  476. class ListReturnValue {
  477. /**
  478. * @access public
  479. * @var string
  480. */
  481. public $ListReturnValueType;
  482. private $_parameterMap = array (
  483. "ListReturnValue.Type" => "ListReturnValueType",
  484. );
  485. /**
  486. * Provided for setting non-php-standard named variables
  487. * @param $var Variable name to set
  488. * @param $value Value to set
  489. */
  490. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  491. /**
  492. * Provided for getting non-php-standard named variables
  493. * @param $var Variable name to get.
  494. * @return mixed Variable value
  495. */
  496. public function __get($var) {
  497. if (!array_key_exists($var, $this->_parameterMap)) {
  498. return NULL;
  499. } else {
  500. return $this->{$this->_parameterMap[$var]};
  501. }
  502. }
  503. /**
  504. * Provided for getting non-php-standard named variables
  505. * @return array parameter map
  506. */
  507. protected function getParameterMap() {
  508. return $this->_parameterMap;
  509. }
  510. /**
  511. * Gets the namesapce of this class
  512. * @return the namespace of this class
  513. */
  514. public function getNamespace() {
  515. return "https://adwords.google.com/api/adwords/cm/v201109";
  516. }
  517. /**
  518. * Gets the xsi:type name of this class
  519. * @return the xsi:type name of this class
  520. */
  521. public function getXsiTypeName() {
  522. return "ListReturnValue";
  523. }
  524. public function __construct($ListReturnValueType = NULL) {
  525. if(get_parent_class('ListReturnValue')) parent::__construct();
  526. $this->ListReturnValueType = $ListReturnValueType;
  527. }
  528. }}
  529. if (!class_exists("LogicalUserListOperand", FALSE)) {
  530. /**
  531. * An interface for a logical user list operand. A logical user list is a
  532. * combination of logical rules. Each rule is defined as a logical operator and
  533. * a list of operands. Those operands can be of type UserList or UserInterest.
  534. * @package GoogleApiAdsAdWords
  535. * @subpackage v201109
  536. */
  537. class LogicalUserListOperand {
  538. /**
  539. * @access public
  540. * @var UserInterest
  541. */
  542. public $UserInterest;
  543. /**
  544. * @access public
  545. * @var UserList
  546. */
  547. public $UserList;
  548. /**
  549. * Gets the namesapce of this class
  550. * @return the namespace of this class
  551. */
  552. public function getNamespace() {
  553. return "https://adwords.google.com/api/adwords/cm/v201109";
  554. }
  555. /**
  556. * Gets the xsi:type name of this class
  557. * @return the xsi:type name of this class
  558. */
  559. public function getXsiTypeName() {
  560. return "LogicalUserListOperand";
  561. }
  562. public function __construct($UserInterest = NULL, $UserList = NULL) {
  563. if(get_parent_class('LogicalUserListOperand')) parent::__construct();
  564. $this->UserInterest = $UserInterest;
  565. $this->UserList = $UserList;
  566. }
  567. }}
  568. if (!class_exists("NotEmptyError", FALSE)) {
  569. /**
  570. * Errors corresponding with violation of a NOT EMPTY check.
  571. * @package GoogleApiAdsAdWords
  572. * @subpackage v201109
  573. */
  574. class NotEmptyError extends ApiError {
  575. /**
  576. * @access public
  577. * @var tnsNotEmptyErrorReason
  578. */
  579. public $reason;
  580. /**
  581. * Gets the namesapce of this class
  582. * @return the namespace of this class
  583. */
  584. public function getNamespace() {
  585. return "https://adwords.google.com/api/adwords/cm/v201109";
  586. }
  587. /**
  588. * Gets the xsi:type name of this class
  589. * @return the xsi:type name of this class
  590. */
  591. public function getXsiTypeName() {
  592. return "NotEmptyError";
  593. }
  594. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  595. if(get_parent_class('NotEmptyError')) parent::__construct();
  596. $this->reason = $reason;
  597. $this->fieldPath = $fieldPath;
  598. $this->trigger = $trigger;
  599. $this->errorString = $errorString;
  600. $this->ApiErrorType = $ApiErrorType;
  601. }
  602. }}
  603. if (!class_exists("NotWhitelistedError", FALSE)) {
  604. /**
  605. * Indicates that the customer is not whitelisted for accessing the API.
  606. * @package GoogleApiAdsAdWords
  607. * @subpackage v201109
  608. */
  609. class NotWhitelistedError extends ApiError {
  610. /**
  611. * @access public
  612. * @var tnsNotWhitelistedErrorReason
  613. */
  614. public $reason;
  615. /**
  616. * Gets the namesapce of this class
  617. * @return the namespace of this class
  618. */
  619. public function getNamespace() {
  620. return "https://adwords.google.com/api/adwords/cm/v201109";
  621. }
  622. /**
  623. * Gets the xsi:type name of this class
  624. * @return the xsi:type name of this class
  625. */
  626. public function getXsiTypeName() {
  627. return "NotWhitelistedError";
  628. }
  629. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  630. if(get_parent_class('NotWhitelistedError')) parent::__construct();
  631. $this->reason = $reason;
  632. $this->fieldPath = $fieldPath;
  633. $this->trigger = $trigger;
  634. $this->errorString = $errorString;
  635. $this->ApiErrorType = $ApiErrorType;
  636. }
  637. }}
  638. if (!class_exists("Operation", FALSE)) {
  639. /**
  640. * This represents an operation that includes an operator and an operand
  641. * specified type.
  642. * @package GoogleApiAdsAdWords
  643. * @subpackage v201109
  644. */
  645. class Operation {
  646. /**
  647. * @access public
  648. * @var tnsOperator
  649. */
  650. public $operator;
  651. /**
  652. * @access public
  653. * @var string
  654. */
  655. public $OperationType;
  656. private $_parameterMap = array (
  657. "Operation.Type" => "OperationType",
  658. );
  659. /**
  660. * Provided for setting non-php-standard named variables
  661. * @param $var Variable name to set
  662. * @param $value Value to set
  663. */
  664. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  665. /**
  666. * Provided for getting non-php-standard named variables
  667. * @param $var Variable name to get.
  668. * @return mixed Variable value
  669. */
  670. public function __get($var) {
  671. if (!array_key_exists($var, $this->_parameterMap)) {
  672. return NULL;
  673. } else {
  674. return $this->{$this->_parameterMap[$var]};
  675. }
  676. }
  677. /**
  678. * Provided for getting non-php-standard named variables
  679. * @return array parameter map
  680. */
  681. protected function getParameterMap() {
  682. return $this->_parameterMap;
  683. }
  684. /**
  685. * Gets the namesapce of this class
  686. * @return the namespace of this class
  687. */
  688. public function getNamespace() {
  689. return "https://adwords.google.com/api/adwords/cm/v201109";
  690. }
  691. /**
  692. * Gets the xsi:type name of this class
  693. * @return the xsi:type name of this class
  694. */
  695. public function getXsiTypeName() {
  696. return "Operation";
  697. }
  698. public function __construct($operator = NULL, $OperationType = NULL) {
  699. if(get_parent_class('Operation')) parent::__construct();
  700. $this->operator = $operator;
  701. $this->OperationType = $OperationType;
  702. }
  703. }}
  704. if (!class_exists("OperationAccessDenied", FALSE)) {
  705. /**
  706. * Operation not permitted due to the invoked service's access policy.
  707. * @package GoogleApiAdsAdWords
  708. * @subpackage v201109
  709. */
  710. class OperationAccessDenied extends ApiError {
  711. /**
  712. * @access public
  713. * @var tnsOperationAccessDeniedReason
  714. */
  715. public $reason;
  716. /**
  717. * Gets the namesapce of this class
  718. * @return the namespace of this class
  719. */
  720. public function getNamespace() {
  721. return "https://adwords.google.com/api/adwords/cm/v201109";
  722. }
  723. /**
  724. * Gets the xsi:type name of this class
  725. * @return the xsi:type name of this class
  726. */
  727. public function getXsiTypeName() {
  728. return "OperationAccessDenied";
  729. }
  730. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  731. if(get_parent_class('OperationAccessDenied')) parent::__construct();
  732. $this->reason = $reason;
  733. $this->fieldPath = $fieldPath;
  734. $this->trigger = $trigger;
  735. $this->errorString = $errorString;
  736. $this->ApiErrorType = $ApiErrorType;
  737. }
  738. }}
  739. if (!class_exists("OrderBy", FALSE)) {
  740. /**
  741. * Specifies how the resulting information should be sorted.
  742. * @package GoogleApiAdsAdWords
  743. * @subpackage v201109
  744. */
  745. class OrderBy {
  746. /**
  747. * @access public
  748. * @var string
  749. */
  750. public $field;
  751. /**
  752. * @access public
  753. * @var tnsSortOrder
  754. */
  755. public $sortOrder;
  756. /**
  757. * Gets the namesapce of this class
  758. * @return the namespace of this class
  759. */
  760. public function getNamespace() {
  761. return "https://adwords.google.com/api/adwords/cm/v201109";
  762. }
  763. /**
  764. * Gets the xsi:type name of this class
  765. * @return the xsi:type name of this class
  766. */
  767. public function getXsiTypeName() {
  768. return "OrderBy";
  769. }
  770. public function __construct($field = NULL, $sortOrder = NULL) {
  771. if(get_parent_class('OrderBy')) parent::__construct();
  772. $this->field = $field;
  773. $this->sortOrder = $sortOrder;
  774. }
  775. }}
  776. if (!class_exists("Page", FALSE)) {
  777. /**
  778. * Contains the results from a get call.
  779. * @package GoogleApiAdsAdWords
  780. * @subpackage v201109
  781. */
  782. class Page {
  783. /**
  784. * @access public
  785. * @var integer
  786. */
  787. public $totalNumEntries;
  788. /**
  789. * @access public
  790. * @var string
  791. */
  792. public $PageType;
  793. private $_parameterMap = array (
  794. "Page.Type" => "PageType",
  795. );
  796. /**
  797. * Provided for setting non-php-standard named variables
  798. * @param $var Variable name to set
  799. * @param $value Value to set
  800. */
  801. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  802. /**
  803. * Provided for getting non-php-standard named variables
  804. * @param $var Variable name to get.
  805. * @return mixed Variable value
  806. */
  807. public function __get($var) {
  808. if (!array_key_exists($var, $this->_parameterMap)) {
  809. return NULL;
  810. } else {
  811. return $this->{$this->_parameterMap[$var]};
  812. }
  813. }
  814. /**
  815. * Provided for getting non-php-standard named variables
  816. * @return array parameter map
  817. */
  818. protected function getParameterMap() {
  819. return $this->_parameterMap;
  820. }
  821. /**
  822. * Gets the namesapce of this class
  823. * @return the namespace of this class
  824. */
  825. public function getNamespace() {
  826. return "https://adwords.google.com/api/adwords/cm/v201109";
  827. }
  828. /**
  829. * Gets the xsi:type name of this class
  830. * @return the xsi:type name of this class
  831. */
  832. public function getXsiTypeName() {
  833. return "Page";
  834. }
  835. public function __construct($totalNumEntries = NULL, $PageType = NULL) {
  836. if(get_parent_class('Page')) parent::__construct();
  837. $this->totalNumEntries = $totalNumEntries;
  838. $this->PageType = $PageType;
  839. }
  840. }}
  841. if (!class_exists("Paging", FALSE)) {
  842. /**
  843. * Specifies the page of results to return in the response. A page is specified
  844. * by the result position to start at and the maximum number of results to
  845. * return.
  846. * @package GoogleApiAdsAdWords
  847. * @subpackage v201109
  848. */
  849. class Paging {
  850. /**
  851. * @access public
  852. * @var integer
  853. */
  854. public $startIndex;
  855. /**
  856. * @access public
  857. * @var integer
  858. */
  859. public $numberResults;
  860. /**
  861. * Gets the namesapce of this class
  862. * @return the namespace of this class
  863. */
  864. public function getNamespace() {
  865. return "https://adwords.google.com/api/adwords/cm/v201109";
  866. }
  867. /**
  868. * Gets the xsi:type name of this class
  869. * @return the xsi:type name of this class
  870. */
  871. public function getXsiTypeName() {
  872. return "Paging";
  873. }
  874. public function __construct($startIndex = NULL, $numberResults = NULL) {
  875. if(get_parent_class('Paging')) parent::__construct();
  876. $this->startIndex = $startIndex;
  877. $this->numberResults = $numberResults;
  878. }
  879. }}
  880. if (!class_exists("Predicate", FALSE)) {
  881. /**
  882. * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.
  883. * @package GoogleApiAdsAdWords
  884. * @subpackage v201109
  885. */
  886. class Predicate {
  887. /**
  888. * @access public
  889. * @var string
  890. */
  891. public $field;
  892. /**
  893. * @access public
  894. * @var tnsPredicateOperator
  895. */
  896. public $operator;
  897. /**
  898. * @access public
  899. * @var string[]
  900. */
  901. public $values;
  902. /**
  903. * Gets the namesapce of this class
  904. * @return the namespace of this class
  905. */
  906. public function getNamespace() {
  907. return "https://adwords.google.com/api/adwords/cm/v201109";
  908. }
  909. /**
  910. * Gets the xsi:type name of this class
  911. * @return the xsi:type name of this class
  912. */
  913. public function getXsiTypeName() {
  914. return "Predicate";
  915. }
  916. public function __construct($field = NULL, $operator = NULL, $values = NULL) {
  917. if(get_parent_class('Predicate')) parent::__construct();
  918. $this->field = $field;
  919. $this->operator = $operator;
  920. $this->values = $values;
  921. }
  922. }}
  923. if (!class_exists("QuotaCheckError", FALSE)) {
  924. /**
  925. * Encapsulates the errors thrown during developer quota checks.
  926. * @package GoogleApiAdsAdWords
  927. * @subpackage v201109
  928. */
  929. class QuotaCheckError extends ApiError {
  930. /**
  931. * @access public
  932. * @var tnsQuotaCheckErrorReason
  933. */
  934. public $reason;
  935. /**
  936. * Gets the namesapce of this class
  937. * @return the namespace of this class
  938. */
  939. public function getNamespace() {
  940. return "https://adwords.google.com/api/adwords/cm/v201109";
  941. }
  942. /**
  943. * Gets the xsi:type name of this class
  944. * @return the xsi:type name of this class
  945. */
  946. public function getXsiTypeName() {
  947. return "QuotaCheckError";
  948. }
  949. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  950. if(get_parent_class('QuotaCheckError')) parent::__construct();
  951. $this->reason = $reason;
  952. $this->fieldPath = $fieldPath;
  953. $this->trigger = $trigger;
  954. $this->errorString = $errorString;
  955. $this->ApiErrorType = $ApiErrorType;
  956. }
  957. }}
  958. if (!class_exists("RangeError", FALSE)) {
  959. /**
  960. * A list of all errors associated with the Range constraint.
  961. * @package GoogleApiAdsAdWords
  962. * @subpackage v201109
  963. */
  964. class RangeError extends ApiError {
  965. /**
  966. * @access public
  967. * @var tnsRangeErrorReason
  968. */
  969. public $reason;
  970. /**
  971. * Gets the namesapce of this class
  972. * @return the namespace of this class
  973. */
  974. public function getNamespace() {
  975. return "https://adwords.google.com/api/adwords/cm/v201109";
  976. }
  977. /**
  978. * Gets the xsi:type name of this class
  979. * @return the xsi:type name of this class
  980. */
  981. public function getXsiTypeName() {
  982. return "RangeError";
  983. }
  984. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  985. if(get_parent_class('RangeError')) parent::__construct();
  986. $this->reason = $reason;
  987. $this->fieldPath = $fieldPath;
  988. $this->trigger = $trigger;
  989. $this->errorString = $errorString;
  990. $this->ApiErrorType = $ApiErrorType;
  991. }
  992. }}
  993. if (!class_exists("RateExceededError", FALSE)) {
  994. /**
  995. * Signals that a call failed because a measured rate exceeded.
  996. * @package GoogleApiAdsAdWords
  997. * @subpackage v201109
  998. */
  999. class RateExceededError extends ApiError {
  1000. /**
  1001. * @access public
  1002. * @var tnsRateExceededErrorReason
  1003. */
  1004. public $reason;
  1005. /**
  1006. * @access public
  1007. * @var string
  1008. */
  1009. public $rateName;
  1010. /**
  1011. * @access public
  1012. * @var string
  1013. */
  1014. public $rateScope;
  1015. /**
  1016. * @access public
  1017. * @var integer
  1018. */
  1019. public $retryAfterSeconds;
  1020. /**
  1021. * Gets the namesapce of this class
  1022. * @return the namespace of this class
  1023. */
  1024. public function getNamespace() {
  1025. return "https://adwords.google.com/api/adwords/cm/v201109";
  1026. }
  1027. /**
  1028. * Gets the xsi:type name of this class
  1029. * @return the xsi:type name of this class
  1030. */
  1031. public function getXsiTypeName() {
  1032. return "RateExceededError";
  1033. }
  1034. public function __construct($reason = NULL, $rateName = NULL, $rateScope = NULL, $retryAfterSeconds = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1035. if(get_parent_class('RateExceededError')) parent::__construct();
  1036. $this->reason = $reason;
  1037. $this->rateName = $rateName;
  1038. $this->rateScope = $rateScope;
  1039. $this->retryAfterSeconds = $retryAfterSeconds;
  1040. $this->fieldPath = $fieldPath;
  1041. $this->trigger = $trigger;
  1042. $this->errorString = $errorString;
  1043. $this->ApiErrorType = $ApiErrorType;
  1044. }
  1045. }}
  1046. if (!class_exists("ReadOnlyError", FALSE)) {
  1047. /**
  1048. * Errors from attempting to write to read-only fields.
  1049. * @package GoogleApiAdsAdWords
  1050. * @subpackage v201109
  1051. */
  1052. class ReadOnlyError extends ApiError {
  1053. /**
  1054. * @access public
  1055. * @var tnsReadOnlyErrorReason
  1056. */
  1057. public $reason;
  1058. /**
  1059. * Gets the namesapce of this class
  1060. * @return the namespace of this class
  1061. */
  1062. public function getNamespace() {
  1063. return "https://adwords.google.com/api/adwords/cm/v201109";
  1064. }
  1065. /**
  1066. * Gets the xsi:type name of this class
  1067. * @return the xsi:type name of this class
  1068. */
  1069. public function getXsiTypeName() {
  1070. return "ReadOnlyError";
  1071. }
  1072. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1073. if(get_parent_class('ReadOnlyError')) parent::__construct();
  1074. $this->reason = $reason;
  1075. $this->fieldPath = $fieldPath;
  1076. $this->trigger = $trigger;
  1077. $this->errorString = $errorString;
  1078. $this->ApiErrorType = $ApiErrorType;
  1079. }
  1080. }}
  1081. if (!class_exists("RequestError", FALSE)) {
  1082. /**
  1083. * Encapsulates the generic errors thrown when there's an error with user
  1084. * request.
  1085. * @package GoogleApiAdsAdWords
  1086. * @subpackage v201109
  1087. */
  1088. class RequestError extends ApiError {
  1089. /**
  1090. * @access public
  1091. * @var tnsRequestErrorReason
  1092. */
  1093. public $reason;
  1094. /**
  1095. * Gets the namesapce of this class
  1096. * @return the namespace of this class
  1097. */
  1098. public function getNamespace() {
  1099. return "https://adwords.google.com/api/adwords/cm/v201109";
  1100. }
  1101. /**
  1102. * Gets the xsi:type name of this class
  1103. * @return the xsi:type name of this class
  1104. */
  1105. public function getXsiTypeName() {
  1106. return "RequestError";
  1107. }
  1108. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1109. if(get_parent_class('RequestError')) parent::__construct();
  1110. $this->reason = $reason;
  1111. $this->fieldPath = $fieldPath;
  1112. $this->trigger = $trigger;
  1113. $this->errorString = $errorString;
  1114. $this->ApiErrorType = $ApiErrorType;
  1115. }
  1116. }}
  1117. if (!class_exists("RequiredError", FALSE)) {
  1118. /**
  1119. * Errors due to missing required field.
  1120. * @package GoogleApiAdsAdWords
  1121. * @subpackage v201109
  1122. */
  1123. class RequiredError extends ApiError {
  1124. /**
  1125. * @access public
  1126. * @var tnsRequiredErrorReason
  1127. */
  1128. public $reason;
  1129. /**
  1130. * Gets the namesapce of this class
  1131. * @return the namespace of this class
  1132. */
  1133. public function getNamespace() {
  1134. return "https://adwords.google.com/api/adwords/cm/v201109";
  1135. }
  1136. /**
  1137. * Gets the xsi:type name of this class
  1138. * @return the xsi:type name of this class
  1139. */
  1140. public function getXsiTypeName() {
  1141. return "RequiredError";
  1142. }
  1143. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1144. if(get_parent_class('RequiredError')) parent::__construct();
  1145. $this->reason = $reason;
  1146. $this->fieldPath = $fieldPath;
  1147. $this->trigger = $trigger;
  1148. $this->errorString = $errorString;
  1149. $this->ApiErrorType = $ApiErrorType;
  1150. }
  1151. }}
  1152. if (!class_exists("Selector", FALSE)) {
  1153. /**
  1154. * A generic selector to specify the type of information to return.
  1155. * @package GoogleApiAdsAdWords
  1156. * @subpackage v201109
  1157. */
  1158. class Selector {
  1159. /**
  1160. * @access public
  1161. * @var string[]
  1162. */
  1163. public $fields;
  1164. /**
  1165. * @access public
  1166. * @var Predicate[]
  1167. */
  1168. public $predicates;
  1169. /**
  1170. * @access public
  1171. * @var DateRange
  1172. */
  1173. public $dateRange;
  1174. /**
  1175. * @access public
  1176. * @var OrderBy[]
  1177. */
  1178. public $ordering;
  1179. /**
  1180. * @access public
  1181. * @var Paging
  1182. */
  1183. public $paging;
  1184. /**
  1185. * Gets the namesapce of this class
  1186. * @return the namespace of this class
  1187. */
  1188. public function getNamespace() {
  1189. return "https://adwords.google.com/api/adwords/cm/v201109";
  1190. }
  1191. /**
  1192. * Gets the xsi:type name of this class
  1193. * @return the xsi:type name of this class
  1194. */
  1195. public function getXsiTypeName() {
  1196. return "Selector";
  1197. }
  1198. public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) {
  1199. if(get_parent_class('Selector')) parent::__construct();
  1200. $this->fields = $fields;
  1201. $this->predicates = $predicates;
  1202. $this->dateRange = $dateRange;
  1203. $this->ordering = $ordering;
  1204. $this->paging = $paging;
  1205. }
  1206. }}
  1207. if (!class_exists("SelectorError", FALSE)) {
  1208. /**
  1209. * Represents possible error codes for {@link Selector}.
  1210. * @package GoogleApiAdsAdWords
  1211. * @subpackage v201109
  1212. */
  1213. class SelectorError extends ApiError {
  1214. /**
  1215. * @access public
  1216. * @var tnsSelectorErrorReason
  1217. */
  1218. public $reason;
  1219. /**
  1220. * Gets the namesapce of this class
  1221. * @return the namespace of this class
  1222. */
  1223. public function getNamespace() {
  1224. return "https://adwords.google.com/api/adwords/cm/v201109";
  1225. }
  1226. /**
  1227. * Gets the xsi:type name of this class
  1228. * @return the xsi:type name of this class
  1229. */
  1230. public function getXsiTypeName() {
  1231. return "SelectorError";
  1232. }
  1233. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1234. if(get_parent_class('SelectorError')) parent::__construct();
  1235. $this->reason = $reason;
  1236. $this->fieldPath = $fieldPath;
  1237. $this->trigger = $trigger;
  1238. $this->errorString = $errorString;
  1239. $this->ApiErrorType = $ApiErrorType;
  1240. }
  1241. }}
  1242. if (!class_exists("SizeLimitError", FALSE)) {
  1243. /**
  1244. * Indicates that the number of entries in the request or response exceeds the system limit.
  1245. * @package GoogleApiAdsAdWords
  1246. * @subpackage v201109
  1247. */
  1248. class SizeLimitError extends ApiError {
  1249. /**
  1250. * @access public
  1251. * @var tnsSizeLimitErrorReason
  1252. */
  1253. public $reason;
  1254. /**
  1255. * Gets the namesapce of this class
  1256. * @return the namespace of this class
  1257. */
  1258. public function getNamespace() {
  1259. return "https://adwords.google.com/api/adwords/cm/v201109";
  1260. }
  1261. /**
  1262. * Gets the xsi:type name of this class
  1263. * @return the xsi:type name of this class
  1264. */
  1265. public function getXsiTypeName() {
  1266. return "SizeLimitError";
  1267. }
  1268. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1269. if(get_parent_class('SizeLimitError')) parent::__construct();
  1270. $this->reason = $reason;
  1271. $this->fieldPath = $fieldPath;
  1272. $this->trigger = $trigger;
  1273. $this->errorString = $errorString;
  1274. $this->ApiErrorType = $ApiErrorType;
  1275. }
  1276. }}
  1277. if (!class_exists("SoapRequestHeader", FALSE)) {
  1278. /**
  1279. * Defines the required and optional elements within the header of a SOAP request.
  1280. * @package GoogleApiAdsAdWords
  1281. * @subpackage v201109
  1282. */
  1283. class SoapRequestHeader {
  1284. /**
  1285. * @access public
  1286. * @var string
  1287. */
  1288. public $authToken;
  1289. /**
  1290. * @access public
  1291. * @var string
  1292. */
  1293. public $clientCustomerId;
  1294. /**
  1295. * @access public
  1296. * @var string
  1297. */
  1298. public $developerToken;
  1299. /**
  1300. * @access public
  1301. * @var string
  1302. */
  1303. public $userAgent;
  1304. /**
  1305. * @access public
  1306. * @var boolean
  1307. */
  1308. public $validateOnly;
  1309. /**
  1310. * @access public
  1311. * @var boolean
  1312. */
  1313. public $partialFailure;
  1314. /**
  1315. * Gets the namesapce of this class
  1316. * @return the namespace of this class
  1317. */
  1318. public function getNamespace() {
  1319. return "https://adwords.google.com/api/adwords/cm/v201109";
  1320. }
  1321. /**
  1322. * Gets the xsi:type name of this class
  1323. * @return the xsi:type name of this class
  1324. */
  1325. public function getXsiTypeName() {
  1326. return "SoapHeader";
  1327. }
  1328. public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) {
  1329. if(get_parent_class('SoapRequestHeader')) parent::__construct();
  1330. $this->authToken = $authToken;
  1331. $this->clientCustomerId = $clientCustomerId;
  1332. $this->developerToken = $developerToken;
  1333. $this->userAgent = $userAgent;
  1334. $this->validateOnly = $validateOnly;
  1335. $this->partialFailure = $partialFailure;
  1336. }
  1337. }}
  1338. if (!class_exists("SoapResponseHeader", FALSE)) {
  1339. /**
  1340. * Defines the elements within the header of a SOAP response.
  1341. * @package GoogleApiAdsAdWords
  1342. * @subpackage v201109
  1343. */
  1344. class SoapResponseHeader {
  1345. /**
  1346. * @access public
  1347. * @var string
  1348. */
  1349. public $requestId;
  1350. /**
  1351. * @access public
  1352. * @var string
  1353. */
  1354. public $serviceName;
  1355. /**
  1356. * @access public
  1357. * @var string
  1358. */
  1359. public $methodName;
  1360. /**
  1361. * @access public
  1362. * @var integer
  1363. */
  1364. public $operations;
  1365. /**
  1366. * @access public
  1367. * @var integer
  1368. */
  1369. public $responseTime;
  1370. /**
  1371. * @access public
  1372. * @var integer
  1373. */
  1374. public $units;
  1375. /**
  1376. * Gets the namesapce of this class
  1377. * @return the namespace of this class
  1378. */
  1379. public function getNamespace() {
  1380. return "https://adwords.google.com/api/adwords/cm/v201109";
  1381. }
  1382. /**
  1383. * Gets the xsi:type name of this class
  1384. * @return the xsi:type name of this class
  1385. */
  1386. public function getXsiTypeName() {
  1387. return "SoapResponseHeader";
  1388. }
  1389. public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL, $units = NULL) {
  1390. if(get_parent_class('SoapResponseHeader')) parent::__construct();
  1391. $this->requestId = $requestId;
  1392. $this->serviceName = $serviceName;
  1393. $this->methodName = $methodName;
  1394. $this->operations = $operations;
  1395. $this->responseTime = $responseTime;
  1396. $this->units = $units;
  1397. }
  1398. }}
  1399. if (!class_exists("UserInterest", FALSE)) {
  1400. /**
  1401. * Represents a particular interest based vertical to be targeted.
  1402. * User interest may be used for defining logical user lists.
  1403. * @package GoogleApiAdsAdWords
  1404. * @subpackage v201109
  1405. */
  1406. class UserInterest {
  1407. /**
  1408. * @access public
  1409. * @var integer
  1410. */
  1411. public $id;
  1412. /**
  1413. * @access public
  1414. * @var string
  1415. */
  1416. public $name;
  1417. /**
  1418. * @access public
  1419. * @var tnsSizeRange
  1420. */
  1421. public $sizeRange;
  1422. /**
  1423. * Gets the namesapce of this class
  1424. * @return the namespace of this class
  1425. */
  1426. public function getNamespace() {
  1427. return "https://adwords.google.com/api/adwords/cm/v201109";
  1428. }
  1429. /**
  1430. * Gets the xsi:type name of this class
  1431. * @return the xsi:type name of this class
  1432. */
  1433. public function getXsiTypeName() {
  1434. return "UserInterest";
  1435. }
  1436. public function __construct($id = NULL, $name = NULL, $sizeRange = NULL) {
  1437. if(get_parent_class('UserInterest')) parent::__construct();
  1438. $this->id = $id;
  1439. $this->name = $name;
  1440. $this->sizeRange = $sizeRange;
  1441. }
  1442. }}
  1443. if (!class_exists("UserList", FALSE)) {
  1444. /**
  1445. * Represents a UserList object that is sent over the wire.
  1446. * This is a list of users an account may target.
  1447. * @package GoogleApiAdsAdWords
  1448. * @subpackage v201109
  1449. */
  1450. class UserList {
  1451. /**
  1452. * @access public
  1453. * @var integer
  1454. */
  1455. public $id;
  1456. /**
  1457. * @access public
  1458. * @var boolean
  1459. */
  1460. public $isReadOnly;
  1461. /**
  1462. * @access public
  1463. * @var string
  1464. */
  1465. public $name;
  1466. /**
  1467. * @access public
  1468. * @var string
  1469. */
  1470. public $description;
  1471. /**
  1472. * @access public
  1473. * @var tnsUserListMembershipStatus
  1474. */
  1475. public $status;
  1476. /**
  1477. * @access public
  1478. * @var tnsAccessReason
  1479. */
  1480. public $accessReason;
  1481. /**
  1482. * @access public
  1483. * @var tnsAccountUserListStatus
  1484. */
  1485. public $accountUserListStatus;
  1486. /**
  1487. * @access public
  1488. * @var integer
  1489. */
  1490. public $membershipLifeSpan;
  1491. /**
  1492. * @access public
  1493. * @var integer
  1494. */
  1495. public $size;
  1496. /**
  1497. * @access public
  1498. * @var tnsSizeRange
  1499. */
  1500. public $sizeRange;
  1501. /**
  1502. * @access public
  1503. * @var tnsUserListType
  1504. */
  1505. public $type;
  1506. /**
  1507. * @access public
  1508. * @var string
  1509. */
  1510. public $UserListType;
  1511. private $_parameterMap = array (
  1512. "UserList.Type" => "UserListType",
  1513. );
  1514. /**
  1515. * Provided for setting non-php-standard named variables
  1516. * @param $var Variable name to set
  1517. * @param $value Value to set
  1518. */
  1519. public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
  1520. /**
  1521. * Provided for getting non-php-standard named variables
  1522. * @param $var Variable name to get.
  1523. * @return mixed Variable value
  1524. */
  1525. public function __get($var) {
  1526. if (!array_key_exists($var, $this->_parameterMap)) {
  1527. return NULL;
  1528. } else {
  1529. return $this->{$this->_parameterMap[$var]};
  1530. }
  1531. }
  1532. /**
  1533. * Provided for getting non-php-standard named variables
  1534. * @return array parameter map
  1535. */
  1536. protected function getParameterMap() {
  1537. return $this->_parameterMap;
  1538. }
  1539. /**
  1540. * Gets the namesapce of this class
  1541. * @return the namespace of this class
  1542. */
  1543. public function getNamespace() {
  1544. return "https://adwords.google.com/api/adwords/cm/v201109";
  1545. }
  1546. /**
  1547. * Gets the xsi:type name of this class
  1548. * @return the xsi:type name of this class
  1549. */
  1550. public function getXsiTypeName() {
  1551. return "UserList";
  1552. }
  1553. public function __construct($id = NULL, $isReadOnly = NULL, $name = NULL, $description = NULL, $status = NULL, $accessReason = NULL, $accountUserListStatus = NULL, $membershipLifeSpan = NULL, $size = NULL, $sizeRange = NULL, $type = NULL, $UserListType = NULL) {
  1554. if(get_parent_class('UserList')) parent::__construct();
  1555. $this->id = $id;
  1556. $this->isReadOnly = $isReadOnly;
  1557. $this->name = $name;
  1558. $this->description = $description;
  1559. $this->status = $status;
  1560. $this->accessReason = $accessReason;
  1561. $this->accountUserListStatus = $accountUserListStatus;
  1562. $this->membershipLifeSpan = $membershipLifeSpan;
  1563. $this->size = $size;
  1564. $this->sizeRange = $sizeRange;
  1565. $this->type = $type;
  1566. $this->UserListType = $UserListType;
  1567. }
  1568. }}
  1569. if (!class_exists("UserListError", FALSE)) {
  1570. /**
  1571. * Represents possible error codes in UserListService.
  1572. * @package GoogleApiAdsAdWords
  1573. * @subpackage v201109
  1574. */
  1575. class UserListError extends ApiError {
  1576. /**
  1577. * @access public
  1578. * @var tnsUserListErrorReason
  1579. */
  1580. public $reason;
  1581. /**
  1582. * Gets the namesapce of this class
  1583. * @return the namespace of this class
  1584. */
  1585. public function getNamespace() {
  1586. return "https://adwords.google.com/api/adwords/cm/v201109";
  1587. }
  1588. /**
  1589. * Gets the xsi:type name of this class
  1590. * @return the xsi:type name of this class
  1591. */
  1592. public function getXsiTypeName() {
  1593. return "UserListError";
  1594. }
  1595. public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
  1596. if(get_parent_class('UserListError')) parent::__construct();
  1597. $this->reason = $reason;
  1598. $this->fieldPath = $fieldPath;
  1599. $this->trigger = $trigger;
  1600. $this->errorString = $errorString;
  1601. $this->ApiErrorType = $ApiErrorType;
  1602. }
  1603. }}
  1604. if (!class_exists("UserListLogicalRule", FALSE)) {
  1605. /**
  1606. * A user list logical rule. A rule has a logical operator (and/or/not) and a
  1607. * list of operands that can be user lists or user interests.
  1608. * @package GoogleApiAdsAdWords
  1609. * @subpackage v201109
  1610. */
  1611. class UserListLogicalRule {
  1612. /**
  1613. * @access public
  1614. * @var tnsUserListLogicalRuleOperator
  1615. */
  1616. public $operator;
  1617. /**
  1618. * @access public
  1619. * @var LogicalUserListOperand[]
  1620. */
  1621. public $ruleOperands;
  1622. /**
  1623. * Gets the namesapce of this class
  1624. * @return the namespace of this class
  1625. */
  1626. public function getNamespace() {
  1627. return "https://adwords.google.com/api/adwords/cm/v201109";
  1628. }
  1629. /**
  1630. * Gets the xsi:type name of this class
  1631. * @return the xsi:type name of this class
  1632. */
  1633. public function getXsiTypeName() {
  1634. return "UserListLogicalRule";
  1635. }
  1636. public function __construct($operator = NULL, $ruleOperands = NULL) {
  1637. if(get_parent_class('UserListLogicalRule')) parent::__construct();
  1638. $this->operator = $operator;
  1639. $this->ruleOperands = $ruleOperands;
  1640. }
  1641. }}
  1642. if (!class_exists("UserListOperation", FALSE)) {
  1643. /**
  1644. * UserList operations for adding/updating UserList entities.
  1645. * @package GoogleApiAdsAdWords
  1646. * @subpackage v201109
  1647. */
  1648. class UserListOperation extends Operation {
  1649. /**
  1650. * @access public
  1651. * @var UserList
  1652. */
  1653. public $operand;
  1654. /**
  1655. * Gets the namesapce of this class
  1656. * @return the namespace of this class
  1657. */
  1658. public function getNamespace() {
  1659. return "https://adwords.google.com/api/adwords/cm/v201109";
  1660. }
  1661. /**
  1662. * Gets the xsi:type name of this class
  1663. * @return the xsi:type name of this class
  1664. */
  1665. public function getXsiTypeName() {
  1666. return "UserListOperation";
  1667. }
  1668. public function __construct($operand = NULL, $operator = NULL, $OperationType = NULL) {
  1669. if(get_parent_class('UserListOperation')) parent::__construct();
  1670. $this->operand = $operand;
  1671. $this->operator = $operator;
  1672. $this->OperationType = $OperationType;
  1673. }
  1674. }}
  1675. if (!class_exists("UserListPage", FALSE)) {
  1676. /**
  1677. * Contains a list of user lists resulting from the filtering and paging of the
  1678. * {@link UserListService#get} call.
  1679. * @package GoogleApiAdsAdWords
  1680. * @subpackage v201109
  1681. */
  1682. class UserListPage extends Page {
  1683. /**
  1684. * @access public
  1685. * @var UserList[]
  1686. */
  1687. public $entries;
  1688. /**
  1689. * Gets the namesapce of this class
  1690. * @return the namespace of this class
  1691. */
  1692. public function getNamespace() {
  1693. return "https://adwords.google.com/api/adwords/cm/v201109";
  1694. }
  1695. /**
  1696. * Gets the xsi:type name of this class
  1697. * @return the xsi:type name of this class
  1698. */
  1699. public function getXsiTypeName() {
  1700. return "UserListPage";
  1701. }
  1702. public function __construct($entries = NULL, $totalNumEntries = NULL, $PageType = NULL) {
  1703. if(get_parent_class('UserListPage')) parent::__construct();
  1704. $this->entries = $entries;
  1705. $this->totalNumEntries = $totalNumEntries;
  1706. $this->PageType = $PageType;
  1707. }
  1708. }}
  1709. if (!class_exists("UserListReturnValue", FALSE)) {
  1710. /**
  1711. * A container for return values from the UserListService.
  1712. * @package GoogleApiAdsAdWords
  1713. * @subpackage v201109
  1714. */
  1715. class UserListReturnValue extends ListReturnValue {
  1716. /**
  1717. * @access public
  1718. * @var UserList[]
  1719. */
  1720. public $value;
  1721. /**
  1722. * Gets the namesapce of this class
  1723. * @return the namespace of this class
  1724. */
  1725. public function getNamespace() {
  1726. return "https://adwords.google.com/api/adwords/cm/v201109";
  1727. }
  1728. /**
  1729. * Gets the xsi:type name of this class
  1730. * @return the xsi:type name of this class
  1731. */
  1732. public function getXsiTypeName() {
  1733. return "UserListReturnValue";
  1734. }
  1735. public function __construct($value = NULL, $ListReturnValueType = NULL) {
  1736. if(get_parent_class('UserListReturnValue')) parent::__construct();
  1737. $this->value = $value;
  1738. $this->ListReturnValueType = $ListReturnValueType;
  1739. }
  1740. }}
  1741. if (!class_exists("AccessReason", FALSE)) {
  1742. /**
  1743. * AccessReason in the AccountUserListStatus table. This indicates the way the userlist is
  1744. * related to a user.
  1745. * @package GoogleApiAdsAdWords
  1746. * @subpackage v201109
  1747. */
  1748. class AccessReason {
  1749. /**
  1750. * Gets the namesapce of this class
  1751. * @return the namespace of this class
  1752. */
  1753. public function getNamespace() {
  1754. return "https://adwords.google.com/api/adwords/cm/v201109";
  1755. }
  1756. /**
  1757. * Gets the xsi:type name of this class
  1758. * @return the xsi:type name of this class
  1759. */
  1760. public function getXsiTypeName() {
  1761. return "AccessReason";
  1762. }
  1763. public function __construct() {
  1764. if(get_parent_class('AccessReason')) parent::__construct();
  1765. }
  1766. }}
  1767. if (!class_exists("AccountUserListStatus", FALSE)) {
  1768. /**
  1769. * Status in the AccountUserListStatus table. This indicates if the user list share or
  1770. * the licensing of the userlist is still active.
  1771. * @package GoogleApiAdsAdWords
  1772. * @subpackage v201109
  1773. */
  1774. class AccountUserListStatus {
  1775. /**
  1776. * Gets the namesapce of this class
  1777. * @return the namespace of this class
  1778. */
  1779. public function getNamespace() {
  1780. return "https://adwords.google.com/api/adwords/cm/v201109";
  1781. }
  1782. /**
  1783. * Gets the xsi:type name of this class
  1784. * @return the xsi:type name of this class
  1785. */
  1786. public function getXsiTypeName() {
  1787. return "AccountUserListStatus";
  1788. }
  1789. public function __construct() {
  1790. if(get_parent_class('AccountUserListStatus')) parent::__construct();
  1791. }
  1792. }}
  1793. if (!class_exists("AuthenticationErrorReason", FALSE)) {
  1794. /**
  1795. * The single reason for the authentication failure.
  1796. * @package GoogleApiAdsAdWords
  1797. * @subpackage v201109
  1798. */
  1799. class AuthenticationErrorReason {
  1800. /**
  1801. * Gets the namesapce of this class
  1802. * @return the namespace of this class
  1803. */
  1804. public function getNamespace() {
  1805. return "https://adwords.google.com/api/adwords/cm/v201109";
  1806. }
  1807. /**
  1808. * Gets the xsi:type name of this class
  1809. * @return the xsi:type name of this class
  1810. */
  1811. public function getXsiTypeName() {
  1812. return "AuthenticationError.Reason";
  1813. }
  1814. public function __construct() {
  1815. if(get_parent_class('AuthenticationErrorReason')) parent::__construct();
  1816. }
  1817. }}
  1818. if (!class_exists("AuthorizationErrorReason", FALSE)) {
  1819. /**
  1820. * The reasons for the database error.
  1821. * @package GoogleApiAdsAdWords
  1822. * @subpackage v2…

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