PageRenderTime 52ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

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

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

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