PageRenderTime 54ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 1ms

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

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

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