diff --git a/ChangeLog.md b/ChangeLog.md index e83008fbb..810c2512d 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,12 @@ +### 5.2.3 + +AdWords: + - Added support for new AdWords Express ProductServiceService. + - Fixed [issue #2](https://github.com/googleads/googleads-php-lib/issues/2). + +DFP: + - Fixed [issue #32](https://github.com/googleads/googleads-php-lib/issues/32). + ### 5.2.2 AdWords: diff --git a/examples/AdWords/v201309/Express/GetProductServices.php b/examples/AdWords/v201309/Express/GetProductServices.php new file mode 100755 index 000000000..0b23ebc52 --- /dev/null +++ b/examples/AdWords/v201309/Express/GetProductServices.php @@ -0,0 +1,96 @@ +GetService('ProductServiceService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('ProductServiceText'); + + // Create predicates. + $selector->predicates[] = new Predicate('ProductServiceText', 'EQUALS', + array($productServiceSuggestion)); + $selector->predicates[] = new Predicate('Locale', 'EQUALS', + array($localeText)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $productServiceService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $productService) { + printf("Product/service with text '%s' found\n", $productService->text); + } + } else { + print "No products/services were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get AdWordsUser from credentials in "../auth.ini" + // relative to the AdWordsUser.php file's directory. + $user = new AdWordsUser(); + + // Log every SOAP XML request and response. + $user->LogAll(); + + // Run the example. + GetProductServicesExample($user, $productServiceSuggestion, $localeText); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/AdWords/v201402/Express/GetProductServices.php b/examples/AdWords/v201402/Express/GetProductServices.php new file mode 100755 index 000000000..b691708ad --- /dev/null +++ b/examples/AdWords/v201402/Express/GetProductServices.php @@ -0,0 +1,96 @@ +GetService('ProductServiceService', + ADWORDS_VERSION); + + // Create selector. + $selector = new Selector(); + $selector->fields = array('ProductServiceText'); + + // Create predicates. + $selector->predicates[] = new Predicate('ProductServiceText', 'EQUALS', + array($productServiceSuggestion)); + $selector->predicates[] = new Predicate('Locale', 'EQUALS', + array($localeText)); + + // Create paging controls. + $selector->paging = new Paging(0, AdWordsConstants::RECOMMENDED_PAGE_SIZE); + + do { + // Make the get request. + $page = $productServiceService->get($selector); + + // Display results. + if (isset($page->entries)) { + foreach ($page->entries as $productService) { + printf("Product/service with text '%s' found\n", $productService->text); + } + } else { + print "No products/services were found.\n"; + } + + // Advance the paging index. + $selector->paging->startIndex += AdWordsConstants::RECOMMENDED_PAGE_SIZE; + } while ($page->totalNumEntries > $selector->paging->startIndex); +} + +// Don't run the example if the file is being included. +if (__FILE__ != realpath($_SERVER['PHP_SELF'])) { + return; +} + +try { + // Get AdWordsUser from credentials in "../auth.ini" + // relative to the AdWordsUser.php file's directory. + $user = new AdWordsUser(); + + // Log every SOAP XML request and response. + $user->LogAll(); + + // Run the example. + GetProductServicesExample($user, $productServiceSuggestion, $localeText); +} catch (Exception $e) { + printf("An error has occurred: %s\n", $e->getMessage()); +} diff --git a/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php b/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php index 62fc74786..d15a727ed 100755 --- a/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php +++ b/examples/Dfp/v201403/CreativeSetService/CreateCreativeSetsExample.php @@ -66,7 +66,7 @@ // Create the creative set on the server. $creativeSets = $creativeSetService->createCreativeSets(array($creativeSet)); - foreach ($creativeSets as $creativeSet) + foreach ($creativeSets as $creativeSet) { printf ("A creative set with ID '%s', name '%s', master creative ID '%s' " . ", and companion creativeID(s) {%s} was created.\n", $creativeSet->id, $creativeSet->name, $creativeSet->masterCreativeId, diff --git a/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php b/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php index 392bf970c..64dc8a100 100755 --- a/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php +++ b/examples/Dfp/v201403/InventoryService/CreateMobileAdUnitExample.php @@ -80,7 +80,7 @@ // Create the ad unit on the server. $adUnits = $inventoryService->createAdUnits(array($adUnit)); - foreach ($adUnits as $adUnit) + foreach ($adUnits as $adUnit) { printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", $adUnit->id, $adUnit->parentId); } diff --git a/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php b/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php index 7edcffa79..175c3bb58 100755 --- a/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php +++ b/examples/Dfp/v201403/InventoryService/CreateVideoAdUnitExample.php @@ -94,7 +94,7 @@ // Create the ad unit on the server. $adUnits = $inventoryService->createAdUnits(array($adUnit)); - foreach ($adUnits as $adUnit) + foreach ($adUnits as $adUnit) { printf("An ad unit with ID '%s' was created under parent with ID '%s'.\n", $adUnit->id, $adUnit->parentId); } diff --git a/src/Google/Api/Ads/AdWords/Lib/api.properties b/src/Google/Api/Ads/AdWords/Lib/api.properties index 8dab5a724..dd24593e4 100755 --- a/src/Google/Api/Ads/AdWords/Lib/api.properties +++ b/src/Google/Api/Ads/AdWords/Lib/api.properties @@ -23,7 +23,7 @@ api.soapClientClassNamespace=Google_Api_Ads_AdWords_Lib ;; v201309 api.versions.v201309.namespace=Google_Api_Ads_AdWords_v201309 -api.versions.v201309.services=AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,CampaignSharedSetService,ConstantDataService,ConversionTrackerService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,OfflineConversionFeedService,ReportDefinitionService,SharedCriterionService,SharedSetService,TargetingIdeaService,TrafficEstimatorService,ExpressBusinessService,PromotionService +api.versions.v201309.services=AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,CampaignSharedSetService,ConstantDataService,ConversionTrackerService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,OfflineConversionFeedService,ReportDefinitionService,SharedCriterionService,SharedSetService,TargetingIdeaService,TrafficEstimatorService,ExpressBusinessService,ProductServiceService,PromotionService api.versions.v201309.services.AdGroupAdService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupAdService?wsdl api.versions.v201309.services.AdGroupBidModifierService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupBidModifierService?wsdl api.versions.v201309.services.AdGroupCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/AdGroupCriterionService?wsdl @@ -56,6 +56,7 @@ api.versions.v201309.services.ManagedCustomerService.wsdl=${api.server}/api/adwo api.versions.v201309.services.MediaService.wsdl=${api.server}/api/adwords/cm/v201309/MediaService?wsdl api.versions.v201309.services.MutateJobService.wsdl=${api.server}/api/adwords/cm/v201309/MutateJobService?wsdl api.versions.v201309.services.OfflineConversionFeedService.wsdl=${api.server}/api/adwords/cm/v201309/OfflineConversionFeedService?wsdl +api.versions.v201309.services.ProductServiceService.wsdl=${api.server}/api/adwords/express/v201309/ProductServiceService?wsdl api.versions.v201309.services.PromotionService.wsdl=${api.server}/api/adwords/express/v201309/PromotionService?wsdl api.versions.v201309.services.ReportDefinitionService.wsdl=${api.server}/api/adwords/cm/v201309/ReportDefinitionService?wsdl api.versions.v201309.services.SharedCriterionService.wsdl=${api.server}/api/adwords/cm/v201309/SharedCriterionService?wsdl @@ -65,7 +66,7 @@ api.versions.v201309.services.TrafficEstimatorService.wsdl=${api.server}/api/adw ;; v201402 api.versions.v201402.namespace=Google_Api_Ads_AdWords_v201402 -api.versions.v201402.services=AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,ConstantDataService,ConversionTrackerService,CustomerFeedService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,OfflineConversionFeedService,ReportDefinitionService,TargetingIdeaService,TrafficEstimatorService,ExpressBusinessService,PromotionService +api.versions.v201402.services=AdGroupAdService,AdGroupBidModifierService,AdGroupCriterionService,AdGroupFeedService,AdGroupService,AdParamService,AdwordsUserListService,AlertService,BiddingStrategyService,BudgetOrderService,BudgetService,CampaignAdExtensionService,CampaignCriterionService,CampaignFeedService,CampaignService,ConstantDataService,ConversionTrackerService,CustomerFeedService,CustomerService,CustomerSyncService,DataService,ExperimentService,FeedItemService,FeedMappingService,FeedService,GeoLocationService,LocationCriterionService,ManagedCustomerService,MediaService,MutateJobService,OfflineConversionFeedService,ReportDefinitionService,TargetingIdeaService,TrafficEstimatorService,ExpressBusinessService,ProductServiceService,PromotionService api.versions.v201402.services.AdGroupAdService.wsdl=${api.server}/api/adwords/cm/v201402/AdGroupAdService?wsdl api.versions.v201402.services.AdGroupBidModifierService.wsdl=${api.server}/api/adwords/cm/v201402/AdGroupBidModifierService?wsdl api.versions.v201402.services.AdGroupCriterionService.wsdl=${api.server}/api/adwords/cm/v201402/AdGroupCriterionService?wsdl @@ -98,6 +99,7 @@ api.versions.v201402.services.ManagedCustomerService.wsdl=${api.server}/api/adwo api.versions.v201402.services.MediaService.wsdl=${api.server}/api/adwords/cm/v201402/MediaService?wsdl api.versions.v201402.services.MutateJobService.wsdl=${api.server}/api/adwords/cm/v201402/MutateJobService?wsdl api.versions.v201402.services.OfflineConversionFeedService.wsdl=${api.server}/api/adwords/cm/v201402/OfflineConversionFeedService?wsdl +api.versions.v201402.services.ProductServiceService.wsdl=${api.server}/api/adwords/express/v201402/ProductServiceService?wsdl api.versions.v201402.services.PromotionService.wsdl=${api.server}/api/adwords/express/v201402/PromotionService?wsdl api.versions.v201402.services.ReportDefinitionService.wsdl=${api.server}/api/adwords/cm/v201402/ReportDefinitionService?wsdl api.versions.v201402.services.TargetingIdeaService.wsdl=${api.server}/api/adwords/o/v201402/TargetingIdeaService?wsdl diff --git a/src/Google/Api/Ads/AdWords/settings.ini b/src/Google/Api/Ads/AdWords/settings.ini index 2608caf0b..0a555d25f 100755 --- a/src/Google/Api/Ads/AdWords/settings.ini +++ b/src/Google/Api/Ads/AdWords/settings.ini @@ -33,6 +33,17 @@ WSDL_CACHE = 0 ; of HTTP 1.1 chunked data properly. ; FORCE_HTTP_VERSION = "" +; Forces SOAP requests to add the XSI types or not. Different PHP versions +; on different platforms may need to set to true or false. +; If not set, the client library will default to 0 (false), except for the +; following: +; - PHP < 5.2.6 on any OS will be set to 1 (true) when this setting is not set +; - PHP < 5.3.0 on Darwin OS will be set to 1 (true) when this setting is not +; set +; If you are receiving "Unmarshalling Error", uncomment the following setting +; and set it to either 0 (false) or 1 (true). +; FORCE_ADD_XSI_TYPES = 1; + [PROXY] ; Proxy settings to be used by HTTP (and therefore SOAP) requests. ; HOST = "" diff --git a/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php index 8281a8970..4a2b2e9d8 100755 --- a/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php +++ b/src/Google/Api/Ads/AdWords/v201309/CampaignFeedService.php @@ -3447,6 +3447,7 @@ public function __construct($rval = null) { * This field must not contain {@code null} elements. * This field must contain at least one element. * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. * * * @@ -4042,6 +4043,7 @@ public function get($selector) { * This field must not contain {@code null} elements. * This field must contain at least one element. * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. * * * diff --git a/src/Google/Api/Ads/AdWords/v201309/ProductServiceService.php b/src/Google/Api/Ads/AdWords/v201309/ProductServiceService.php new file mode 100755 index 000000000..21bbbf79b --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201309/ProductServiceService.php @@ -0,0 +1,4451 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null, $ApplicationExceptionType = null) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * Errors returned when Authentication failed. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + 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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class AuthorizationError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "AuthorizationError"; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + 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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ClientTermsError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ClientTermsError"; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Criterion", false)) { + /** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Criterion"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + private $_parameterMap = array( + "Criterion.Type" => "CriterionType", + ); + + /** + * 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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $CriterionType = null) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("CriterionParameter", false)) { + /** + * Base type of criterion parameters. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class CriterionParameter { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "CriterionParameter"; + + /** + * @access public + * @var string + */ + public $CriterionParameterType; + private $_parameterMap = array( + "CriterionParameter.Type" => "CriterionParameterType", + ); + + /** + * 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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($CriterionParameterType = null) { + $this->CriterionParameterType = $CriterionParameterType; + } + + } +} + +if (!class_exists("DatabaseError", false)) { + /** + * Errors that are thrown due to a database access problem. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DatabaseError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DatabaseError"; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Date { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DateError", false)) { + /** + * Errors associated with invalid dates and date ranges. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DateError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DateError"; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DateRange { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DateRange"; + + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($min = null, $max = null) { + $this->min = $min; + $this->max = $max; + } + + } +} + +if (!class_exists("DistinctError", false)) { + /** + * Errors related to distinct ids or content. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DistinctError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DistinctError"; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("IdError", false)) { + /** + * Errors associated with the ids. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class IdError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "IdError"; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Keyword", false)) { + /** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Keyword extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Keyword"; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($text = null, $matchType = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("MobileAppCategory", false)) { + /** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class MobileAppCategory extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "MobileAppCategory"; + + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileAppCategoryId = null, $displayName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("MobileApplication", false)) { + /** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class MobileApplication extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "MobileApplication"; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($appId = null, $displayName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("NotEmptyError", false)) { + /** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NotEmptyError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NotEmptyError"; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("NotWhitelistedError", false)) { + /** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NotWhitelistedError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NotWhitelistedError"; + + /** + * @access public + * @var tnsNotWhitelistedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("OrderBy", false)) { + /** + * Specifies how the resulting information should be sorted. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class OrderBy { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($field = null, $sortOrder = null) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } + + } +} + +if (!class_exists("Page", false)) { + /** + * Contains the results from a get call. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Page { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Page"; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + private $_parameterMap = array( + "Page.Type" => "PageType", + ); + + /** + * 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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalNumEntries = null, $PageType = null) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } + + } +} + +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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Paging { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($startIndex = null, $numberResults = null) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } + + } +} + +if (!class_exists("Placement", false)) { + /** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Placement extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Placement"; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($url = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("Predicate", false)) { + /** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Predicate { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($field = null, $operator = null, $values = null) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } + + } +} + +if (!class_exists("Product", false)) { + /** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Product extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Product"; + + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($conditions = null, $text = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("ProductCondition", false)) { + /** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductCondition { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ProductCondition"; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($argument = null, $operand = null) { + $this->argument = $argument; + $this->operand = $operand; + } + + } +} + +if (!class_exists("ProductConditionOperand", false)) { + /** + * Attribute for the product condition. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductConditionOperand { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ProductConditionOperand"; + + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operand = null) { + $this->operand = $operand; + } + + } +} + +if (!class_exists("QuotaCheckError", false)) { + /** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class QuotaCheckError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "QuotaCheckError"; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RateExceededError", false)) { + /** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RateExceededError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RateExceededError"; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $rateName = null, $rateScope = null, $retryAfterSeconds = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ReadOnlyError", false)) { + /** + * Errors from attempting to write to read-only fields. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ReadOnlyError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ReadOnlyError"; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RejectedError", false)) { + /** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RejectedError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RejectedError"; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RequestError", false)) { + /** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RequestError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RequestError"; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Selector", false)) { + /** + * A generic selector to specify the type of information to return. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Selector { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fields = null, $predicates = null, $dateRange = null, $ordering = null, $paging = null) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } + + } +} + +if (!class_exists("SelectorError", false)) { + /** + * Represents possible error codes for {@link Selector}. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SelectorError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SelectorError"; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("SizeLimitError", false)) { + /** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SizeLimitError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SizeLimitError"; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SoapHeader"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($authToken = null, $clientCustomerId = null, $developerToken = null, $userAgent = null, $validateOnly = null, $partialFailure = null) { + $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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $serviceName = null, $methodName = null, $operations = null, $responseTime = null) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("CriterionUserInterest", false)) { + /** + * User Interest represents a particular interest-based vertical to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class CriterionUserInterest extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "CriterionUserInterest"; + + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userInterestId = null, $userInterestName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("CriterionUserList", false)) { + /** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class CriterionUserList extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "CriterionUserList"; + + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userListId = null, $userListName = null, $userListMembershipStatus = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("Vertical", false)) { + /** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Vertical extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Vertical"; + + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($verticalId = null, $verticalParentId = null, $path = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("Webpage", false)) { + /** + * Criterion for targeting webpages of an advertiser's website. The + * website domain name is specified at the campaign level. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class Webpage extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Webpage"; + + /** + * @access public + * @var WebpageParameter + */ + public $parameter; + + /** + * @access public + * @var double + */ + public $criteriaCoverage; + + /** + * @access public + * @var string[] + */ + public $criteriaSamples; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($parameter = null, $criteriaCoverage = null, $criteriaSamples = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->parameter = $parameter; + $this->criteriaCoverage = $criteriaCoverage; + $this->criteriaSamples = $criteriaSamples; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("WebpageCondition", false)) { + /** + * Logical expression for targeting webpages of an advertiser's website. + * + *

A condition is defined as {@code operand OP argument} + * where {@code operand} is one of the values enumerated in + * {@link WebpageConditionOperand}, and, based on this value, + * {@code OP} is either of {@code EQUALS} or {@code CONTAINS}.

+ * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class WebpageCondition { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "WebpageCondition"; + + /** + * @access public + * @var tnsWebpageConditionOperand + */ + public $operand; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operand = null, $argument = null) { + $this->operand = $operand; + $this->argument = $argument; + } + + } +} + +if (!class_exists("WebpageParameter", false)) { + /** + * Parameter of Webpage criterion, expressed as a list of conditions, or + * logical expressions, for targeting webpages of an advertiser's website. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class WebpageParameter extends CriterionParameter { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "WebpageParameter"; + + /** + * @access public + * @var string + */ + public $criterionName; + + /** + * @access public + * @var WebpageCondition[] + */ + public $conditions; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($criterionName = null, $conditions = null, $CriterionParameterType = null) { + parent::__construct(); + $this->criterionName = $criterionName; + $this->conditions = $conditions; + $this->CriterionParameterType = $CriterionParameterType; + } + + } +} + +if (!class_exists("AuthenticationErrorReason", false)) { + /** + * The single reason for the authentication failure. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AuthorizationErrorReason", false)) { + /** + * The reasons for the database error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class AuthorizationErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "AuthorizationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClientTermsErrorReason", false)) { + /** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ClientTermsErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ClientTermsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CriterionType", false)) { + /** + * The types of criteria. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class CriterionType { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Criterion.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DatabaseErrorReason", false)) { + /** + * The reasons for the database error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DatabaseErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DatabaseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DateErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DistinctErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class DistinctErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "DistinctError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("IdErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class IdErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "IdError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("KeywordMatchType", false)) { + /** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class KeywordMatchType { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "KeywordMatchType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotEmptyErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NotEmptyErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NotEmptyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotWhitelistedErrorReason", false)) { + /** + * The single reason for the whitelist error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NotWhitelistedErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NotWhitelistedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PredicateOperator", false)) { + /** + * Defines the valid set of operators. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class PredicateOperator { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "Predicate.Operator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("QuotaCheckErrorReason", false)) { + /** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class QuotaCheckErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "QuotaCheckError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateExceededErrorReason", false)) { + /** + * The reason for the rate exceeded error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RateExceededErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RateExceededError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReadOnlyErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ReadOnlyErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ReadOnlyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RejectedErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RejectedErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RejectedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequestErrorReason", false)) { + /** + * Error reason is unknown. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RequestErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RequestError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SelectorErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SelectorErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SelectorError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SizeLimitErrorReason", false)) { + /** + * The reasons for Ad Scheduling errors. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SizeLimitErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SizeLimitError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SortOrder", false)) { + /** + * Possible orders of sorting. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class SortOrder { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "SortOrder"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CriterionUserListMembershipStatus", false)) { + /** + * Membership status of the user list. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class CriterionUserListMembershipStatus { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "CriterionUserList.MembershipStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("WebpageConditionOperand", false)) { + /** + * Operand value of {@link WebpageCondition}. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class WebpageConditionOperand { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "WebpageConditionOperand"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductService", false)) { + /** + * A {@link Criterion} which describes the product or service an Ad is targeting. A product and + * service criterion can be used to derive a group of {@link KeywordSet} by AdWords Express. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductService extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const XSI_TYPE = "ProductService"; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($text = null, $locale = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->text = $text; + $this->locale = $locale; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("NoStatsPage", false)) { + /** + * Base class for Get results for a page of entities that do not use statistics. + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class NoStatsPage extends Page { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const XSI_TYPE = "NoStatsPage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalNumEntries = null, $PageType = null) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } + + } +} + +if (!class_exists("ProductServiceServiceGet", false)) { + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the {@link ProductService}s that meet the criteria set in the given selector. Only a + * limited number of {@link ProductService}s are returned. + * + * @param selector the selector specifying the product services to return + * @return list of product services identified by the selector + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductServiceServiceGet { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($selector = null) { + $this->selector = $selector; + } + + } +} + +if (!class_exists("ProductServiceServiceGetResponse", false)) { + /** + * + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductServiceServiceGetResponse { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductServicePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201309"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("ProductServicePage", false)) { + /** + * Contains a page of {@link ProductService}s with no stats. + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductServicePage extends NoStatsPage { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const XSI_TYPE = "ProductServicePage"; + + /** + * @access public + * @var ProductService[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($entries = null) { + parent::__construct(); + $this->entries = $entries; + } + + } +} + +if (!class_exists("ProductServiceService", false)) { + /** + * ProductServiceService + * @package Google_Api_Ads_AdWords_v201309 + * @subpackage v201309 + */ + class ProductServiceService extends AdWordsSoapClient { + + const SERVICE_NAME = "ProductServiceService"; + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201309"; + const ENDPOINT = "https://adwords.google.com/api/adwords/express/v201309/ProductServiceService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201309/ProductServiceService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Criterion" => "Criterion", + "CriterionParameter" => "CriterionParameter", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "Webpage" => "Webpage", + "WebpageCondition" => "WebpageCondition", + "WebpageParameter" => "WebpageParameter", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NotWhitelistedError.Reason" => "NotWhitelistedErrorReason", + "NullError.Reason" => "NullErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "WebpageConditionOperand" => "WebpageConditionOperand", + "ProductService" => "ProductService", + "ProductServicePage" => "ProductServicePage", + "NoStatsPage" => "NoStatsPage", + "get" => "ProductServiceServiceGet", + "getResponse" => "ProductServiceServiceGetResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the {@link ProductService}s that meet the criteria set in the given selector. Only a + * limited number of {@link ProductService}s are returned. + * + * @param selector the selector specifying the product services to return + * @return list of product services identified by the selector + */ + public function get($selector) { + $args = new ProductServiceServiceGet($selector); + $result = $this->__soapCall("get", array($args)); + return $result->rval; + } + } +} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201309/PromotionService.php b/src/Google/Api/Ads/AdWords/v201309/PromotionService.php index 7ab7ec9bd..57b8ca646 100755 --- a/src/Google/Api/Ads/AdWords/v201309/PromotionService.php +++ b/src/Google/Api/Ads/AdWords/v201309/PromotionService.php @@ -4918,6 +4918,12 @@ class ProductService extends Criterion { */ public $text; + /** + * @access public + * @var string + */ + public $locale; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4934,9 +4940,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($text = null, $id = null, $type = null, $CriterionType = null) { + public function __construct($text = null, $locale = null, $id = null, $type = null, $CriterionType = null) { parent::__construct(); $this->text = $text; + $this->locale = $locale; $this->id = $id; $this->type = $type; $this->CriterionType = $CriterionType; diff --git a/src/Google/Api/Ads/AdWords/v201402/BudgetOrderService.php b/src/Google/Api/Ads/AdWords/v201402/BudgetOrderService.php index 811652792..9783c7cc5 100755 --- a/src/Google/Api/Ads/AdWords/v201402/BudgetOrderService.php +++ b/src/Google/Api/Ads/AdWords/v201402/BudgetOrderService.php @@ -1074,6 +1074,52 @@ public function __construct($reason = null, $fieldPath = null, $trigger = null, } } +if (!class_exists("NotWhitelistedError", false)) { + /** + * Indicates that the customer is not whitelisted for accessing the API. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NotWhitelistedError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "NotWhitelistedError"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + if (!class_exists("NullError", false)) { /** * Errors associated with violation of a NOT NULL check. @@ -4749,6 +4795,7 @@ class BudgetOrderService extends AdWordsSoapClient { "Money" => "Money", "NewEntityCreationError" => "NewEntityCreationError", "NotEmptyError" => "NotEmptyError", + "NotWhitelistedError" => "NotWhitelistedError", "NullError" => "NullError", "NumberValue" => "NumberValue", "Operation" => "Operation", diff --git a/src/Google/Api/Ads/AdWords/v201402/CampaignFeedService.php b/src/Google/Api/Ads/AdWords/v201402/CampaignFeedService.php index 31b0ff05f..922463690 100755 --- a/src/Google/Api/Ads/AdWords/v201402/CampaignFeedService.php +++ b/src/Google/Api/Ads/AdWords/v201402/CampaignFeedService.php @@ -3525,6 +3525,7 @@ public function __construct($rval = null) { * This field must not contain {@code null} elements. * This field must contain at least one element. * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. * * * @@ -4212,6 +4213,7 @@ public function get($selector) { * This field must not contain {@code null} elements. * This field must contain at least one element. * This field is required and should not be {@code null}. + * The following {@link Operator}s are supported: ADD, SET, REMOVE. * * * diff --git a/src/Google/Api/Ads/AdWords/v201402/ProductServiceService.php b/src/Google/Api/Ads/AdWords/v201402/ProductServiceService.php new file mode 100755 index 000000000..469a21750 --- /dev/null +++ b/src/Google/Api/Ads/AdWords/v201402/ProductServiceService.php @@ -0,0 +1,4036 @@ +The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ApplicationException", false)) { + /** + * Base class for exceptions. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ApplicationException { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($message = null, $ApplicationExceptionType = null) { + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("AuthenticationError", false)) { + /** + * Errors returned when Authentication failed. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class AuthenticationError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "AuthenticationError"; + + /** + * @access public + * @var tnsAuthenticationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + 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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class AuthorizationError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "AuthorizationError"; + + /** + * @access public + * @var tnsAuthorizationErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + 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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ClientTermsError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ClientTermsError"; + + /** + * @access public + * @var tnsClientTermsErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Criterion", false)) { + /** + * Represents a criterion (such as a keyword, placement, or vertical). + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Criterion"; + + /** + * @access public + * @var integer + */ + public $id; + + /** + * @access public + * @var tnsCriterionType + */ + public $type; + + /** + * @access public + * @var string + */ + public $CriterionType; + private $_parameterMap = array( + "Criterion.Type" => "CriterionType", + ); + + /** + * 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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($id = null, $type = null, $CriterionType = null) { + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("DatabaseError", false)) { + /** + * Errors that are thrown due to a database access problem. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DatabaseError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DatabaseError"; + + /** + * @access public + * @var tnsDatabaseErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Date", false)) { + /** + * Represents a date. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Date { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Date"; + + /** + * @access public + * @var integer + */ + public $year; + + /** + * @access public + * @var integer + */ + public $month; + + /** + * @access public + * @var integer + */ + public $day; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($year = null, $month = null, $day = null) { + $this->year = $year; + $this->month = $month; + $this->day = $day; + } + + } +} + +if (!class_exists("DateError", false)) { + /** + * Errors associated with invalid dates and date ranges. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DateError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DateError"; + + /** + * @access public + * @var tnsDateErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DateRange { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DateRange"; + + /** + * @access public + * @var Date + */ + public $min; + + /** + * @access public + * @var Date + */ + public $max; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($min = null, $max = null) { + $this->min = $min; + $this->max = $max; + } + + } +} + +if (!class_exists("DistinctError", false)) { + /** + * Errors related to distinct ids or content. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DistinctError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DistinctError"; + + /** + * @access public + * @var tnsDistinctErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("IdError", false)) { + /** + * Errors associated with the ids. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class IdError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "IdError"; + + /** + * @access public + * @var tnsIdErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("InternalApiError", false)) { + /** + * Indicates that a server-side error has occured. {@code InternalApiError}s + * are generally not the result of an invalid request or message sent by the + * client. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class InternalApiError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "InternalApiError"; + + /** + * @access public + * @var tnsInternalApiErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Keyword", false)) { + /** + * Represents a keyword. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Keyword extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Keyword"; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var tnsKeywordMatchType + */ + public $matchType; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($text = null, $matchType = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->text = $text; + $this->matchType = $matchType; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("MobileAppCategory", false)) { + /** + * Represents the mobile app category to be targeted. + * View the complete list of + * available mobile app categories. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class MobileAppCategory extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "MobileAppCategory"; + + /** + * @access public + * @var integer + */ + public $mobileAppCategoryId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($mobileAppCategoryId = null, $displayName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->mobileAppCategoryId = $mobileAppCategoryId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("MobileApplication", false)) { + /** + * Represents the mobile application to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class MobileApplication extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "MobileApplication"; + + /** + * @access public + * @var string + */ + public $appId; + + /** + * @access public + * @var string + */ + public $displayName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($appId = null, $displayName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->appId = $appId; + $this->displayName = $displayName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("NotEmptyError", false)) { + /** + * Errors corresponding with violation of a NOT EMPTY check. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NotEmptyError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "NotEmptyError"; + + /** + * @access public + * @var tnsNotEmptyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("NullError", false)) { + /** + * Errors associated with violation of a NOT NULL check. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NullError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "NullError"; + + /** + * @access public + * @var tnsNullErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("OrderBy", false)) { + /** + * Specifies how the resulting information should be sorted. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class OrderBy { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($field = null, $sortOrder = null) { + $this->field = $field; + $this->sortOrder = $sortOrder; + } + + } +} + +if (!class_exists("Page", false)) { + /** + * Contains the results from a get call. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Page { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Page"; + + /** + * @access public + * @var integer + */ + public $totalNumEntries; + + /** + * @access public + * @var string + */ + public $PageType; + private $_parameterMap = array( + "Page.Type" => "PageType", + ); + + /** + * 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 (!isset($this->_parameterMap[$var])) { + return null; + } + 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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalNumEntries = null, $PageType = null) { + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } + + } +} + +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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Paging { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($startIndex = null, $numberResults = null) { + $this->startIndex = $startIndex; + $this->numberResults = $numberResults; + } + + } +} + +if (!class_exists("Placement", false)) { + /** + * A placement used for modifying bids for sites when targeting the content + * network. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Placement extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Placement"; + + /** + * @access public + * @var string + */ + public $url; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($url = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->url = $url; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("Predicate", false)) { + /** + * Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Predicate { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($field = null, $operator = null, $values = null) { + $this->field = $field; + $this->operator = $operator; + $this->values = $values; + } + + } +} + +if (!class_exists("Product", false)) { + /** + * Product targeting criteria, represents a filter for products in the + * product feed that is defined by the advertiser. The criteria is used to + * determine the products in a Merchant Center account to be used with the + * ProductAds in the AdGroup. This criteria is available only to some advertisers. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Product extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Product"; + + /** + * @access public + * @var ProductCondition[] + */ + public $conditions; + + /** + * @access public + * @var string + */ + public $text; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($conditions = null, $text = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->conditions = $conditions; + $this->text = $text; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("ProductCondition", false)) { + /** + * Conditions to filter the products defined in product feed for targeting. + * The condition is defined as operand=argument. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductCondition { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ProductCondition"; + + /** + * @access public + * @var string + */ + public $argument; + + /** + * @access public + * @var ProductConditionOperand + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($argument = null, $operand = null) { + $this->argument = $argument; + $this->operand = $operand; + } + + } +} + +if (!class_exists("ProductConditionOperand", false)) { + /** + * Attribute for the product condition. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductConditionOperand { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ProductConditionOperand"; + + /** + * @access public + * @var string + */ + public $operand; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($operand = null) { + $this->operand = $operand; + } + + } +} + +if (!class_exists("QuotaCheckError", false)) { + /** + * Encapsulates the errors thrown during developer quota checks. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class QuotaCheckError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "QuotaCheckError"; + + /** + * @access public + * @var tnsQuotaCheckErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RangeError", false)) { + /** + * A list of all errors associated with the Range constraint. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RangeError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RangeError"; + + /** + * @access public + * @var tnsRangeErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RateExceededError", false)) { + /** + * Signals that a call failed because a measured rate exceeded. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RateExceededError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RateExceededError"; + + /** + * @access public + * @var tnsRateExceededErrorReason + */ + public $reason; + + /** + * @access public + * @var string + */ + public $rateName; + + /** + * @access public + * @var string + */ + public $rateScope; + + /** + * @access public + * @var integer + */ + public $retryAfterSeconds; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $rateName = null, $rateScope = null, $retryAfterSeconds = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->rateName = $rateName; + $this->rateScope = $rateScope; + $this->retryAfterSeconds = $retryAfterSeconds; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("ReadOnlyError", false)) { + /** + * Errors from attempting to write to read-only fields. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ReadOnlyError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ReadOnlyError"; + + /** + * @access public + * @var tnsReadOnlyErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RejectedError", false)) { + /** + * Indicates that a field was rejected due to compatibility issues. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RejectedError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RejectedError"; + + /** + * @access public + * @var tnsRejectedErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RequestError", false)) { + /** + * Encapsulates the generic errors thrown when there's an error with user + * request. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RequestError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RequestError"; + + /** + * @access public + * @var tnsRequestErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("RequiredError", false)) { + /** + * Errors due to missing required field. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RequiredError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RequiredError"; + + /** + * @access public + * @var tnsRequiredErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("Selector", false)) { + /** + * A generic selector to specify the type of information to return. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Selector { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($fields = null, $predicates = null, $dateRange = null, $ordering = null, $paging = null) { + $this->fields = $fields; + $this->predicates = $predicates; + $this->dateRange = $dateRange; + $this->ordering = $ordering; + $this->paging = $paging; + } + + } +} + +if (!class_exists("SelectorError", false)) { + /** + * Represents possible error codes for {@link Selector}. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SelectorError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SelectorError"; + + /** + * @access public + * @var tnsSelectorErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("SizeLimitError", false)) { + /** + * Indicates that the number of entries in the request or response exceeds the system limit. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SizeLimitError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SizeLimitError"; + + /** + * @access public + * @var tnsSizeLimitErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("SoapRequestHeader", false)) { + /** + * Defines the required and optional elements within the header of a SOAP request. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SoapRequestHeader { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SoapHeader"; + + /** + * @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 self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($clientCustomerId = null, $developerToken = null, $userAgent = null, $validateOnly = null, $partialFailure = null) { + $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. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SoapResponseHeader { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "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; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($requestId = null, $serviceName = null, $methodName = null, $operations = null, $responseTime = null) { + $this->requestId = $requestId; + $this->serviceName = $serviceName; + $this->methodName = $methodName; + $this->operations = $operations; + $this->responseTime = $responseTime; + } + + } +} + +if (!class_exists("StringLengthError", false)) { + /** + * Errors associated with the length of the given string being + * out of bounds. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class StringLengthError extends ApiError { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "StringLengthError"; + + /** + * @access public + * @var tnsStringLengthErrorReason + */ + public $reason; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null) { + parent::__construct(); + $this->reason = $reason; + $this->fieldPath = $fieldPath; + $this->trigger = $trigger; + $this->errorString = $errorString; + $this->ApiErrorType = $ApiErrorType; + } + + } +} + +if (!class_exists("CriterionUserInterest", false)) { + /** + * User Interest represents a particular interest-based vertical to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class CriterionUserInterest extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "CriterionUserInterest"; + + /** + * @access public + * @var integer + */ + public $userInterestId; + + /** + * @access public + * @var string + */ + public $userInterestName; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userInterestId = null, $userInterestName = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->userInterestId = $userInterestId; + $this->userInterestName = $userInterestName; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("CriterionUserList", false)) { + /** + * UserList - represents a user list that is defined by the advertiser to be targeted. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class CriterionUserList extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "CriterionUserList"; + + /** + * @access public + * @var integer + */ + public $userListId; + + /** + * @access public + * @var string + */ + public $userListName; + + /** + * @access public + * @var tnsCriterionUserListMembershipStatus + */ + public $userListMembershipStatus; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($userListId = null, $userListName = null, $userListMembershipStatus = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->userListId = $userListId; + $this->userListName = $userListName; + $this->userListMembershipStatus = $userListMembershipStatus; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("Vertical", false)) { + /** + * Use verticals to target or exclude placements in the Google Display Network + * based on the category into which the placement falls (for example, "Pets & + * Animals/Pets/Dogs"). + * View the complete list + * of available vertical categories. + * This is enabled for AdX. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class Vertical extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Vertical"; + + /** + * @access public + * @var integer + */ + public $verticalId; + + /** + * @access public + * @var integer + */ + public $verticalParentId; + + /** + * @access public + * @var string[] + */ + public $path; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($verticalId = null, $verticalParentId = null, $path = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->verticalId = $verticalId; + $this->verticalParentId = $verticalParentId; + $this->path = $path; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("AuthenticationErrorReason", false)) { + /** + * The single reason for the authentication failure. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class AuthenticationErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "AuthenticationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("AuthorizationErrorReason", false)) { + /** + * The reasons for the database error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class AuthorizationErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "AuthorizationError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ClientTermsErrorReason", false)) { + /** + * Enums for the various reasons an error can be thrown as a result of + * ClientTerms violation. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ClientTermsErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ClientTermsError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CriterionType", false)) { + /** + * The types of criteria. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class CriterionType { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Criterion.Type"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DatabaseErrorReason", false)) { + /** + * The reasons for the database error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DatabaseErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DatabaseError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DateErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DateErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DateError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("DistinctErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class DistinctErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "DistinctError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("IdErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class IdErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "IdError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("InternalApiErrorReason", false)) { + /** + * The single reason for the internal API error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class InternalApiErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "InternalApiError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("KeywordMatchType", false)) { + /** + * Match type of a keyword. i.e. the way we match a keyword string with + * search queries. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class KeywordMatchType { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "KeywordMatchType"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NotEmptyErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NotEmptyErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "NotEmptyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("NullErrorReason", false)) { + /** + * The reasons for the validation error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NullErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "NullError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("PredicateOperator", false)) { + /** + * Defines the valid set of operators. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class PredicateOperator { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "Predicate.Operator"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("QuotaCheckErrorReason", false)) { + /** + * Enums for all the reasons an error can be thrown to the user during + * billing quota checks. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class QuotaCheckErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "QuotaCheckError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RangeErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RangeErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RangeError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RateExceededErrorReason", false)) { + /** + * The reason for the rate exceeded error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RateExceededErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RateExceededError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ReadOnlyErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ReadOnlyErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ReadOnlyError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RejectedErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RejectedErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RejectedError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequestErrorReason", false)) { + /** + * Error reason is unknown. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RequestErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RequestError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("RequiredErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class RequiredErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "RequiredError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SelectorErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SelectorErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SelectorError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SizeLimitErrorReason", false)) { + /** + * The reasons for Ad Scheduling errors. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SizeLimitErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SizeLimitError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("SortOrder", false)) { + /** + * Possible orders of sorting. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class SortOrder { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "SortOrder"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("StringLengthErrorReason", false)) { + /** + * The reasons for the target error. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class StringLengthErrorReason { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "StringLengthError.Reason"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("CriterionUserListMembershipStatus", false)) { + /** + * Membership status of the user list. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class CriterionUserListMembershipStatus { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "CriterionUserList.MembershipStatus"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct() { + } + + } +} + +if (!class_exists("ProductService", false)) { + /** + * A {@link Criterion} which describes the product or service an Ad is targeting. A product and + * service criterion can be used to derive a group of {@link KeywordSet} by AdWords Express. + * This is disabled for AdX when it is contained within Operators: ADD, SET. + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductService extends Criterion { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const XSI_TYPE = "ProductService"; + + /** + * @access public + * @var string + */ + public $text; + + /** + * @access public + * @var string + */ + public $locale; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($text = null, $locale = null, $id = null, $type = null, $CriterionType = null) { + parent::__construct(); + $this->text = $text; + $this->locale = $locale; + $this->id = $id; + $this->type = $type; + $this->CriterionType = $CriterionType; + } + + } +} + +if (!class_exists("NoStatsPage", false)) { + /** + * Base class for Get results for a page of entities that do not use statistics. + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class NoStatsPage extends Page { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const XSI_TYPE = "NoStatsPage"; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($totalNumEntries = null, $PageType = null) { + parent::__construct(); + $this->totalNumEntries = $totalNumEntries; + $this->PageType = $PageType; + } + + } +} + +if (!class_exists("ProductServiceServiceGet", false)) { + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the {@link ProductService}s that meet the criteria set in the given selector. Only a + * limited number of {@link ProductService}s are returned. + * + * @param selector the selector specifying the product services to return + * @return list of product services identified by the selector + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductServiceServiceGet { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const XSI_TYPE = ""; + + /** + * @access public + * @var Selector + */ + public $selector; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($selector = null) { + $this->selector = $selector; + } + + } +} + +if (!class_exists("ProductServiceServiceGetResponse", false)) { + /** + * + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductServiceServiceGetResponse { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const XSI_TYPE = ""; + + /** + * @access public + * @var ProductServicePage + */ + public $rval; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($rval = null) { + $this->rval = $rval; + } + + } +} + +if (!class_exists("ApiException", false)) { + /** + * Exception class for holding a list of service errors. + * + * + * + * The API error base class that provides details about an error that occurred + * while processing a service request. + * + *

The OGNL field path is provided for parsers to identify the request data + * element that may have caused the error.

+ * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ApiException extends ApplicationException { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/cm/v201402"; + const XSI_TYPE = "ApiException"; + + /** + * @access public + * @var ApiError[] + */ + public $errors; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($errors = null, $message = null, $ApplicationExceptionType = null) { + parent::__construct(); + $this->errors = $errors; + $this->message = $message; + $this->ApplicationExceptionType = $ApplicationExceptionType; + } + + } +} + +if (!class_exists("ProductServicePage", false)) { + /** + * Contains a page of {@link ProductService}s with no stats. + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductServicePage extends NoStatsPage { + + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const XSI_TYPE = "ProductServicePage"; + + /** + * @access public + * @var ProductService[] + */ + public $entries; + + /** + * Gets the namesapce of this class + * @return the namespace of this class + */ + public function getNamespace() { + return self::WSDL_NAMESPACE; + } + + /** + * Gets the xsi:type name of this class + * @return the xsi:type name of this class + */ + public function getXsiTypeName() { + return self::XSI_TYPE; + } + + public function __construct($entries = null) { + parent::__construct(); + $this->entries = $entries; + } + + } +} + +if (!class_exists("ProductServiceService", false)) { + /** + * ProductServiceService + * @package Google_Api_Ads_AdWords_v201402 + * @subpackage v201402 + */ + class ProductServiceService extends AdWordsSoapClient { + + const SERVICE_NAME = "ProductServiceService"; + const WSDL_NAMESPACE = "https://adwords.google.com/api/adwords/express/v201402"; + const ENDPOINT = "https://adwords.google.com/api/adwords/express/v201402/ProductServiceService"; + + /** + * The endpoint of the service + * @var string + */ + public static $endpoint = "https://adwords.google.com/api/adwords/express/v201402/ProductServiceService"; + /** + * Default class map for wsdl=>php + * @access private + * @var array + */ + public static $classmap = array( + "ApiError" => "ApiError", + "ApiException" => "ApiException", + "ApplicationException" => "ApplicationException", + "AuthenticationError" => "AuthenticationError", + "AuthorizationError" => "AuthorizationError", + "ClientTermsError" => "ClientTermsError", + "Criterion" => "Criterion", + "DatabaseError" => "DatabaseError", + "Date" => "Date", + "DateError" => "DateError", + "DateRange" => "DateRange", + "DistinctError" => "DistinctError", + "IdError" => "IdError", + "InternalApiError" => "InternalApiError", + "Keyword" => "Keyword", + "MobileAppCategory" => "MobileAppCategory", + "MobileApplication" => "MobileApplication", + "NotEmptyError" => "NotEmptyError", + "NullError" => "NullError", + "OrderBy" => "OrderBy", + "Page" => "Page", + "Paging" => "Paging", + "Placement" => "Placement", + "Predicate" => "Predicate", + "Product" => "Product", + "ProductCondition" => "ProductCondition", + "ProductConditionOperand" => "ProductConditionOperand", + "QuotaCheckError" => "QuotaCheckError", + "RangeError" => "RangeError", + "RateExceededError" => "RateExceededError", + "ReadOnlyError" => "ReadOnlyError", + "RejectedError" => "RejectedError", + "RequestError" => "RequestError", + "RequiredError" => "RequiredError", + "Selector" => "Selector", + "SelectorError" => "SelectorError", + "SizeLimitError" => "SizeLimitError", + "SoapHeader" => "SoapRequestHeader", + "SoapResponseHeader" => "SoapResponseHeader", + "StringLengthError" => "StringLengthError", + "CriterionUserInterest" => "CriterionUserInterest", + "CriterionUserList" => "CriterionUserList", + "Vertical" => "Vertical", + "AuthenticationError.Reason" => "AuthenticationErrorReason", + "AuthorizationError.Reason" => "AuthorizationErrorReason", + "ClientTermsError.Reason" => "ClientTermsErrorReason", + "Criterion.Type" => "CriterionType", + "DatabaseError.Reason" => "DatabaseErrorReason", + "DateError.Reason" => "DateErrorReason", + "DistinctError.Reason" => "DistinctErrorReason", + "IdError.Reason" => "IdErrorReason", + "InternalApiError.Reason" => "InternalApiErrorReason", + "KeywordMatchType" => "KeywordMatchType", + "NotEmptyError.Reason" => "NotEmptyErrorReason", + "NullError.Reason" => "NullErrorReason", + "Predicate.Operator" => "PredicateOperator", + "QuotaCheckError.Reason" => "QuotaCheckErrorReason", + "RangeError.Reason" => "RangeErrorReason", + "RateExceededError.Reason" => "RateExceededErrorReason", + "ReadOnlyError.Reason" => "ReadOnlyErrorReason", + "RejectedError.Reason" => "RejectedErrorReason", + "RequestError.Reason" => "RequestErrorReason", + "RequiredError.Reason" => "RequiredErrorReason", + "SelectorError.Reason" => "SelectorErrorReason", + "SizeLimitError.Reason" => "SizeLimitErrorReason", + "SortOrder" => "SortOrder", + "StringLengthError.Reason" => "StringLengthErrorReason", + "CriterionUserList.MembershipStatus" => "CriterionUserListMembershipStatus", + "ProductService" => "ProductService", + "ProductServicePage" => "ProductServicePage", + "NoStatsPage" => "NoStatsPage", + "get" => "ProductServiceServiceGet", + "getResponse" => "ProductServiceServiceGetResponse", + ); + + + /** + * Constructor using wsdl location and options array + * @param string $wsdl WSDL location for this service + * @param array $options Options for the SoapClient + */ + public function __construct($wsdl, $options, $user) { + $options["classmap"] = self::$classmap; + parent::__construct($wsdl, $options, $user, self::SERVICE_NAME, + self::WSDL_NAMESPACE); + } + /** + * This field is required and should not be {@code null}. + * + * + * + * Retrieves the {@link ProductService}s that meet the criteria set in the given selector. Only a + * limited number of {@link ProductService}s are returned. + * + * @param selector the selector specifying the product services to return + * @return list of product services identified by the selector + */ + public function get($selector) { + $args = new ProductServiceServiceGet($selector); + $result = $this->__soapCall("get", array($args)); + return $result->rval; + } + } +} \ No newline at end of file diff --git a/src/Google/Api/Ads/AdWords/v201402/PromotionService.php b/src/Google/Api/Ads/AdWords/v201402/PromotionService.php index 9e03194b8..3a95626f7 100755 --- a/src/Google/Api/Ads/AdWords/v201402/PromotionService.php +++ b/src/Google/Api/Ads/AdWords/v201402/PromotionService.php @@ -4537,6 +4537,12 @@ class ProductService extends Criterion { */ public $text; + /** + * @access public + * @var string + */ + public $locale; + /** * Gets the namesapce of this class * @return the namespace of this class @@ -4553,9 +4559,10 @@ public function getXsiTypeName() { return self::XSI_TYPE; } - public function __construct($text = null, $id = null, $type = null, $CriterionType = null) { + public function __construct($text = null, $locale = null, $id = null, $type = null, $CriterionType = null) { parent::__construct(); $this->text = $text; + $this->locale = $locale; $this->id = $id; $this->type = $type; $this->CriterionType = $CriterionType; diff --git a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php index 214814208..40746e1ad 100755 --- a/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php +++ b/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php @@ -405,7 +405,7 @@ public function GetLastFaultMessage() { */ protected function PrepareRequest($request, array $arguments, array $headers) { - $addXsiTypes = FALSE; + $addXsiTypes = $this->user->GetForceAddXsiTypes(); $removeEmptyElements = FALSE; $replaceReferences = FALSE; @@ -413,9 +413,17 @@ protected function PrepareRequest($request, array $arguments, trigger_error('The minimum required version of this client library' . ' is 5.2.0.', E_USER_ERROR); } - if (version_compare(PHP_VERSION, '5.2.6', '<') || - (PHP_OS == 'Darwin' && version_compare(PHP_VERSION, '5.3.0', '<'))) { - $addXsiTypes = TRUE; + + // If FORCE_ADD_XSI_TYPES was unset, then set it based on PHP version + if ($addXsiTypes === null) { + if (version_compare(PHP_VERSION, '5.2.6', '<') || + (PHP_OS == 'Darwin' && version_compare(PHP_VERSION, '5.3.0', '<'))) { + $addXsiTypes = TRUE; + } else { + // If FORCE_ADD_XSI_TYPES was not set, and we didn't find an applicable + // version, then set it to FALSE by default. + $addXsiTypes = FALSE; + } } $removeEmptyElements = version_compare(PHP_VERSION, '5.2.3', '<'); diff --git a/src/Google/Api/Ads/Common/Lib/AdsUser.php b/src/Google/Api/Ads/Common/Lib/AdsUser.php index ab829e484..ff93a9df6 100755 --- a/src/Google/Api/Ads/Common/Lib/AdsUser.php +++ b/src/Google/Api/Ads/Common/Lib/AdsUser.php @@ -51,6 +51,7 @@ abstract class AdsUser { private $soapCompressionLevel; private $wsdlCache; private $forceHttpVersion; + private $forceAddXsiTypes; private $authServer; private $oauth2Info; private $oauth2Handler; @@ -235,6 +236,11 @@ public function LoadSettings($settingsIniPath, $defaultVersion, 'FORCE_HTTP_VERSION'); $this->forceHttpVersion = $forceHttpVersion === null ? null : (float) $forceHttpVersion; + $forceAddXsiTypes = $this->GetSetting($settingsIni, 'SOAP', + 'FORCE_ADD_XSI_TYPES'); + $this->forceAddXsiTypes = $forceAddXsiTypes === null ? null : + (bool) $forceAddXsiTypes; + // Proxy settings. $proxyHost = $this->GetSetting($settingsIni, 'PROXY', 'HOST'); @@ -384,6 +390,14 @@ public function GetForceHttpVersion() { return $this->forceHttpVersion; } + /** + * Gets the setting of whether or not to add XSI types in the SOAP payload. + * @return bool whether or not to add XSI types in the SOAP payload + */ + public function GetForceAddXsiTypes() { + return $this->forceAddXsiTypes; + } + /** * Gets the server used for authentication. * @return string the server used for authentiation diff --git a/src/Google/Api/Ads/Common/Lib/build.ini b/src/Google/Api/Ads/Common/Lib/build.ini index 8d66b8a38..373120f85 100755 --- a/src/Google/Api/Ads/Common/Lib/build.ini +++ b/src/Google/Api/Ads/Common/Lib/build.ini @@ -1,3 +1,3 @@ -LIB_VERSION = 5.2.2 +LIB_VERSION = 5.2.3 LIB_NAME = "Common-PHP" diff --git a/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php index ede172d4a..6f8a520e5 100755 --- a/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php +++ b/src/Google/Api/Ads/Dfp/Util/DateTimeUtils.php @@ -80,7 +80,9 @@ public static function GetDateTime(DfpDateTime $dfpDateTime, */ public static function ToDfpDateTime(DateTime $dateTime) { $result = new DfpDateTime(); - $result->date = new Date(); + if (class_exists('Date', false)) { + $result->date = new Date(); + } $result->date->year = (int) $dateTime->format('Y'); $result->date->month = (int) $dateTime->format('m'); $result->date->day = (int) $dateTime->format('d'); diff --git a/src/Google/Api/Ads/Dfp/Util/Pql.php b/src/Google/Api/Ads/Dfp/Util/Pql.php index 7cb164e22..5d7a32362 100755 --- a/src/Google/Api/Ads/Dfp/Util/Pql.php +++ b/src/Google/Api/Ads/Dfp/Util/Pql.php @@ -27,6 +27,7 @@ * @author Vincent Tsao */ require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; +require_once 'Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php'; /** * A utility class for handling PQL objects. @@ -41,6 +42,42 @@ class Pql { */ private function __construct() {} + /** + * Creates a {@link Value} from the value i.e. a {@link TextValue} for a + * value of type {@code String}, {@link BooleanValue} for type + * {@code Boolean}, {@link NumberValue} for type {@code Double}, + * {@code Long}, or {@code Integer}, {@link DateTimeValue} for type + * {@link DateTime}, and {@link DateValue} for type + * {@link Date}. If the value is a {@code Value}, the value is returned. + * If the value is {@code null}, an empty {@link TextValue} is returned. + * + * @param mixed $value the value to convert + * @return Value the constructed value of the appropriate type + * @throws InvalidArgumentException if value cannot be converted + */ + public static function CreateValue($value) { + if ($value instanceof Value) { + return $value; + } else if ($value === null) { + return new TextValue(); + } else { + if (is_bool($value)) { + return new BooleanValue($value); + } else if (is_float($value) || is_int($value)) { + return new NumberValue($value); + } else if (is_string($value)) { + return new TextValue($value); + } else if ($value instanceof DfpDateTime) { + return new DateTimeValue($value); + } else if (class_exists('Date', false) && $value instanceof Date) { + return new DateValue($value); + } else { + throw new InvalidArgumentException(sprintf("Unsupported value type " + . "[%s]", get_class($value))); + } + } + } + /** * Creates a String from the Value. * diff --git a/src/Google/Api/Ads/Dfp/Util/StatementBuilder.php b/src/Google/Api/Ads/Dfp/Util/StatementBuilder.php new file mode 100755 index 000000000..afe9d9962 --- /dev/null +++ b/src/Google/Api/Ads/Dfp/Util/StatementBuilder.php @@ -0,0 +1,290 @@ + + * Typical usage is: + *
+ * $statementBuilder = new StatementBuilder()
+ *     ->Where("lastModifiedDateTime > :yesterday AND type = :type")
+ *     ->OrderBy("name DESC")
+ *     ->Limit(200)
+ *     ->Offset(20)
+ *     ->WithBindVariableValue("yesterday",
+ *         date(DateTimeUtils::$DFP_DATE_TIME_STRING_FORMAT,
+ *             strtotime('-1 day'))
+ *     ->WithBindVariableValue("type", "Type")
+ *
+ * $statement = $statementBuilder->ToStatement();
+ * //...
+ * $statementBuilder->IncreaseOffsetBy(20);
+ * $statement = $statementBuilder->ToStatement();
+ * 
+ * + * @package GoogleApiAdsDfp + * @subpackage Util + */ +class StatementBuilder { + + const SUGGESTED_PAGE_LIMIT = 500; + + const SELECT = "SELECT"; + const FROM = "FROM"; + const WHERE = "WHERE"; + const LIMIT = "LIMIT"; + const OFFSET = "OFFSET"; + const ORDER_BY = "ORDER BY"; + + private $select; + private $from; + private $where; + private $limit; + private $orderBy; + + private $valueMap; + + /** + * Constructs a new instance of this statement builder. + */ + public function __construct() { + $this->valueMap = array(); + } + + /** + * Adds a value to the statement in the form of a {@code Value}. + * + * @param string $key the value key + * @param mixed $value the value either as a primitive, which will be + * converted to a PQL Value object, or a PQL Value object + * @return StatementBuilder a reference to this object + */ + public function WithBindVariableValue($key, $value) { + $this->valueMap[$key] = Pql::CreateValue($value); + return $this; + } + + /** + * Gets the {@link Statement} representing the state of this statement + * builder. + * + * @return Statement the {@link Statement} + */ + public function ToStatement() { + $statement = new Statement(); + $statement->query = $this->buildQuery(); + $statement->values = MapUtils::GetMapEntries($this->GetBindVariableMap()); + return $statement; + } + + /** + * Removes the {@code keyword} from the {@code clause} if present. Will remove + * {@code keyword + " "}. + * + * @param string $clause the clause to remove from + * @param string $keyword the keyword to remove + * @return string a new string with the keyword + " " removed + */ + private static function removeKeyword($clause, $keyword) { + $keyword .= ' '; + if (stristr(substr($clause, 0, strlen($keyword)), $keyword) !== false) { + return substr($clause, strlen($keyword)); + } + return $clause; + } + + /** + * Sets the statement SELECT clause in the form of "a,b" or "*". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "SELECT " keyword will be + * ignored. + * + * @param string $columns the statement select clause without "SELECT" + * @return StatementBuilder a reference to this object + */ + public function Select($columns) { + $columns = self::removeKeyword($columns, self::SELECT); + $this->select = $columns; + return $this; + } + + /** + * Sets the statement FROM clause in the form of "table". + * Only necessary for statements being sent to the + * {@code PublisherQueryLanguageService}. The "FROM " keyword will be + * ignored. + * + * @param string $table the statement from clause without "FROM" + * @return StatementBuilder a reference to this object + */ + public function From($table) { + $table = self::removeKeyword($table, self::FROM); + $this->from = $table; + return $this; + } + + /** + * Sets the statement WHERE clause in the form of

+ * "WHERE <condition> {[AND | OR] <condition> ...}" + *

+ * e.g. "a = b OR b = c". The "WHERE " keyword will be ignored. + * + * @param string $conditions the statement query without "WHERE" + * @return StatementBuilder a reference to this object + */ + public function Where($conditions) { + $conditions = self::removeKeyword($conditions, self::WHERE); + $this->where = $conditions; + return $this; + } + + /** + * Sets the statement LIMIT clause in the form of

+ * "LIMIT <count>" + *

+ * e.g. 1000. + * + * @param int $count the statement limit + * @return StatementBuilder a reference to this object + */ + public function Limit($count) { + $this->limit = $count; + return $this; + } + + /** + * Sets the statement OFFSET clause in the form of

+ * "OFFSET <count>" + *

+ * e.g. 200. + * + * @param int $count the statement offset + * @return StatementBuilder a reference to this object + */ + public function Offset($count) { + $this->offset = $count; + return $this; + } + + /** + * Increases the offset by the {@code amount}. + * + * @param int $amount the amount to increase the offset + * @return StatementBuilder a reference to this object + */ + public function IncreaseOffsetBy($amount) { + $this->offset += $amount; + return $this; + } + + /** + * Gets the current offset. + * @return int the current offset + */ + public function GetOffset() { + return $this->offset; + } + + /** + * Removes the limit and offset from the query. + * @return StatementBuilder a reference to this object + */ + public function RemoveLimitAndOffset() { + $this->offset = null; + $this->limit = null; + return $this; + } + + /** + * Sets the statement ORDER BY clause in the form of

+ * "ORDER BY <property> [ASC | DESC]" + *

+ * e.g. "type ASC, lastModifiedDateTime DESC". The "ORDER BY " keyword will be + * ignored. + * + * @param string $orderBy the statement order by without "ORDER BY" + * @return StatementBuilder a reference to this object + */ + public function OrderBy($orderBy) { + $orderBy = self::removeKeyword($orderBy, self::ORDER_BY); + $this->orderBy = $orderBy; + return $this; + } + + /** + * Returns the key to value map. + */ + public function GetBindVariableMap() { + return $this->valueMap; + } + + /** + * Checks that the query is valid. + * @throws ValidationException if the query is invalid + */ + private function validateQuery() { + if (isset($this->offset) && !isset($this->limit)) { + throw new ValidationException(self::OFFSET, $this->offset, + 'OFFSET cannot be set if LIMIT is not set.'); + } + } + + /** + * Builds the query from the clauses. + * @return string the query + */ + private function buildQuery() { + $this->validateQuery(); + + $statement = ""; + if (isset($this->select)) { + $statement .= sprintf("%s %s ", self::SELECT, $this->select); + } + if (isset($this->from)) { + $statement .= sprintf("%s %s ", self::FROM, $this->from); + } + if (isset($this->where)) { + $statement .= sprintf("%s %s ", self::WHERE, $this->where); + } + if (isset($this->orderBy)) { + $statement .= sprintf("%s %s ", self::ORDER_BY, $this->orderBy); + } + if (isset($this->limit)) { + $statement .= sprintf("%s %s ", self::LIMIT, $this->limit); + } + if (isset($this->offset)) { + $statement .= sprintf("%s %s ", self::OFFSET, $this->offset); + } + + return trim($statement); + } +} + diff --git a/src/Google/Api/Ads/Dfp/settings.ini b/src/Google/Api/Ads/Dfp/settings.ini index 6a3d42ba1..76a29ebcd 100755 --- a/src/Google/Api/Ads/Dfp/settings.ini +++ b/src/Google/Api/Ads/Dfp/settings.ini @@ -33,6 +33,17 @@ WSDL_CACHE = 0 ; of HTTP 1.1 chunked data properly. ; FORCE_HTTP_VERSION = "" +; Forces SOAP requests to add the XSI types or not. Different PHP versions +; on different platforms may need to set to true or false. +; If not set, the client library will default to 0 (false), except for the +; following: +; - PHP < 5.2.6 on any OS will be set to 1 (true) when this setting is not set +; - PHP < 5.3.0 on Darwin OS will be set to 1 (true) when this setting is not +; set +; If you are receiving "Unmarshalling Error", uncomment the following setting +; and set it to either 0 (false) or 1 (true). +; FORCE_ADD_XSI_TYPES = 1; + [PROXY] ; Proxy settings to be used by HTTP (and therefore SOAP) requests. ; HOST = "" diff --git a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php index 5afd2b025..0e0c8582d 100755 --- a/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php +++ b/tests/Google/Api/Ads/Dfp/Util/DateTimeUtilsTest.php @@ -26,7 +26,7 @@ error_reporting(E_STRICT | E_ALL); require_once 'Google/Api/Ads/Dfp/Util/DateTimeUtils.php'; -require_once 'Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php'; +require_once 'Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php'; /** * Unit tests for {@link DateTimeUtils}. diff --git a/tests/Google/Api/Ads/Dfp/Util/PqlTest.php b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php index 658e001e3..9f9a7b5a1 100755 --- a/tests/Google/Api/Ads/Dfp/Util/PqlTest.php +++ b/tests/Google/Api/Ads/Dfp/Util/PqlTest.php @@ -25,7 +25,7 @@ error_reporting(E_STRICT | E_ALL); require_once 'Google/Api/Ads/Dfp/Util/Pql.php'; -require_once 'Google/Api/Ads/Dfp/v201308/PublisherQueryLanguageService.php'; +require_once 'Google/Api/Ads/Dfp/v201403/PublisherQueryLanguageService.php'; /** * Tests for {@link Pql}. @@ -39,6 +39,7 @@ class PqlTest extends PHPUnit_Framework_TestCase { private $column1; private $column2; private $column3; + private $textValue1; private $textValue2; private $textValue3; @@ -51,6 +52,9 @@ class PqlTest extends PHPUnit_Framework_TestCase { private $dateValue1; private $dateTimeValue1; + private $dateTime1; + private $date1; + protected function setUp() { $this->column1 = new ColumnType('Id'); $this->column2 = new ColumnType('Name'); @@ -64,10 +68,44 @@ protected function setUp() { $this->numberValue1 = new NumberValue('2'); $this->numberValue2 = new NumberValue('7.999'); $this->numberValue3 = new NumberValue('-8'); - $date1 = new Date(2012, 12, 2); - $dateTime1 = new DfpDateTime($date1, 12, 45, 0, PqlTest::TIME_ZONE_ID1); - $this->dateValue1 = new DateValue($date1); - $this->dateTimeValue1 = new DateTimeValue($dateTime1); + $this->date1 = new Date(2012, 12, 2); + $this->dateTime1 = + new DfpDateTime($this->date1, 12, 45, 0, PqlTest::TIME_ZONE_ID1); + $this->dateValue1 = new DateValue($this->date1); + $this->dateTimeValue1 = new DateTimeValue($this->dateTime1); + } + + /** + * @covers Pql::CreateValue + */ + public function testCreateValue() { + $this->assertEquals('hello', + Pql::CreateValue(new TextValue('hello'))->value); + $this->assertEquals('value1', Pql::CreateValue('value1')->value); + $this->assertEquals(false, Pql::CreateValue(false)->value); + $this->assertEquals('1', Pql::CreateValue(1)->value); + $this->assertEquals('1.02', Pql::CreateValue(1.02)->value); + $this->assertEquals('2012-12-02T12:45:00+08:00', + DateTimeUtils::ToStringWithTimeZone( + Pql::CreateValue($this->dateTime1)->value)); + $this->assertEquals('2012-12-02', + DateTimeUtils::ToString( + Pql::CreateValue($this->dateTime1->date)->value)); + } + + /** + * @covers Pql::CreateValue + * @expectedException InvalidArgumentException + */ + public function testCreateValueWithInvalidTypeThrowsException() { + Pql::CreateValue(new MyObject()); + } + + /** + * @covers Pql::CreateValue + */ + public function testCreateValueWithNullReturnsTextValue() { + $this->assertEquals(null, Pql::CreateValue(null)->value); } /** @@ -164,3 +202,4 @@ public function testCombineResultSetWithBadColumnsThrowsException() { } class MyValue extends Value {} +class MyObject {} diff --git a/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php b/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php new file mode 100755 index 000000000..f5578c956 --- /dev/null +++ b/tests/Google/Api/Ads/Dfp/Util/StatementBuilderTest.php @@ -0,0 +1,170 @@ +Select('Id') + ->From('table') + ->Where('a = b AND b = c') + ->OrderBy('a ASC, b DESC') + ->Limit(200) + ->Offset(0) + ->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementForPqlTableWithKeywords() { + $expectedQuery = 'SELECT Id FROM table WHERE a = b AND b = c ORDER BY a ' + . 'ASC, b DESC LIMIT 200 OFFSET 0'; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->Select('Id') + ->From('FrOM table') + ->Where('WHERE a = b AND b = c') + ->OrderBy('order BY a ASC, b DESC') + ->Limit(200) + ->Offset(0) + ->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementNotPqlTable() { + $expectedQuery = 'WHERE a = b AND b = c ORDER BY a ASC, b DESC LIMIT 200 ' + . 'OFFSET 0'; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->Where('a = b AND b = c') + ->OrderBy('a ASC, b DESC') + ->Limit(200) + ->Offset(0) + ->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementNoOffset() { + $expectedQuery = 'WHERE a = b AND b = c ORDER BY a ASC, b DESC LIMIT 200'; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->Where('a = b AND b = c') + ->OrderBy('a ASC, b DESC') + ->Limit(200) + ->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementJustLimit() { + $expectedQuery = 'LIMIT 500'; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->Limit(500)->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementLimitAndOffset() { + $expectedQuery = 'LIMIT 500 OFFSET 0'; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->Limit(500) + ->Offset(0) + ->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + * @covers StatementBuilder::RemoveLimitAndOffset + */ + public function testToStatementRemoveLimitAndOffset() { + $expectedQueryBefore = 'WHERE a = b ORDER BY a LIMIT 500 OFFSET 0'; + $expectedQueryAfter = 'WHERE a = b ORDER BY a'; + $statementBuilder = new StatementBuilder(); + $statementBuilder->Limit(500) + ->Offset(0) + ->Where('a = b') + ->OrderBy('a'); + $this->assertEquals($expectedQueryBefore, + $statementBuilder->ToStatement()->query); + $statementBuilder->RemoveLimitAndOffset(); + $this->assertEquals($expectedQueryAfter, + $statementBuilder->ToStatement()->query); + } + + /** + * @covers StatementBuilder::ToStatement + */ + public function testToStatementEmpty() { + $expectedQuery = ''; + $statementBuilder = new StatementBuilder(); + $query = $statementBuilder->ToStatement()->query; + $this->assertEquals($expectedQuery, $query); + } + + /** + * @covers StatementBuilder::ToStatement + * @expectedException ValidationException + */ + public function testToStatementOffsetWithoutLimit() { + $statementBuilder = new StatementBuilder(); + $statementBuilder->Offset(500)->ToStatement(); + } + + /** + * @covers StatementBuilder::WithBindVariableValue + */ + public function testWithBindingVariable() { + $key = 'key'; + $value = 'value'; + $statementBuilder = new StatementBuilder(); + $statementBuilder->WithBindVariableValue($key, $value); + $bindVariableMap = $statementBuilder->GetBindVariableMap(); + $this->assertEquals($value, $bindVariableMap[$key]->value); + } +} +