/src/Google/Api/Ads/AdWords/v201109/MediaService.php
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
- <?php
- /**
- * Contains all client objects for the MediaService service.
- *
- * PHP version 5
- *
- * Copyright 2011, Google Inc. All Rights Reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- * @category WebServices
- * @copyright 2011, Google Inc. All Rights Reserved.
- * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License,
- * Version 2.0
- * @author Eric Koleda <eric.koleda@google.com>
- */
- /** Required classes. **/
- require_once dirname(__FILE__) . "/../Lib/AdWordsSoapClient.php";
- if (!class_exists("DateRange", FALSE)) {
- /**
- * Represents a range of dates that has either an upper or a lower bound.
- * The format for the date is YYYYMMDD.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class DateRange {
- /**
- * @access public
- * @var string
- */
- public $min;
- /**
- * @access public
- * @var string
- */
- public $max;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "DateRange";
- }
- public function __construct($min = NULL, $max = NULL) {
- if(get_parent_class('DateRange')) parent::__construct();
- $this->min = $min;
- $this->max = $max;
- }
- }}
- if (!class_exists("Dimensions", FALSE)) {
- /**
- * Represents a simple height-width dimension.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Dimensions {
- /**
- * @access public
- * @var integer
- */
- public $width;
- /**
- * @access public
- * @var integer
- */
- public $height;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Dimensions";
- }
- public function __construct($width = NULL, $height = NULL) {
- if(get_parent_class('Dimensions')) parent::__construct();
- $this->width = $width;
- $this->height = $height;
- }
- }}
- if (!class_exists("Media_Size_DimensionsMapEntry", FALSE)) {
- /**
- * This represents an entry in a map with a key of type Size
- * and value of type Dimensions.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Media_Size_DimensionsMapEntry {
- /**
- * @access public
- * @var tnsMediaSize
- */
- public $key;
- /**
- * @access public
- * @var Dimensions
- */
- public $value;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media_Size_DimensionsMapEntry";
- }
- public function __construct($key = NULL, $value = NULL) {
- if(get_parent_class('Media_Size_DimensionsMapEntry')) parent::__construct();
- $this->key = $key;
- $this->value = $value;
- }
- }}
- if (!class_exists("Media_Size_StringMapEntry", FALSE)) {
- /**
- * This represents an entry in a map with a key of type Size
- * and value of type String.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Media_Size_StringMapEntry {
- /**
- * @access public
- * @var tnsMediaSize
- */
- public $key;
- /**
- * @access public
- * @var string
- */
- public $value;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media_Size_StringMapEntry";
- }
- public function __construct($key = NULL, $value = NULL) {
- if(get_parent_class('Media_Size_StringMapEntry')) parent::__construct();
- $this->key = $key;
- $this->value = $value;
- }
- }}
- if (!class_exists("OrderBy", FALSE)) {
- /**
- * Specifies how the resulting information should be sorted.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class OrderBy {
- /**
- * @access public
- * @var string
- */
- public $field;
- /**
- * @access public
- * @var tnsSortOrder
- */
- public $sortOrder;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "OrderBy";
- }
- public function __construct($field = NULL, $sortOrder = NULL) {
- if(get_parent_class('OrderBy')) parent::__construct();
- $this->field = $field;
- $this->sortOrder = $sortOrder;
- }
- }}
- if (!class_exists("Paging", FALSE)) {
- /**
- * Specifies the page of results to return in the response. A page is specified
- * by the result position to start at and the maximum number of results to
- * return.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Paging {
- /**
- * @access public
- * @var integer
- */
- public $startIndex;
- /**
- * @access public
- * @var integer
- */
- public $numberResults;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Paging";
- }
- public function __construct($startIndex = NULL, $numberResults = NULL) {
- if(get_parent_class('Paging')) parent::__construct();
- $this->startIndex = $startIndex;
- $this->numberResults = $numberResults;
- }
- }}
- if (!class_exists("Predicate", FALSE)) {
- /**
- * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Predicate {
- /**
- * @access public
- * @var string
- */
- public $field;
- /**
- * @access public
- * @var tnsPredicateOperator
- */
- public $operator;
- /**
- * @access public
- * @var string[]
- */
- public $values;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Predicate";
- }
- public function __construct($field = NULL, $operator = NULL, $values = NULL) {
- if(get_parent_class('Predicate')) parent::__construct();
- $this->field = $field;
- $this->operator = $operator;
- $this->values = $values;
- }
- }}
- if (!class_exists("SoapRequestHeader", FALSE)) {
- /**
- * Defines the required and optional elements within the header of a SOAP request.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class SoapRequestHeader {
- /**
- * @access public
- * @var string
- */
- public $authToken;
- /**
- * @access public
- * @var string
- */
- public $clientCustomerId;
- /**
- * @access public
- * @var string
- */
- public $developerToken;
- /**
- * @access public
- * @var string
- */
- public $userAgent;
- /**
- * @access public
- * @var boolean
- */
- public $validateOnly;
- /**
- * @access public
- * @var boolean
- */
- public $partialFailure;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "SoapHeader";
- }
- public function __construct($authToken = NULL, $clientCustomerId = NULL, $developerToken = NULL, $userAgent = NULL, $validateOnly = NULL, $partialFailure = NULL) {
- if(get_parent_class('SoapRequestHeader')) parent::__construct();
- $this->authToken = $authToken;
- $this->clientCustomerId = $clientCustomerId;
- $this->developerToken = $developerToken;
- $this->userAgent = $userAgent;
- $this->validateOnly = $validateOnly;
- $this->partialFailure = $partialFailure;
- }
- }}
- if (!class_exists("SoapResponseHeader", FALSE)) {
- /**
- * Defines the elements within the header of a SOAP response.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class SoapResponseHeader {
- /**
- * @access public
- * @var string
- */
- public $requestId;
- /**
- * @access public
- * @var string
- */
- public $serviceName;
- /**
- * @access public
- * @var string
- */
- public $methodName;
- /**
- * @access public
- * @var integer
- */
- public $operations;
- /**
- * @access public
- * @var integer
- */
- public $responseTime;
- /**
- * @access public
- * @var integer
- */
- public $units;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "SoapResponseHeader";
- }
- public function __construct($requestId = NULL, $serviceName = NULL, $methodName = NULL, $operations = NULL, $responseTime = NULL, $units = NULL) {
- if(get_parent_class('SoapResponseHeader')) parent::__construct();
- $this->requestId = $requestId;
- $this->serviceName = $serviceName;
- $this->methodName = $methodName;
- $this->operations = $operations;
- $this->responseTime = $responseTime;
- $this->units = $units;
- }
- }}
- if (!class_exists("Selector", FALSE)) {
- /**
- * A generic selector to specify the type of information to return.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Selector {
- /**
- * @access public
- * @var string[]
- */
- public $fields;
- /**
- * @access public
- * @var Predicate[]
- */
- public $predicates;
- /**
- * @access public
- * @var DateRange
- */
- public $dateRange;
- /**
- * @access public
- * @var OrderBy[]
- */
- public $ordering;
- /**
- * @access public
- * @var Paging
- */
- public $paging;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Selector";
- }
- public function __construct($fields = NULL, $predicates = NULL, $dateRange = NULL, $ordering = NULL, $paging = NULL) {
- if(get_parent_class('Selector')) parent::__construct();
- $this->fields = $fields;
- $this->predicates = $predicates;
- $this->dateRange = $dateRange;
- $this->ordering = $ordering;
- $this->paging = $paging;
- }
- }}
- if (!class_exists("ApiError", FALSE)) {
- /**
- * The API error base class that provides details about an error that occurred
- * while processing a service request.
- *
- * <p>The OGNL field path is provided for parsers to identify the request data
- * element that may have caused the error.</p>
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ApiError {
- /**
- * @access public
- * @var string
- */
- public $fieldPath;
- /**
- * @access public
- * @var string
- */
- public $trigger;
- /**
- * @access public
- * @var string
- */
- public $errorString;
- /**
- * @access public
- * @var string
- */
- public $ApiErrorType;
- private $_parameterMap = array (
- "ApiError.Type" => "ApiErrorType",
- );
- /**
- * Provided for setting non-php-standard named variables
- * @param $var Variable name to set
- * @param $value Value to set
- */
- public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
- /**
- * Provided for getting non-php-standard named variables
- * @param $var Variable name to get.
- * @return mixed Variable value
- */
- public function __get($var) {
- if (!array_key_exists($var, $this->_parameterMap)) {
- return NULL;
- } else {
- return $this->{$this->_parameterMap[$var]};
- }
- }
- /**
- * Provided for getting non-php-standard named variables
- * @return array parameter map
- */
- protected function getParameterMap() {
- return $this->_parameterMap;
- }
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ApiError";
- }
- public function __construct($fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('ApiError')) parent::__construct();
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("ApplicationException", FALSE)) {
- /**
- * Base class for exceptions.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ApplicationException {
- /**
- * @access public
- * @var string
- */
- public $message;
- /**
- * @access public
- * @var string
- */
- public $ApplicationExceptionType;
- private $_parameterMap = array (
- "ApplicationException.Type" => "ApplicationExceptionType",
- );
- /**
- * Provided for setting non-php-standard named variables
- * @param $var Variable name to set
- * @param $value Value to set
- */
- public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
- /**
- * Provided for getting non-php-standard named variables
- * @param $var Variable name to get.
- * @return mixed Variable value
- */
- public function __get($var) {
- if (!array_key_exists($var, $this->_parameterMap)) {
- return NULL;
- } else {
- return $this->{$this->_parameterMap[$var]};
- }
- }
- /**
- * Provided for getting non-php-standard named variables
- * @return array parameter map
- */
- protected function getParameterMap() {
- return $this->_parameterMap;
- }
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ApplicationException";
- }
- public function __construct($message = NULL, $ApplicationExceptionType = NULL) {
- if(get_parent_class('ApplicationException')) parent::__construct();
- $this->message = $message;
- $this->ApplicationExceptionType = $ApplicationExceptionType;
- }
- }}
- if (!class_exists("Media", FALSE)) {
- /**
- * Represents some kind of media.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Media {
- /**
- * @access public
- * @var integer
- */
- public $mediaId;
- /**
- * @access public
- * @var tnsMediaMediaType
- */
- public $type;
- /**
- * @access public
- * @var integer
- */
- public $referenceId;
- /**
- * @access public
- * @var Media_Size_DimensionsMapEntry[]
- */
- public $dimensions;
- /**
- * @access public
- * @var Media_Size_StringMapEntry[]
- */
- public $urls;
- /**
- * @access public
- * @var tnsMediaMimeType
- */
- public $mimeType;
- /**
- * @access public
- * @var string
- */
- public $sourceUrl;
- /**
- * @access public
- * @var string
- */
- public $name;
- /**
- * @access public
- * @var integer
- */
- public $fileSize;
- /**
- * @access public
- * @var string
- */
- public $creationTime;
- /**
- * @access public
- * @var string
- */
- public $MediaType;
- private $_parameterMap = array (
- "Media.Type" => "MediaType",
- );
- /**
- * Provided for setting non-php-standard named variables
- * @param $var Variable name to set
- * @param $value Value to set
- */
- public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }
- /**
- * Provided for getting non-php-standard named variables
- * @param $var Variable name to get.
- * @return mixed Variable value
- */
- public function __get($var) {
- if (!array_key_exists($var, $this->_parameterMap)) {
- return NULL;
- } else {
- return $this->{$this->_parameterMap[$var]};
- }
- }
- /**
- * Provided for getting non-php-standard named variables
- * @return array parameter map
- */
- protected function getParameterMap() {
- return $this->_parameterMap;
- }
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media";
- }
- 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) {
- if(get_parent_class('Media')) parent::__construct();
- $this->mediaId = $mediaId;
- $this->type = $type;
- $this->referenceId = $referenceId;
- $this->dimensions = $dimensions;
- $this->urls = $urls;
- $this->mimeType = $mimeType;
- $this->sourceUrl = $sourceUrl;
- $this->name = $name;
- $this->fileSize = $fileSize;
- $this->creationTime = $creationTime;
- $this->MediaType = $MediaType;
- }
- }}
- if (!class_exists("MediaPage", FALSE)) {
- /**
- * Page of media returned by the {@link MediaService} which includes
- * the media.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaPage {
- /**
- * @access public
- * @var Media[]
- */
- public $entries;
- /**
- * @access public
- * @var integer
- */
- public $totalNumEntries;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "MediaPage";
- }
- public function __construct($entries = NULL, $totalNumEntries = NULL) {
- if(get_parent_class('MediaPage')) parent::__construct();
- $this->entries = $entries;
- $this->totalNumEntries = $totalNumEntries;
- }
- }}
- if (!class_exists("AudioErrorReason", FALSE)) {
- /**
- *
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AudioErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AudioError.Reason";
- }
- public function __construct() {
- if(get_parent_class('AudioErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("AuthenticationErrorReason", FALSE)) {
- /**
- * The single reason for the authentication failure.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AuthenticationErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AuthenticationError.Reason";
- }
- public function __construct() {
- if(get_parent_class('AuthenticationErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("AuthorizationErrorReason", FALSE)) {
- /**
- * The reasons for the database error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AuthorizationErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AuthorizationError.Reason";
- }
- public function __construct() {
- if(get_parent_class('AuthorizationErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("ClientTermsErrorReason", FALSE)) {
- /**
- * Enums for the various reasons an error can be thrown as a result of
- * ClientTerms violation.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ClientTermsErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ClientTermsError.Reason";
- }
- public function __construct() {
- if(get_parent_class('ClientTermsErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("DatabaseErrorReason", FALSE)) {
- /**
- * The reasons for the database error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class DatabaseErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "DatabaseError.Reason";
- }
- public function __construct() {
- if(get_parent_class('DatabaseErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("EntityNotFoundReason", FALSE)) {
- /**
- * The specified id refered to an entity which either doesn't exist or is not accessible to the
- * customer. e.g. campaign belongs to another customer.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class EntityNotFoundReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "EntityNotFound.Reason";
- }
- public function __construct() {
- if(get_parent_class('EntityNotFoundReason')) parent::__construct();
- }
- }}
- if (!class_exists("ImageErrorReason", FALSE)) {
- /**
- * The image is not valid.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ImageErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ImageError.Reason";
- }
- public function __construct() {
- if(get_parent_class('ImageErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("InternalApiErrorReason", FALSE)) {
- /**
- * The single reason for the internal API error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class InternalApiErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "InternalApiError.Reason";
- }
- public function __construct() {
- if(get_parent_class('InternalApiErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("MediaMediaType", FALSE)) {
- /**
- * Media types
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaMediaType {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media.MediaType";
- }
- public function __construct() {
- if(get_parent_class('MediaMediaType')) parent::__construct();
- }
- }}
- if (!class_exists("MediaMimeType", FALSE)) {
- /**
- * Mime types
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaMimeType {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media.MimeType";
- }
- public function __construct() {
- if(get_parent_class('MediaMimeType')) parent::__construct();
- }
- }}
- if (!class_exists("MediaSize", FALSE)) {
- /**
- * Sizes for retrieving the original media
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaSize {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Media.Size";
- }
- public function __construct() {
- if(get_parent_class('MediaSize')) parent::__construct();
- }
- }}
- if (!class_exists("MediaErrorReason", FALSE)) {
- /**
- * The reasons for the target error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "MediaError.Reason";
- }
- public function __construct() {
- if(get_parent_class('MediaErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("NewEntityCreationErrorReason", FALSE)) {
- /**
- * Do not set the id field while creating new entities.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class NewEntityCreationErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "NewEntityCreationError.Reason";
- }
- public function __construct() {
- if(get_parent_class('NewEntityCreationErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("NotWhitelistedErrorReason", FALSE)) {
- /**
- * The single reason for the whitelist error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class NotWhitelistedErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "NotWhitelistedError.Reason";
- }
- public function __construct() {
- if(get_parent_class('NotWhitelistedErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("NullErrorReason", FALSE)) {
- /**
- * The reasons for the validation error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class NullErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "NullError.Reason";
- }
- public function __construct() {
- if(get_parent_class('NullErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("OperationAccessDeniedReason", FALSE)) {
- /**
- * The reasons for the operation access error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class OperationAccessDeniedReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "OperationAccessDenied.Reason";
- }
- public function __construct() {
- if(get_parent_class('OperationAccessDeniedReason')) parent::__construct();
- }
- }}
- if (!class_exists("PredicateOperator", FALSE)) {
- /**
- * Defines the valid set of operators.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class PredicateOperator {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Predicate.Operator";
- }
- public function __construct() {
- if(get_parent_class('PredicateOperator')) parent::__construct();
- }
- }}
- if (!class_exists("QuotaCheckErrorReason", FALSE)) {
- /**
- * Enums for all the reasons an error can be thrown to the user during
- * billing quota checks.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class QuotaCheckErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "QuotaCheckError.Reason";
- }
- public function __construct() {
- if(get_parent_class('QuotaCheckErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("RangeErrorReason", FALSE)) {
- /**
- * The reasons for the target error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class RangeErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "RangeError.Reason";
- }
- public function __construct() {
- if(get_parent_class('RangeErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("RateExceededErrorReason", FALSE)) {
- /**
- * The reason for the rate exceeded error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class RateExceededErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "RateExceededError.Reason";
- }
- public function __construct() {
- if(get_parent_class('RateExceededErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("ReadOnlyErrorReason", FALSE)) {
- /**
- * The reasons for the target error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ReadOnlyErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ReadOnlyError.Reason";
- }
- public function __construct() {
- if(get_parent_class('ReadOnlyErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("RequestErrorReason", FALSE)) {
- /**
- * Error reason is unknown.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class RequestErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "RequestError.Reason";
- }
- public function __construct() {
- if(get_parent_class('RequestErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("RequiredErrorReason", FALSE)) {
- /**
- * The reasons for the target error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class RequiredErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "RequiredError.Reason";
- }
- public function __construct() {
- if(get_parent_class('RequiredErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("SelectorErrorReason", FALSE)) {
- /**
- * The reasons for the target error.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class SelectorErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "SelectorError.Reason";
- }
- public function __construct() {
- if(get_parent_class('SelectorErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("SizeLimitErrorReason", FALSE)) {
- /**
- * The reasons for Ad Scheduling errors.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class SizeLimitErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "SizeLimitError.Reason";
- }
- public function __construct() {
- if(get_parent_class('SizeLimitErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("SortOrder", FALSE)) {
- /**
- * Possible orders of sorting.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class SortOrder {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "SortOrder";
- }
- public function __construct() {
- if(get_parent_class('SortOrder')) parent::__construct();
- }
- }}
- if (!class_exists("VideoErrorReason", FALSE)) {
- /**
- *
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class VideoErrorReason {
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "VideoError.Reason";
- }
- public function __construct() {
- if(get_parent_class('VideoErrorReason')) parent::__construct();
- }
- }}
- if (!class_exists("MediaServiceGet", FALSE)) {
- /**
- * <span class="constraint Required">This field is required and should not be {@code null}.</span>
- *
- *
- *
- * Returns a list of media that meet the criteria specified by the selector.
- * <p class="note"><b>Note:</b> {@code MediaService} will not return any
- * {@link ImageAd} image files.</p>
- *
- * @param serviceSelector Selects which media objects to return.
- * @return A list of {@code Media} objects.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaServiceGet {
- /**
- * @access public
- * @var Selector
- */
- public $serviceSelector;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "";
- }
- public function __construct($serviceSelector = NULL) {
- if(get_parent_class('MediaServiceGet')) parent::__construct();
- $this->serviceSelector = $serviceSelector;
- }
- }}
- if (!class_exists("MediaServiceGetResponse", FALSE)) {
- /**
- *
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class MediaServiceGetResponse {
- /**
- * @access public
- * @var MediaPage
- */
- public $rval;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "";
- }
- public function __construct($rval = NULL) {
- if(get_parent_class('MediaServiceGetResponse')) parent::__construct();
- $this->rval = $rval;
- }
- }}
- if (!class_exists("upload", FALSE)) {
- /**
- * Uploads new media. Currently, you can only upload {@link Image} files.
- *
- * @param media A list of {@code Media} objects, each containing the data to
- * be uploaded.
- * @return A list of uploaded media in the same order as the argument list.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class upload {
- /**
- * @access public
- * @var Media[]
- */
- public $media;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "";
- }
- public function __construct($media = NULL) {
- if(get_parent_class('upload')) parent::__construct();
- $this->media = $media;
- }
- }}
- if (!class_exists("uploadResponse", FALSE)) {
- /**
- *
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class uploadResponse {
- /**
- * @access public
- * @var Media[]
- */
- public $rval;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "";
- }
- public function __construct($rval = NULL) {
- if(get_parent_class('uploadResponse')) parent::__construct();
- $this->rval = $rval;
- }
- }}
- if (!class_exists("Audio", FALSE)) {
- /**
- * Encapsulates an Audio media identified by a MediaId.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Audio extends Media {
- /**
- * @access public
- * @var integer
- */
- public $durationMillis;
- /**
- * @access public
- * @var string
- */
- public $streamingUrl;
- /**
- * @access public
- * @var boolean
- */
- public $readyToPlayOnTheWeb;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Audio";
- }
- 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) {
- if(get_parent_class('Audio')) parent::__construct();
- $this->durationMillis = $durationMillis;
- $this->streamingUrl = $streamingUrl;
- $this->readyToPlayOnTheWeb = $readyToPlayOnTheWeb;
- $this->mediaId = $mediaId;
- $this->type = $type;
- $this->referenceId = $referenceId;
- $this->dimensions = $dimensions;
- $this->urls = $urls;
- $this->mimeType = $mimeType;
- $this->sourceUrl = $sourceUrl;
- $this->name = $name;
- $this->fileSize = $fileSize;
- $this->creationTime = $creationTime;
- $this->MediaType = $MediaType;
- }
- }}
- if (!class_exists("AudioError", FALSE)) {
- /**
- * Error class for errors associated with parsing audio data.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AudioError extends ApiError {
- /**
- * @access public
- * @var tnsAudioErrorReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AudioError";
- }
- public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('AudioError')) parent::__construct();
- $this->reason = $reason;
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("AuthenticationError", FALSE)) {
- /**
- * Errors returned when Authentication failed.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AuthenticationError extends ApiError {
- /**
- * @access public
- * @var tnsAuthenticationErrorReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AuthenticationError";
- }
- public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('AuthenticationError')) parent::__construct();
- $this->reason = $reason;
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("AuthorizationError", FALSE)) {
- /**
- * Errors encountered when trying to authorize a user.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class AuthorizationError extends ApiError {
- /**
- * @access public
- * @var tnsAuthorizationErrorReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "AuthorizationError";
- }
- public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('AuthorizationError')) parent::__construct();
- $this->reason = $reason;
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("ClientTermsError", FALSE)) {
- /**
- * Error due to user not accepting the AdWords terms of service.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ClientTermsError extends ApiError {
- /**
- * @access public
- * @var tnsClientTermsErrorReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ClientTermsError";
- }
- public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('ClientTermsError')) parent::__construct();
- $this->reason = $reason;
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("EntityNotFound", FALSE)) {
- /**
- * An id did not correspond to an entity, or it referred to an entity which does not belong to the
- * customer.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class EntityNotFound extends ApiError {
- /**
- * @access public
- * @var tnsEntityNotFoundReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "EntityNotFound";
- }
- public function __construct($reason = NULL, $fieldPath = NULL, $trigger = NULL, $errorString = NULL, $ApiErrorType = NULL) {
- if(get_parent_class('EntityNotFound')) parent::__construct();
- $this->reason = $reason;
- $this->fieldPath = $fieldPath;
- $this->trigger = $trigger;
- $this->errorString = $errorString;
- $this->ApiErrorType = $ApiErrorType;
- }
- }}
- if (!class_exists("Image", FALSE)) {
- /**
- * Raw image data.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class Image extends Media {
- /**
- * @access public
- * @var base64Binary
- */
- public $data;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "Image";
- }
- 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) {
- if(get_parent_class('Image')) parent::__construct();
- $this->data = $data;
- $this->mediaId = $mediaId;
- $this->type = $type;
- $this->referenceId = $referenceId;
- $this->dimensions = $dimensions;
- $this->urls = $urls;
- $this->mimeType = $mimeType;
- $this->sourceUrl = $sourceUrl;
- $this->name = $name;
- $this->fileSize = $fileSize;
- $this->creationTime = $creationTime;
- $this->MediaType = $MediaType;
- }
- }}
- if (!class_exists("ImageError", FALSE)) {
- /**
- * Error class for errors associated with parsing image data.
- * @package GoogleApiAdsAdWords
- * @subpackage v201109
- */
- class ImageError extends ApiError {
- /**
- * @access public
- * @var tnsImageErrorReason
- */
- public $reason;
- /**
- * Gets the namesapce of this class
- * @return the namespace of this class
- */
- public function getNamespace() {
- return "https://adwords.google.com/api/adwords/cm/v201109";
- }
- /**
- * Gets the xsi:type name of this class
- * @return the xsi:type name of this class
- */
- public function getXsiTypeName() {
- return "ImageErro…
Large files files are truncated, but you can click here to view the full file